From: Samuel Pitoiset Date: Wed, 6 Dec 2017 16:49:37 +0000 (+0100) Subject: radv: remove useless check radv_set_dcc_need_cmask_elim_pred() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c202119286080bdd6c83893128c7d92bd8a0dfa8;p=mesa.git radv: remove useless check radv_set_dcc_need_cmask_elim_pred() emit_fast_color_clear() already checks that. Signed-off-by: Samuel Pitoiset Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 621f0bad0b1..68371dbbe7c 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -1377,8 +1377,7 @@ radv_set_dcc_need_cmask_elim_pred(struct radv_cmd_buffer *cmd_buffer, uint64_t va = radv_buffer_get_va(image->bo); va += image->offset + image->dcc_pred_offset; - if (!image->surface.dcc_size) - return; + assert(image->surface.dcc_size); radeon_emit(cmd_buffer->cs, PKT3(PKT3_WRITE_DATA, 4, 0)); radeon_emit(cmd_buffer->cs, S_370_DST_SEL(V_370_MEM_ASYNC) |