From: Bas Nieuwenhuizen Date: Wed, 12 Apr 2017 22:06:48 +0000 (+0200) Subject: radv: Add more trace points. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f7fb25d4e92fb2b2a052f53225079641a896635;p=mesa.git radv: Add more trace points. Most trace points happen after an operation, so add a trace point at the start of the command buffer. Furthermore, add one after a CmdUpdateBuffer using CP_DMA as that didn't emit one yet. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 998b656509b..f03e3dff349 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -1853,6 +1853,7 @@ VkResult radv_BeginCommandBuffer( radv_cmd_buffer_set_subpass(cmd_buffer, subpass, false); } + radv_cmd_buffer_trace_emit(cmd_buffer); return VK_SUCCESS; } diff --git a/src/amd/vulkan/radv_meta_buffer.c b/src/amd/vulkan/radv_meta_buffer.c index cfa0b9320e2..cb13f2f288f 100644 --- a/src/amd/vulkan/radv_meta_buffer.c +++ b/src/amd/vulkan/radv_meta_buffer.c @@ -541,6 +541,8 @@ void radv_CmdUpdateBuffer( radeon_emit(cmd_buffer->cs, va); radeon_emit(cmd_buffer->cs, va >> 32); radeon_emit_array(cmd_buffer->cs, pData, words); + + radv_cmd_buffer_trace_emit(cmd_buffer); } else { uint32_t buf_offset; radv_cmd_buffer_upload_data(cmd_buffer, dataSize, 32, pData, &buf_offset);