Commit 0fde14cc authored by Austin Yuan's avatar Austin Yuan
parents 0793e853 d304b169
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
*/ */
#define _GNU_SOURCE 1 #define _GNU_SOURCE 1
#include "../va.h" #include "va.h"
#include "../va_backend.h" #include "va_backend.h"
#include "../va_android.h" #include "va_android.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
...@@ -42,7 +42,15 @@ static int va_DisplayContextIsValid ( ...@@ -42,7 +42,15 @@ static int va_DisplayContextIsValid (
VADisplayContextP pDisplayContext VADisplayContextP pDisplayContext
) )
{ {
VADisplayContextP ctx = pDisplayContexts;
while (ctx)
{
if (ctx == pDisplayContext && pDisplayContext->pDriverContext)
return 1; return 1;
ctx = ctx->pNext;
}
return 0;
} }
static void va_DisplayContextDestroy ( static void va_DisplayContextDestroy (
...@@ -78,7 +86,7 @@ static VAStatus va_DisplayContextGetDriverName ( ...@@ -78,7 +86,7 @@ static VAStatus va_DisplayContextGetDriverName (
unsigned int device_id; unsigned int device_id;
char driver_name[64]; char driver_name[64];
} devices[] = { } devices[] = {
{ 0x8086, 0x4100, "android" }, { 0x8086, 0x4100, "pvr" },
}; };
if (driver_name) if (driver_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment