Skip to content

Commit

Permalink
Add Prime3 memtype support
Browse files Browse the repository at this point in the history
Signed-off-by: Li, Xin6 <[email protected]>
  • Loading branch information
lixin5x authored and XinfengZhang committed Feb 2, 2024
1 parent 49a1368 commit e08be13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ static const BitMasks g_vaSurfaceMemTypes = {
VA_SURFACE_ATTRIB_MEM_TYPE_USER_PTR, VA_SURFACE_ATTRIB_MEM_TYPE_KERNEL_DRM,
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME,
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2,
#if VA_CHECK_VERSION(1, 21, 0)
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_3,
#endif
};

static const std::map<VASurfaceAttribType, const BitMasks&>
Expand Down
3 changes: 3 additions & 0 deletions test/test_va_api_createsurfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ class VAAPISurfaceFixture

const uint32_t drmMemMask = VA_SURFACE_ATTRIB_MEM_TYPE_KERNEL_DRM
| VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME
#if VA_CHECK_VERSION(1, 21, 0)
| VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_3
#endif
| VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2;

// create surfaces for each supported attribute
Expand Down

0 comments on commit e08be13

Please sign in to comment.