radv: fix reporting RT shaders in RGP
RGP expects a compute bind point. This allows it to show ISA of RT shaders and also enables instruction timing. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7213 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/18496>
This commit is contained in:
committed by
Marge Bot
parent
2e04aeb1e5
commit
a14354cf21
@@ -691,7 +691,14 @@ sqtt_CmdBindPipeline(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipeline
|
||||
|
||||
API_MARKER(BindPipeline, commandBuffer, pipelineBindPoint, _pipeline);
|
||||
|
||||
radv_describe_pipeline_bind(cmd_buffer, pipelineBindPoint, pipeline);
|
||||
if (pipelineBindPoint == VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR) {
|
||||
/* RGP seems to expect a compute bind point to detect and report RT pipelines, which makes
|
||||
* sense somehow given that RT shaders are compiled to an unified compute shader.
|
||||
*/
|
||||
radv_describe_pipeline_bind(cmd_buffer, VK_PIPELINE_BIND_POINT_COMPUTE, pipeline);
|
||||
} else {
|
||||
radv_describe_pipeline_bind(cmd_buffer, pipelineBindPoint, pipeline);
|
||||
}
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
|
||||
Reference in New Issue
Block a user