radv: do not add the image BO in radv_set_color_clear_regs()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 14 Nov 2017 15:38:19 +0000 (16:38 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Nov 2017 08:00:54 +0000 (09:00 +0100)
radv_fill_buffer() ensures that the image BO is added to the list.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c

index 1f34d07476701a0d5650bc3b0f40c9081d27c66e..a6a77abe9b1737e79ad7e5c7c31ef9713c811ef1 100644 (file)
@@ -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) |