summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorMark Thompson <[email protected]>2018-02-07 23:10:15 +0000
committerChristian König <[email protected]>2018-02-09 13:37:36 +0100
commit768f1487b0c084507ba5e2641e0bbf4ec789ec85 (patch)
treed4da4ebe74f60a2fd40d3cf0e18ff0f08deed48d /src/gallium/state_trackers
parent41c5bf38369c9d57695a0544b8a19d68eef6da3d (diff)
st/va: Enable vaExportSurfaceHandle()
It is present from libva 2.1 (VAAPI 1.1.0 or higher). Signed-off-by: Mark Thompson <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/va/context.c8
-rw-r--r--src/gallium/state_trackers/va/surface.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index f567f544fde..189d361ff31 100644
--- a/src/gallium/state_trackers/va/context.c
+++ b/src/gallium/state_trackers/va/context.c
@@ -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
};
diff --git a/src/gallium/state_trackers/va/surface.c b/src/gallium/state_trackers/va/surface.c
index 9823232413f..86041369444 100644
--- a/src/gallium/state_trackers/va/surface.c
+++ b/src/gallium/state_trackers/va/surface.c
@@ -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,