radv: ignore registering pipeline libaries with SQTT

They aren't executable pipelines and they might not contain all
shader stages.

This fixes a crash when generating RGP captures with GPL.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21235>
This commit is contained in:
Samuel Pitoiset 2023-02-10 10:33:28 +01:00 committed by Marge Bot
parent b68f13bc90
commit fa66c8954e

View file

@ -1278,6 +1278,9 @@ sqtt_CreateGraphicsPipelines(VkDevice _device, VkPipelineCache pipelineCache, ui
if (!pipeline)
continue;
if (pCreateInfos[i].flags & VK_PIPELINE_CREATE_LIBRARY_BIT_KHR)
continue;
result = radv_sqtt_reloc_graphics_shaders(device, radv_pipeline_to_graphics(pipeline));
if (result != VK_SUCCESS)
goto fail;