mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-18 22:00:25 +01:00
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:
parent
094177b9b5
commit
e9341be246
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue