From e4c8ac5aae500df0fb4a272d95eb4e9ba44a3f58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 29 Apr 2023 04:43:49 -0400 Subject: [PATCH] ac/surface: don't expose modifiers with DCC retiling if radeon_info forbids it Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/amd/common/ac_surface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index 430a68a..bcca610 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -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; } -- 2.7.4