summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va/context.c
diff options
context:
space:
mode:
authorJulien Isorce <[email protected]>2015-10-30 11:42:53 +0000
committerChristian König <[email protected]>2015-10-30 13:21:20 +0100
commite7ed3963ed33134cc214f0a8b8e4b8cb6029887d (patch)
tree52f0c6ff2de8ce0d065b8c7206b6e6bf60dfd742 /src/gallium/state_trackers/va/context.c
parent802ba6f8655bf967299b027204ecdd5855050609 (diff)
st/va: add support to export a surface as dmabuf
I.e. implements: VaAcquireBufferHandle VaReleaseBufferHandle for memory of type VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME And apply relatives change to: vlVaMapBuffer vlVaUnMapBuffer vlVaDestroyBuffer Implementation inspired from cgit.freedesktop.org/vaapi/intel-driver Tested with gstreamer-vaapi with nouveau driver. Signed-off-by: Julien Isorce <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/context.c')
-rw-r--r--src/gallium/state_trackers/va/context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index bd533c4d061..ec9e0488d85 100644
--- a/src/gallium/state_trackers/va/context.c
+++ b/src/gallium/state_trackers/va/context.c
@@ -87,7 +87,9 @@ static struct VADriverVTable vtable =
&vlVaUnlockSurface,
NULL, /* DEPRECATED VaGetSurfaceAttributes */
&vlVaCreateSurfaces2,
- &vlVaQuerySurfaceAttributes
+ &vlVaQuerySurfaceAttributes,
+ &vlVaAcquireBufferHandle,
+ &vlVaReleaseBufferHandle
};
static struct VADriverVTableVPP vtable_vpp =