mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
nir: handle get_buffer_size in nir_lower_atomics_to_ssbo
Overlooked initially, be we need to remap the SSBO index for this as well. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
cd6f79a71d
commit
ef4c42fc3a
1 changed files with 1 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ lower_instr(nir_intrinsic_instr *instr, unsigned ssbo_offset, nir_builder *b)
|
|||
case nir_intrinsic_ssbo_atomic_comp_swap:
|
||||
case nir_intrinsic_store_ssbo:
|
||||
case nir_intrinsic_load_ssbo:
|
||||
case nir_intrinsic_get_buffer_size:
|
||||
/* easy case, keep same opcode and just remap SSBO buffer index: */
|
||||
op = instr->intrinsic;
|
||||
idx_src = (op == nir_intrinsic_store_ssbo) ? 1 : 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue