From da132d802b88b17833428b88ed1bd7a6f8191ebe Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Mon, 5 Oct 2020 13:45:36 +0200 Subject: [PATCH] radv: Set fce metadata correctly on DCC initialization. The fce metadata can always be set to false as we don't care about the compressed clear color. Avoiding useless fast clear eliminates improves basemark performance by 1%-1.5%. Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_cmd_buffer.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 7e3101c..5e3a9f7 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -6016,19 +6016,16 @@ static void radv_init_color_image_metadata(struct radv_cmd_buffer *cmd_buffer, if (radv_dcc_enabled(image, range->baseMipLevel)) { uint32_t value = 0xffffffffu; /* Fully expanded mode. */ - bool need_decompress_pass = false; if (radv_layout_dcc_compressed(cmd_buffer->device, image, dst_layout, dst_render_loop, dst_queue_mask)) { - value = 0x20202020u; - need_decompress_pass = true; + value = 0u; } radv_initialize_dcc(cmd_buffer, image, range, value); - radv_update_fce_metadata(cmd_buffer, image, range, - need_decompress_pass); + radv_update_fce_metadata(cmd_buffer, image, range, false); } if (radv_image_has_cmask(image) || -- 2.7.4