summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2021-02-18 11:23:19 +0100
committerMarge Bot <eric+marge@anholt.net>2021-02-23 13:03:39 +0000
commit765097eac4623ce5318dda0e7e13455ceb0ffce1 (patch)
tree746ef02a7953854daea26964898df64d8d3f8cb8
parenta72b7a9b6c63d8624cc09bf97f360d13698ead03 (diff)
radv: add support for instruction timing with RGP
This is probably the most useful feature with SQTT/RGP. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9130>
-rw-r--r--src/amd/vulkan/layers/radv_sqtt_layer.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/amd/vulkan/layers/radv_sqtt_layer.c b/src/amd/vulkan/layers/radv_sqtt_layer.c
index b44d8c970fe..e1f298444f7 100644
--- a/src/amd/vulkan/layers/radv_sqtt_layer.c
+++ b/src/amd/vulkan/layers/radv_sqtt_layer.c
@@ -341,9 +341,6 @@ radv_describe_pipeline_bind(struct radv_cmd_buffer *cmd_buffer,
struct rgp_sqtt_marker_pipeline_bind marker = {0};
struct radeon_cmdbuf *cs = cmd_buffer->cs;
- // TODO: Enable when PSO records & friends are dumped.
- return;
-
if (likely(!cmd_buffer->device->thread_trace.bo))
return;
@@ -739,7 +736,8 @@ void sqtt_CmdBindPipeline(
API_MARKER(BindPipeline, commandBuffer, pipelineBindPoint, _pipeline);
- radv_describe_pipeline_bind(cmd_buffer, pipelineBindPoint, pipeline);
+ if (radv_sqtt_dump_pipeline())
+ radv_describe_pipeline_bind(cmd_buffer, pipelineBindPoint, pipeline);
}
void sqtt_CmdBindDescriptorSets(
@@ -1013,7 +1011,7 @@ radv_add_pso_correlation(struct radv_device *device,
if (!record)
return VK_ERROR_OUT_OF_HOST_MEMORY;
- record->api_pso_hash = 0;
+ record->api_pso_hash = pipeline->pipeline_hash;
record->pipeline_hash[0] = pipeline->pipeline_hash;
record->pipeline_hash[1] = pipeline->pipeline_hash;
memset(record->api_level_obj_name, 0, sizeof(record->api_level_obj_name));