mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 21:50:11 +01:00
nir/lower_shader_calls: adding missing stack offset alignment
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 8dfb240b1f ("nir: Add raytracing shader call lowering pass.")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12112>
This commit is contained in:
parent
a94192f69d
commit
7e3bad0f8e
1 changed files with 1 additions and 0 deletions
|
|
@ -459,6 +459,7 @@ spill_ssa_defs_and_lower_shader_calls(nir_shader *shader, uint32_t num_calls,
|
|||
|
||||
nir_builder *b = &before;
|
||||
|
||||
offset = ALIGN(offset, stack_alignment);
|
||||
max_scratch_size = MAX2(max_scratch_size, offset);
|
||||
|
||||
/* First thing on the called shader's stack is the resume address
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue