radv: fix color decompressions for FMASK/CMASK
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 18 Jun 2019 10:02:12 +0000 (12:02 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 18 Jun 2019 10:09:04 +0000 (12:09 +0200)
Only skip levels without DCC when it's a DCC decompression.
Whoops.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_fast_clear.c

index 12fea8292c0e2157b8ee14d40c5485227182a000..4398cb7ca598356a0a3a7992ff4fbfd1661aaa19 100644 (file)
@@ -673,7 +673,8 @@ radv_process_color_image(struct radv_cmd_buffer *cmd_buffer,
                uint32_t width, height;
 
                /* Do not decompress levels without DCC. */
-               if (!radv_dcc_enabled(image, subresourceRange->baseMipLevel + l))
+               if (decompress_dcc &&
+                   !radv_dcc_enabled(image, subresourceRange->baseMipLevel + l))
                        continue;
 
                width = radv_minify(image->info.width,