Mesa (master): radv: Always disable DCC on shareable images.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 13 08:24:59 UTC 2019


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

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Thu Jun 13 00:57:16 2019 +0200

radv: Always disable DCC on shareable images.

Do not want it for perf reasons. Always have to disable DCC when
transferring to external queue.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>

---

 src/amd/vulkan/radv_image.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 131b6356c19..d8dc2dfabde 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -155,9 +155,7 @@ radv_use_dcc_for_image(struct radv_device *device,
 	if (device->instance->debug_flags & RADV_DEBUG_NO_DCC)
 		return false;
 
-	/* FIXME: DCC is broken for shareable images starting with GFX9 */
-	if (device->physical_device->rad_info.chip_class >= GFX9 &&
-	    image->shareable)
+	if (image->shareable)
 		return false;
 
 	/* TODO: Enable DCC for storage images. */




More information about the mesa-commit mailing list