From 768f1487b0c084507ba5e2641e0bbf4ec789ec85 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Wed, 7 Feb 2018 23:10:15 +0000 Subject: st/va: Enable vaExportSurfaceHandle() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is present from libva 2.1 (VAAPI 1.1.0 or higher). Signed-off-by: Mark Thompson Reviewed-by: Christian König --- src/gallium/state_trackers/va/context.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/va/context.c') 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 }; -- cgit v1.2.3