Skip to content

Commit

Permalink
[Media Common] Add VASurfaceAttribMemoryType for ACM
Browse files Browse the repository at this point in the history
Signed-off-by: Soon, Thean Siew <[email protected]>
  • Loading branch information
TheanSiew authored and intel-mediadev committed Nov 8, 2023
1 parent 2d6593c commit 15e137e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions media_driver/linux/Xe_M/ddi/media_libva_caps_dg2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 15e137e

Please sign in to comment.