From 15e137e7069c44e13808cb04e0c17fed1ff43130 Mon Sep 17 00:00:00 2001 From: "Soon, Thean Siew" Date: Tue, 10 Oct 2023 12:55:37 +0000 Subject: [PATCH] [Media Common] Add VASurfaceAttribMemoryType for ACM Signed-off-by: Soon, Thean Siew --- media_driver/linux/Xe_M/ddi/media_libva_caps_dg2.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/media_driver/linux/Xe_M/ddi/media_libva_caps_dg2.cpp b/media_driver/linux/Xe_M/ddi/media_libva_caps_dg2.cpp index 5a2dd26cc26..d6069c8a1b2 100644 --- a/media_driver/linux/Xe_M/ddi/media_libva_caps_dg2.cpp +++ b/media_driver/linux/Xe_M/ddi/media_libva_caps_dg2.cpp @@ -1046,6 +1046,13 @@ VAStatus MediaLibvaCapsDG2::AddEncSurfaceAttributes( attribList[numAttribs].flags = VA_SURFACE_ATTRIB_GETTABLE; attribList[numAttribs].value.value.i = m_encMinHeight; numAttribs++; + + attribList[numAttribs].type = VASurfaceAttribMemoryType; + attribList[numAttribs].value.type = VAGenericValueTypeInteger; + attribList[numAttribs].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE; + attribList[numAttribs].value.value.i = VA_SURFACE_ATTRIB_MEM_TYPE_VA | + VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2; + numAttribs++; } else {