mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 04:10:10 +01:00
vulkan/runtime: Fix typo in stack size calculation
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:
parent
aa86530056
commit
a00560f763
1 changed files with 2 additions and 2 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue