radv: Add more trace points.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 12 Apr 2017 22:06:48 +0000 (00:06 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 13 Apr 2017 14:06:47 +0000 (16:06 +0200)
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 <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_meta_buffer.c

index 998b656509bc86a695447627a0ecd4212bcd0d7c..f03e3dff3490c292d0064db718b70dbdd6e98f52 100644 (file)
@@ -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;
 }
 
index cfa0b9320e2dc8fccf9f103dcc43e42987a5b792..cb13f2f288f1cb118c0e8ea4bd328f5a91c4ebf4 100644 (file)
@@ -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);