radv/gfx10: add missing counter buffer to the BO list
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 16 Sep 2019 14:16:05 +0000 (16:16 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 2 Oct 2019 16:09:25 +0000 (18:09 +0200)
The buffer isn't necessarily used before.

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

index f35053b869506457fbc5910c414bedfe816321dd..f93195be4c09b8947b58f49134041b8f0b05333f 100644 (file)
@@ -6094,6 +6094,8 @@ gfx10_emit_streamout_end(struct radv_cmd_buffer *cmd_buffer,
                                                   EOP_DST_SEL_TC_L2,
                                                   EOP_DATA_SEL_GDS,
                                                   va, EOP_DATA_GDS(i, 1), 0);
+
+                       radv_cs_add_buffer(cmd_buffer->device->ws, cs, buffer->bo);
                }
        }