From da166f648f61e7f628e20697936667cd9879d074 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 9 Mar 2021 10:16:18 +0100 Subject: [PATCH] radv: enable DCC for concurrent images on GFX10 The driver now supports DCC stores on GFX10 that means that we can keep DCC compressed on all layouts/queues. This should help games which use aync compute or which declare all images as concurrent like Youngblood. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_image.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index fc3df77611e..917713af50d 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -149,7 +149,12 @@ radv_image_use_fast_clear_for_image(const struct radv_device *device, } return image->usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT && - image->exclusive; + (image->exclusive || + /* Enable DCC for concurrent images if stores are + * supported because that means we can keep DCC compressed on + * all layouts/queues. + */ + radv_image_use_dcc_image_stores(device, image)); } bool