radv: fix disabling DCC for stores with drirc

Displayable DCC should also be disabled, otherwise it's asserting
somewhere in ac_surface.c

Fixes: e3d1f27b31 ("radv: add radv_disable_dcc_stores and enable for Indiana Jones: The Great Circle")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32584>
This commit is contained in:
Samuel Pitoiset
2024-12-11 11:39:52 +01:00
committed by Marge Bot
parent 26a3038b65
commit 4d1aa9a2d0

View File

@@ -627,10 +627,10 @@ radv_get_modifier_flags(struct radv_physical_device *pdev, VkFormat format, uint
return 0;
/* Only disable support for STORAGE_IMAGE on modifiers that
* do not support DCC image stores.
* do not support DCC image stores or when explicitly disabled.
*/
if (!ac_modifier_supports_dcc_image_stores(pdev->info.gfx_level, modifier) ||
radv_is_atomic_format_supported(format))
radv_is_atomic_format_supported(format) || instance->drirc.disable_dcc_stores)
features &= ~VK_FORMAT_FEATURE_2_STORAGE_IMAGE_BIT;
if (instance->debug_flags & (RADV_DEBUG_NO_DCC | RADV_DEBUG_NO_DISPLAY_DCC))