diff options
author | Samuel Pitoiset <[email protected]> | 2020-02-20 13:19:41 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2020-02-24 12:43:53 +0100 |
commit | 12a22da6834f21cb089bf9ecd44c483bd264ccd3 (patch) | |
tree | 1879f50edb184d242b23f425ced9081db468747d /src/amd/vulkan/radv_cmd_buffer.c | |
parent | 5e9a2c603f38308f7027d6a5e4575e5fc24c1bd5 (diff) |
radv: add the trace BO to the BO list at submit time
Instead of adding it in every command buffer.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3891>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3891>
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 66c7d0721ba..b4fe37824b1 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -3433,14 +3433,8 @@ VkResult radv_BeginCommandBuffer( radv_cmd_buffer_set_subpass(cmd_buffer, subpass); } - if (unlikely(cmd_buffer->device->trace_bo)) { - struct radv_device *device = cmd_buffer->device; - - radv_cs_add_buffer(device->ws, cmd_buffer->cs, - device->trace_bo); - + if (unlikely(cmd_buffer->device->trace_bo)) radv_cmd_buffer_trace_emit(cmd_buffer); - } cmd_buffer->status = RADV_CMD_BUFFER_STATUS_RECORDING; |