From: Samuel Pitoiset Date: Tue, 14 Nov 2017 15:38:19 +0000 (+0100) Subject: radv: do not add the image BO in radv_set_color_clear_regs() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40290c805f6c0a4583fad15788308de4ef473845;p=mesa.git radv: do not add the image BO in radv_set_color_clear_regs() radv_fill_buffer() ensures that the image BO is added to the list. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 1f34d074767..a6a77abe9b1 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -1394,8 +1394,6 @@ radv_set_color_clear_regs(struct radv_cmd_buffer *cmd_buffer, if (!image->cmask.size && !image->surface.dcc_size) return; - radv_cs_add_buffer(cmd_buffer->device->ws, cmd_buffer->cs, image->bo, 8); - radeon_emit(cmd_buffer->cs, PKT3(PKT3_WRITE_DATA, 4, 0)); radeon_emit(cmd_buffer->cs, S_370_DST_SEL(V_370_MEM_ASYNC) | S_370_WR_CONFIRM(1) |