zink: add VK_PIPELINE_CREATE_CAPTURE_STATISTICS_BIT_KHR for shaderdb

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28815>
This commit is contained in:
Mike Blumenkrantz 2024-04-18 11:22:35 -04:00 committed by Marge Bot
parent fd6468a5ae
commit 160dd5bf2b
1 changed files with 2 additions and 0 deletions

View File

@ -332,6 +332,8 @@ zink_create_gfx_pipeline(struct zink_screen *screen,
VkGraphicsPipelineCreateInfo pci = {0};
pci.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;
if (zink_debug & ZINK_DEBUG_SHADERDB)
pci.flags |= VK_PIPELINE_CREATE_CAPTURE_STATISTICS_BIT_KHR;
if (!optimize)
pci.flags |= VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT;
if (screen->info.have_EXT_attachment_feedback_loop_dynamic_state) {