radv: also fixup event emission to not get culled.
authorDave Airlie <airlied@redhat.com>
Wed, 15 Feb 2017 00:15:39 +0000 (00:15 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 15 Feb 2017 00:36:30 +0000 (00:36 +0000)
This is possibly a bad idea, I might have to consider a better one.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c

index 8a92ffbe0a7d0802d1aba367388e4e427880d5b0..75149c5ba1a522c45f9d59974738356ab30d4925 100644 (file)
@@ -2890,6 +2890,7 @@ static void write_event(struct radv_cmd_buffer *cmd_buffer,
        uint64_t va = cmd_buffer->device->ws->buffer_get_va(event->bo);
 
        cmd_buffer->device->ws->cs_add_buffer(cs, event->bo, 8);
+       cmd_buffer->no_draws = false;
 
        MAYBE_UNUSED unsigned cdw_max = radeon_check_space(cmd_buffer->device->ws, cs, 12);