radv: always initialize the DCC predicate to FALSE
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 19 Jun 2018 13:39:25 +0000 (15:39 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 Jun 2018 11:21:42 +0000 (13:21 +0200)
This might eventually skip some useless DCC decompression
passes.

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

index 7454b39a9344ffe50cd9fd403726ec5b8b08fb90..e13f7a94e1d33dd7bc26ec331079058533747172 100644 (file)
@@ -4058,6 +4058,8 @@ static void radv_init_color_image_metadata(struct radv_cmd_buffer *cmd_buffer,
                }
 
                radv_initialize_dcc(cmd_buffer, image, value);
+
+               radv_set_dcc_need_cmask_elim_pred(cmd_buffer, image, false);
        }
 }