vulkan/runtime: Fix typo in stack size calculation
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Fixes: 69a04151db ("vulkan/runtime: add ray tracing pipeline support")
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38115>
This commit is contained in:
Sagar Ghuge 2025-10-28 10:19:07 -07:00
parent aa86530056
commit a00560f763

View file

@ -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],