The video decode hw only works with Y/4 tiled images.
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20782>
isl_mod_info = isl_drm_modifier_get_info(vk_mod_info->drmFormatModifier);
if (isl_mod_info == NULL)
goto unsupported;
+
+ /* only allow Y-tiling/Tile4 for video decode. */
+ if (info->usage & VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR) {
+ if (isl_mod_info->tiling != ISL_TILING_Y0 && isl_mod_info->tiling != ISL_TILING_4)
+ goto unsupported;
+ }
}
assert(format->vk_format == info->format);