ac/surface: Only allow linear modifier for subsampled 422 formats

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33598>
This commit is contained in:
David Rosca 2024-11-22 11:08:00 +01:00 committed by Marge Bot
parent 094177b9b5
commit e9341be246

View file

@ -260,6 +260,10 @@ bool ac_is_modifier_supported(const struct radeon_info *info,
if (info->gfx_level < GFX9 && util_format_get_num_planes(format) > 1)
return false;
/* Tiling doesn't work with the 422 (SUBSAMPLED) formats. */
if (util_format_is_subsampled_422(format))
return false;
uint32_t allowed_swizzles = 0xFFFFFFFF;
switch(info->gfx_level) {
case GFX9: