surface: Add ExportSurfaceHandle support for dma-buf export

This is the latest version of dma-buf export, that does support
specifying DRM modifiers.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
Paul Kocialkowski
2018-07-18 15:02:37 +02:00
parent 48a6e0a7ef
commit 7587ef6901
3 changed files with 100 additions and 0 deletions
+3
View File
@@ -105,5 +105,8 @@ VAStatus RequestLockSurface(VADriverContextP context, VASurfaceID surface_id,
unsigned int *chroma_v_offset,
unsigned int *buffer_name, void **buffer);
VAStatus RequestUnlockSurface(VADriverContextP context, VASurfaceID surface_id);
VAStatus RequestExportSurfaceHandle(VADriverContextP context,
VASurfaceID surface_id, uint32_t mem_type,
uint32_t flags, void *descriptor);
#endif