From 6e3573127c6a971cac7e5d597a2ea24857ba9e0a Mon Sep 17 00:00:00 2001 From: Simon Perretta Date: Tue, 23 Sep 2025 15:05:26 +0100 Subject: [PATCH] vulkan/runtime: only set shader subgroup info if non-zero Signed-off-by: Simon Perretta Fixes: 67c4b762a5 ("vulkan: setup max_subgroup_size for drivers without var...") Reviewed-by: Georg Lehmann Part-of: --- src/vulkan/runtime/vk_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/runtime/vk_pipeline.c b/src/vulkan/runtime/vk_pipeline.c index e45940b0735..d0a5abdc9a3 100644 --- a/src/vulkan/runtime/vk_pipeline.c +++ b/src/vulkan/runtime/vk_pipeline.c @@ -120,7 +120,7 @@ vk_set_subgroup_size(struct vk_device *device, shader->info.min_subgroup_size = req_subgroup_size; } else if (allow_varying || spirv_version >= 0x10600) { /* Starting with SPIR-V 1.6, varying subgroup size is the default */ - } else { + } else if (properties->subgroupSize) { shader->info.api_subgroup_size = properties->subgroupSize; shader->info.max_subgroup_size = properties->subgroupSize; if (require_full) {