Commit 12a22da6 authored by Samuel Pitoiset's avatar Samuel Pitoiset

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's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen's avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Marge Bot <!3891>
Part-of: <!3891>
parent 5e9a2c60
Pipeline #111929 passed with stages
in 15 minutes and 41 seconds
......@@ -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;
......
......@@ -3899,6 +3899,9 @@ radv_get_preamble_cs(struct radv_queue *queue,
if (gds_oa_bo)
radv_cs_add_buffer(queue->device->ws, cs, gds_oa_bo);
if (queue->device->trace_bo)
radv_cs_add_buffer(queue->device->ws, cs, queue->device->trace_bo);
if (i == 0) {
si_cs_emit_cache_flush(cs,
queue->device->physical_device->rad_info.chip_class,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment