aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_cmd_buffer.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2020-03-03 13:42:41 +0100
committerSamuel Pitoiset <[email protected]>2020-03-10 09:58:02 +0100
commitdcfc08f5b8a322cf015f7216fb0aeada117d53a4 (patch)
treed9fc4482b2b6efa6d5f8e2364606bfe0af7812e3 /src/amd/vulkan/radv_cmd_buffer.c
parent31ecf0b17dc0dfcc70eb96295e52339e9f176c8b (diff)
radv/sqtt: describe begin/end command buffers with user markers
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4031>
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r--src/amd/vulkan/radv_cmd_buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 08c7400e820..096c06d3ed0 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -3441,6 +3441,8 @@ VkResult radv_BeginCommandBuffer(
if (unlikely(cmd_buffer->device->trace_bo))
radv_cmd_buffer_trace_emit(cmd_buffer);
+ radv_describe_begin_cmd_buffer(cmd_buffer);
+
cmd_buffer->status = RADV_CMD_BUFFER_STATUS_RECORDING;
return result;
@@ -3794,6 +3796,8 @@ VkResult radv_EndCommandBuffer(
*/
si_cp_dma_wait_for_idle(cmd_buffer);
+ radv_describe_end_cmd_buffer(cmd_buffer);
+
vk_free(&cmd_buffer->pool->alloc, cmd_buffer->state.attachments);
vk_free(&cmd_buffer->pool->alloc, cmd_buffer->state.subpass_sample_locs);