mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 10:58:03 +03:00
hasvk: anv: set Y tiling for video decode images
The video decode hw only works with Y tiled images.
This commit is contained in:
1 parent
d9147c64f6
commit
587311f645
1 file changed
+6
@@ -984,6 +984,12 @@ anv_get_image_format_properties(
|
||||
isl_mod_info = isl_drm_modifier_get_info(vk_mod_info->drmFormatModifier);
|
||||
if (isl_mod_info == NULL)
|
||||
goto unsupported;
|
||||
|
||||
/* only allow Y tiling for video decode. */
|
||||
if (info->usage & VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR) {
|
||||
if (isl_mod_info->tiling != ISL_TILING_Y0)
|
||||
goto unsupported;
|
||||
}
|
||||
}
|
||||
|
||||
assert(format->vk_format == info->format);
|
||||
|
||||
Reference in new issue
Block a user