diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-12-28 02:33:00 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-12-29 12:22:02 +0100 |
commit | ab957243e1d6f0f7b499875020b389b0b24f9b9c (patch) | |
tree | 0f595ca5a2a04ccfc23749fbea0c1f5e5396dada | |
parent | eb9a4c34647a05272610d343f5c0f323dd612278 (diff) |
radv: Enable DCC with transfers.
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 <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_image.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index d5085861ddf..316ce2e2bab 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -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) || |