mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
nir: fix nir_get_io_offset_src for global_atomic_swap_amd
Fixes: 354df09c88 ("nir: add global_amd to nir_get_io_offset_src/nir_get_io_index_src")
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37821>
This commit is contained in:
parent
c13caa5e5f
commit
e08911dff4
1 changed files with 2 additions and 1 deletions
|
|
@ -1005,7 +1005,6 @@ nir_get_io_offset_src_number(const nir_intrinsic_instr *instr)
|
|||
case nir_intrinsic_store_ssbo_intel:
|
||||
case nir_intrinsic_store_global_amd:
|
||||
case nir_intrinsic_global_atomic_amd:
|
||||
case nir_intrinsic_global_atomic_swap_amd:
|
||||
return 2;
|
||||
case nir_intrinsic_load_ssbo_ir3:
|
||||
/* This intrinsic has 2 offsets (src1 bytes, src2 dwords), we return the
|
||||
|
|
@ -1017,6 +1016,8 @@ nir_get_io_offset_src_number(const nir_intrinsic_instr *instr)
|
|||
* dwords one for opt_offsets.
|
||||
*/
|
||||
return 3;
|
||||
case nir_intrinsic_global_atomic_swap_amd:
|
||||
return 3;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue