radv: Actually set the cmd_buffer usage_flags.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 3 Sep 2017 21:35:37 +0000 (23:35 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 3 Sep 2017 22:06:40 +0000 (00:06 +0200)
Otherwise, the simultaneous uage bit doesn't get set from the begin
info, which we need for batchchaining.

Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c

index 9da8f0965844c8b2d7f2cf786e3d130ad3e5e374..4766b115dc9a44632a369aabb716017be12f3658 100644 (file)
@@ -1990,6 +1990,7 @@ VkResult radv_BeginCommandBuffer(
 
        memset(&cmd_buffer->state, 0, sizeof(cmd_buffer->state));
        cmd_buffer->state.last_primitive_reset_en = -1;
+       cmd_buffer->usage_flags = pBeginInfo->flags;
 
        /* setup initial configuration into command buffer */
        if (cmd_buffer->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY) {