diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-12-23 01:40:03 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-12-23 10:58:18 +0100 |
commit | 70b5e85fc3a79214b4f25db0e6d8fcc32d62a2f1 (patch) | |
tree | 641987ad3b2e5ddb1b2c6bb805ce98705812c729 /src/amd/vulkan | |
parent | 2d0457203871c843ebfc90fb895b65a9b14cd9bb (diff) |
radv: Fix DCC compatible formats.
DCC was disabled when the image format is !!supported, which is one ! too many.
Ironically the commit that introduced it was supposed to lead to more DCC use ...
Fixes: 969537d9358 "radv: Add support for more DCC compression with VK_KHR_image_format_list."
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 15410f140e7..b1c4f3340ed 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -127,7 +127,7 @@ radv_init_surface(struct radv_device *device, surface->flags |= RADEON_SURF_OPTIMIZE_FOR_SPACE; - bool dcc_compatible_formats = !radv_is_colorbuffer_format_supported(pCreateInfo->format, &blendable); + bool dcc_compatible_formats = radv_is_colorbuffer_format_supported(pCreateInfo->format, &blendable); if (pCreateInfo->flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) { const struct VkImageFormatListCreateInfoKHR *format_list = (const struct VkImageFormatListCreateInfoKHR *) |