summaryrefslogtreecommitdiff
path: root/va/android/va_android.c
diff options
context:
space:
mode:
authorRen Zhaohan <zhaohan.ren@intel.com>2010-04-01 14:57:38 +0800
committerRen Zhaohan <zhaohan.ren@intel.com>2010-04-01 14:57:38 +0800
commitd304b16931b546fb5ca2bcaf583c823f036f140e (patch)
tree8f6bff5034637f28b844c4b66d3db32b63b9d0f6 /va/android/va_android.c
parent152b03e88d08dc50e3c18f9c2de1b4355397a159 (diff)
downloadlibva-d304b16931b546fb5ca2bcaf583c823f036f140e.tar.gz
Update va_DisplayContextIsValid, driver name and included files
Diffstat (limited to 'va/android/va_android.c')
-rw-r--r--va/android/va_android.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/va/android/va_android.c b/va/android/va_android.c
index ec15d6a..687b86d 100644
--- a/va/android/va_android.c
+++ b/va/android/va_android.c
@@ -23,9 +23,9 @@
*/
#define _GNU_SOURCE 1
-#include "../va.h"
-#include "../va_backend.h"
-#include "../va_android.h"
+#include "va.h"
+#include "va_backend.h"
+#include "va_android.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@@ -42,7 +42,15 @@ static int va_DisplayContextIsValid (
VADisplayContextP pDisplayContext
)
{
- return 1;
+ VADisplayContextP ctx = pDisplayContexts;
+
+ while (ctx)
+ {
+ if (ctx == pDisplayContext && pDisplayContext->pDriverContext)
+ return 1;
+ ctx = ctx->pNext;
+ }
+ return 0;
}
static void va_DisplayContextDestroy (
@@ -78,7 +86,7 @@ static VAStatus va_DisplayContextGetDriverName (
unsigned int device_id;
char driver_name[64];
} devices[] = {
- { 0x8086, 0x4100, "android" },
+ { 0x8086, 0x4100, "pvr" },
};
if (driver_name)