radv: Always disable DCC on shareable images.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 12 Jun 2019 22:57:16 +0000 (00:57 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 13 Jun 2019 08:15:45 +0000 (08:15 +0000)
Do not want it for perf reasons. Always have to disable DCC when
transferring to external queue.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_image.c

index 131b635..d8dc2df 100644 (file)
@@ -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. */