Module: Mesa
Branch: master
Commit: da166f648f61e7f628e20697936667cd9879d074
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=da166f648f61e7f628e20697936667cd9879d074

Author: Samuel Pitoiset <[email protected]>
Date:   Tue Mar  9 10:16:18 2021 +0100

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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9850>

---

 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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to