diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-09-03 23:35:37 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-09-04 00:06:40 +0200 |
commit | dec7b38fe62a1db46c5150a7368d3bb3c5e45305 (patch) | |
tree | 619b4c077d8dd6876115663718ea0f646715190b /src | |
parent | 49b428470e28ae6ab22083e43fa41abf622f3b0d (diff) |
radv: Actually set the cmd_buffer usage_flags.
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 9da8f096584..4766b115dc9 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -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) { |