From a00560f7633232c53bf90ba1ac9835ebd1d5e228 Mon Sep 17 00:00:00 2001 From: Sagar Ghuge Date: Tue, 28 Oct 2025 10:19:07 -0700 Subject: [PATCH] vulkan/runtime: Fix typo in stack size calculation Fixes: 69a04151db4 ("vulkan/runtime: add ray tracing pipeline support") Signed-off-by: Sagar Ghuge Reviewed-by: Yiwei Zhang Part-of: --- src/vulkan/runtime/vk_pipeline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vulkan/runtime/vk_pipeline.c b/src/vulkan/runtime/vk_pipeline.c index d0a5abdc9a3..cc19badd3c2 100644 --- a/src/vulkan/runtime/vk_pipeline.c +++ b/src/vulkan/runtime/vk_pipeline.c @@ -3152,9 +3152,9 @@ vk_create_rt_pipeline(struct vk_device *device, pipeline->stack_size, stack_max[MESA_SHADER_RAYGEN] + MIN2(1, pCreateInfo->maxPipelineRayRecursionDepth) * - MAX4(stack_max[MESA_SHADER_CLOSEST_HIT], + MAX3(stack_max[MESA_SHADER_CLOSEST_HIT], stack_max[MESA_SHADER_MISS], - stack_max[MESA_SHADER_INTERSECTION], + stack_max[MESA_SHADER_INTERSECTION] + stack_max[MESA_SHADER_ANY_HIT]) + MAX2(0, (int)pCreateInfo->maxPipelineRayRecursionDepth - 1) * MAX2(stack_max[MESA_SHADER_CLOSEST_HIT],