diff options
author | Mark Thompson <[email protected]> | 2018-02-07 23:10:15 +0000 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2018-04-17 14:32:34 +0000 |
commit | 19db663cf028c184b1173795d1d38b152743e781 (patch) | |
tree | 3c709c420fee794c70520ccc7fd1ff89a2af851d | |
parent | 825e950aeae92b71ce4cee1df8c70cf81664cb6e (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]>
(cherry picked from commit 768f1487b0c084507ba5e2641e0bbf4ec789ec85)
-rw-r--r-- | src/gallium/state_trackers/va/context.c | 8 | ||||
-rw-r--r-- | src/gallium/state_trackers/va/surface.c | 2 |
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 78e1f19ab7d..c4abe77cf7a 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 636505b720e..f9412ce52e6 100644 --- a/src/gallium/state_trackers/va/surface.c +++ b/src/gallium/state_trackers/va/surface.c @@ -923,7 +923,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, |