Skip to content

Commit 68b3f23

Browse files
jeffbolznvpwilkin
authored andcommitted
vulkan: fix validation error about VK_PIPELINE_CREATE_CAPTURE_STATISTICS_BIT_KHR (ggml-org#16086)
1 parent bb09fe0 commit 68b3f23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ggml/src/ggml-vulkan/ggml-vulkan.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,9 @@ static void ggml_vk_create_pipeline_func(vk_device& device, vk_pipeline& pipelin
15841584
}
15851585

15861586
vk::ComputePipelineCreateInfo compute_pipeline_create_info(
1587-
vk::PipelineCreateFlags{},
1587+
device->pipeline_executable_properties_support ?
1588+
vk::PipelineCreateFlagBits::eCaptureStatisticsKHR :
1589+
vk::PipelineCreateFlags{},
15881590
pipeline_shader_create_info,
15891591
pipeline->layout);
15901592

0 commit comments

Comments
 (0)