Skip to content

Commit e08be13

Browse files
lixin5xXinfengZhang
authored andcommitted
Add Prime3 memtype support
Signed-off-by: Li, Xin6 <[email protected]>
1 parent 49a1368 commit e08be13

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/test_data.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ static const BitMasks g_vaSurfaceMemTypes = {
274274
VA_SURFACE_ATTRIB_MEM_TYPE_USER_PTR, VA_SURFACE_ATTRIB_MEM_TYPE_KERNEL_DRM,
275275
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME,
276276
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2,
277+
#if VA_CHECK_VERSION(1, 21, 0)
278+
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_3,
279+
#endif
277280
};
278281

279282
static const std::map<VASurfaceAttribType, const BitMasks&>

test/test_va_api_createsurfaces.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ class VAAPISurfaceFixture
8888

8989
const uint32_t drmMemMask = VA_SURFACE_ATTRIB_MEM_TYPE_KERNEL_DRM
9090
| VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME
91+
#if VA_CHECK_VERSION(1, 21, 0)
92+
| VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_3
93+
#endif
9194
| VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2;
9295

9396
// create surfaces for each supported attribute

0 commit comments

Comments
 (0)