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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user