ac/surface: don't expose modifiers with DCC retiling if radeon_info forbids it

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22771>
This commit is contained in:
Marek Olšák 2023-04-29 04:43:49 -04:00 committed by Marge Bot
parent ce64300676
commit e4c8ac5aae

View file

@ -239,7 +239,8 @@ bool ac_is_modifier_supported(const struct radeon_info *info,
if (!options->dcc)
return false;
if (ac_modifier_has_dcc_retile(modifier) && !options->dcc_retile)
if (ac_modifier_has_dcc_retile(modifier) &&
(!info->use_display_dcc_with_retile_blit || !options->dcc_retile))
return false;
}