aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-06-18 12:02:12 +0200
committerSamuel Pitoiset <[email protected]>2019-06-18 12:09:04 +0200
commit6ee40efd020e75fcd414b3e5d0a76d1d2d422ded (patch)
tree785cd62667fd6df8a548022647480f70231d75f9 /src/amd/vulkan
parent42a41a9e4a1c7efff0dae3ae31b3882a92374ef5 (diff)
radv: fix color decompressions for FMASK/CMASK
Only skip levels without DCC when it's a DCC decompression. Whoops. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_meta_fast_clear.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_meta_fast_clear.c b/src/amd/vulkan/radv_meta_fast_clear.c
index 12fea8292c0..4398cb7ca59 100644
--- a/src/amd/vulkan/radv_meta_fast_clear.c
+++ b/src/amd/vulkan/radv_meta_fast_clear.c
@@ -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,