st/va: Enable vaExportSurfaceHandle()
authorMark Thompson <sw@jkqxz.net>
Wed, 7 Feb 2018 23:10:15 +0000 (23:10 +0000)
committerChristian König <christian.koenig@amd.com>
Fri, 9 Feb 2018 12:37:36 +0000 (13:37 +0100)
It is present from libva 2.1 (VAAPI 1.1.0 or higher).

Signed-off-by: Mark Thompson <sw@jkqxz.net>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/context.c
src/gallium/state_trackers/va/surface.c

index f567f544fde54b568d1dce6accedc68d0d799112..189d361ff31858d60d51638c9389385495be4c2e 100644 (file)
@@ -89,7 +89,13 @@ static struct VADriverVTable vtable =
    &vlVaQuerySurfaceAttributes,
    &vlVaAcquireBufferHandle,
    &vlVaReleaseBufferHandle,
-#if 0
+#if VA_CHECK_VERSION(1, 1, 0)
+   NULL, /* vaCreateMFContext */
+   NULL, /* vaMFAddContext */
+   NULL, /* vaMFReleaseContext */
+   NULL, /* vaMFSubmit */
+   NULL, /* vaCreateBuffer2 */
+   NULL, /* vaQueryProcessingRate */
    &vlVaExportSurfaceHandle,
 #endif
 };
index 9823232413f08d049ea1ad14d434a6fe8b9a2ae0..860413694445f5bf5ff7801bc40b37c36667c2c6 100644 (file)
@@ -926,7 +926,7 @@ vlVaQueryVideoProcPipelineCaps(VADriverContextP ctx, VAContextID context,
    return VA_STATUS_SUCCESS;
 }
 
-#if 0
+#if VA_CHECK_VERSION(1, 1, 0)
 VAStatus
 vlVaExportSurfaceHandle(VADriverContextP ctx,
                         VASurfaceID surface_id,