diff options
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; |