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 {