From f44a6c6a5424db714e5c93e4b13d4e3f79bd5ed2 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Fri, 14 May 2021 14:04:11 +0200 Subject: [PATCH] radv: Actually return correct value for read-only DCC compressedness. Most stuff that depends on the value wouldn't be triggered anyway but ... Fixes: b5ecf0748a5 ("radv: Ensure we never decompress or FCE read-only textures.") Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index e2c22a0782a..1847de34b5c 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -1976,7 +1976,7 @@ radv_layout_dcc_compressed(const struct radv_device *device, const struct radv_i /* If the image is read-only, we can always just keep it compressed */ if (!(image->usage & RADV_IMAGE_USAGE_WRITE_BITS)) - return false; + return true; /* Don't compress compute transfer dst when image stores are not supported. */ if ((layout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL || layout == VK_IMAGE_LAYOUT_GENERAL) &&