From ef546cf96f613c89aa142fbf014b3be9611daf69 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 13 Aug 2021 10:38:36 +0200 Subject: [PATCH] radv: remove useless check about the FCE predicate offset radv_update_fce_metadata() already prevents that. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_meta_fast_clear.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/amd/vulkan/radv_meta_fast_clear.c b/src/amd/vulkan/radv_meta_fast_clear.c index 28e8a6a2aac..0c257e8085d 100644 --- a/src/amd/vulkan/radv_meta_fast_clear.c +++ b/src/amd/vulkan/radv_meta_fast_clear.c @@ -742,12 +742,10 @@ radv_process_color_image(struct radv_cmd_buffer *cmd_buffer, struct radv_image * radv_meta_restore(&saved_state, cmd_buffer); - if (image->fce_pred_offset != 0) { - /* Clear the image's fast-clear eliminate predicate because FMASK_DECOMPRESS and - * DCC_DECOMPRESS also perform a fast-clear eliminate. - */ - radv_update_fce_metadata(cmd_buffer, image, subresourceRange, false); - } + /* Clear the image's fast-clear eliminate predicate because FMASK_DECOMPRESS and DCC_DECOMPRESS + * also perform a fast-clear eliminate. + */ + radv_update_fce_metadata(cmd_buffer, image, subresourceRange, false); /* Mark the image as being decompressed. */ if (op == DCC_DECOMPRESS)