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> (cherry picked from commit4d1aa9a2d0
) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32730>
This commit is contained in:

committed by
Dylan Baker

parent
f565dcdf54
commit
cab3f06713
@@ -154,7 +154,7 @@
|
||||
"description": "radv: fix disabling DCC for stores with drirc",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "e3d1f27b31816ce9e8fddfe9c669059893cd8934",
|
||||
"notes": null
|
||||
|
@@ -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))
|
||||
|
Reference in New Issue
Block a user