summaryrefslogtreecommitdiff
path: root/va/va.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-06-19 19:09:12 +0100
committerXiang, Haihao <haihao.xiang@intel.com>2017-09-27 12:48:16 +0800
commitb0e7feda096d7ae8146ba2e0c22b7bd59b768950 (patch)
treeede6e8ec07bbb4b449263c3b657a507a8b1557cd /va/va.c
parent0190b72c557450d4b82c8dc26a5ebaac3df904ec (diff)
downloadlibva-b0e7feda096d7ae8146ba2e0c22b7bd59b768950.tar.gz
Move some common macro definitions to the new internal header
Signed-off-by: Mark Thompson <sw@jkqxz.net>
Diffstat (limited to 'va/va.c')
-rw-r--r--va/va.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/va/va.c b/va/va.c
index 813a552..bc267d4 100644
--- a/va/va.c
+++ b/va/va.c
@@ -50,9 +50,6 @@
#define DRIVER_EXTENSION "_drv_video.so"
-#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
-#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
-
#define ASSERT assert
#define CHECK_VTABLE(s, ctx, func) if (!va_checkVtable(ctx->vtable->va##func, #func)) s = VA_STATUS_ERROR_UNKNOWN;
#define CHECK_MAXIMUM(s, ctx, var) if (!va_checkMaximum(ctx->max_##var, #var)) s = VA_STATUS_ERROR_UNKNOWN;