Module: Mesa Branch: main Commit: ef546cf96f613c89aa142fbf014b3be9611daf69 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef546cf96f613c89aa142fbf014b3be9611daf69
Author: Samuel Pitoiset <[email protected]> Date: Fri Aug 13 10:38:36 2021 +0200 radv: remove useless check about the FCE predicate offset radv_update_fce_metadata() already prevents that. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12323> --- 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)
