Mesa (main): radv: enable DCC fast-clears with comp-to-single on GFX10+

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 10 08:46:40 UTC 2021


Module: Mesa
Branch: main
Commit: 7ccecf20964667596105447c1ce77b8c9bbac770
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ccecf20964667596105447c1ce77b8c9bbac770

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Apr 29 13:32:13 2021 +0200

radv: enable DCC fast-clears with comp-to-single on GFX10+

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10518>

---

 src/amd/vulkan/radv_image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 9d370f77e14..66e187e75d2 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -1590,7 +1590,7 @@ radv_image_use_comp_to_single(const struct radv_device *device, const struct rad
    if (bytes_per_pixel <= 2 && !device->physical_device->rad_info.rbplus_allowed)
       return false;
 
-   return false; /* TODO: will be enabled in a next commit. */
+   return true;
 }
 
 static uint64_t



More information about the mesa-commit mailing list