radv: Enable DCC with transfers.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 28 Dec 2017 01:33:00 +0000 (02:33 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 29 Dec 2017 11:22:02 +0000 (12:22 +0100)
Before this DCC was in practice disabled for most games. This
enables practical DCC use. Expect a 5-10% perf increase on a
bunch of games on vega @ 4k.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/amd/vulkan/radv_image.c

index d5085861ddf362556d09dfb5c23b886ad2e67331..316ce2e2bab7221bc7b03ae1515a20bd6cdc32a9 100644 (file)
@@ -148,8 +148,7 @@ radv_init_surface(struct radv_device *device,
                }
        }
 
-       if ((pCreateInfo->usage & (VK_IMAGE_USAGE_TRANSFER_SRC_BIT |
-                                  VK_IMAGE_USAGE_STORAGE_BIT)) ||
+       if ((pCreateInfo->usage & VK_IMAGE_USAGE_STORAGE_BIT) ||
            (pCreateInfo->flags & VK_IMAGE_CREATE_EXTENDED_USAGE_BIT_KHR) ||
            !dcc_compatible_formats ||
             (pCreateInfo->tiling == VK_IMAGE_TILING_LINEAR) ||