summaryrefslogtreecommitdiff
path: root/src/gallium/include/state_tracker/vdpau_interop.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-01-12 16:07:58 +0100
committerChristian König <christian.koenig@amd.com>2016-03-29 17:29:10 +0200
commitfaba96bc60bfcf28678781f20ee0a42eb1950018 (patch)
treef0f4be71dfcaf3f04190a9a27e99d1837fe1f0d4 /src/gallium/include/state_tracker/vdpau_interop.h
parentd180de35320eafa3df3d76f0e82b332656530126 (diff)
st/vdpau: add new interop interface
Use DMA-buf for the VDPAU interop interface instead of using internal structures. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
Diffstat (limited to 'src/gallium/include/state_tracker/vdpau_interop.h')
-rw-r--r--src/gallium/include/state_tracker/vdpau_interop.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/include/state_tracker/vdpau_interop.h b/src/gallium/include/state_tracker/vdpau_interop.h
index 3ca7c9d4aa6..04d455a370a 100644
--- a/src/gallium/include/state_tracker/vdpau_interop.h
+++ b/src/gallium/include/state_tracker/vdpau_interop.h
@@ -35,8 +35,13 @@
#define _VDPAU_INTEROP_H_
/* driver specific functions for NV_vdpau_interop */
-
+#ifndef VDP_FUNC_ID_BASE_DRIVER
#define VDP_FUNC_ID_BASE_DRIVER 0x2000
+#endif
+
+/* Older implementation relying on passing pipe_video_buffer and
+ * pipe_resources around. Deprecated and shouldn't be used for new things.
+ */
#define VDP_FUNC_ID_VIDEO_SURFACE_GALLIUM (VDP_FUNC_ID_BASE_DRIVER + 0)
#define VDP_FUNC_ID_OUTPUT_SURFACE_GALLIUM (VDP_FUNC_ID_BASE_DRIVER + 1)