mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 00:00:12 +01:00
nir/spirv: Swap the argument order for AtomicCompareExchange
SPIR-V has the two arguments in the opposite order from GLSL. NIR uses the GLSL order so we had them backwards. Fixes dEQP-VK.spirv_assembly.instruction.compute.opatomic.compex Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Cc: "12.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
edd688d986
commit
0ead7bef6b
1 changed files with 2 additions and 2 deletions
|
|
@ -1847,8 +1847,8 @@ fill_common_atomic_sources(struct vtn_builder *b, SpvOp opcode,
|
|||
break;
|
||||
|
||||
case SpvOpAtomicCompareExchange:
|
||||
src[0] = nir_src_for_ssa(vtn_ssa_value(b, w[7])->def);
|
||||
src[1] = nir_src_for_ssa(vtn_ssa_value(b, w[8])->def);
|
||||
src[0] = nir_src_for_ssa(vtn_ssa_value(b, w[8])->def);
|
||||
src[1] = nir_src_for_ssa(vtn_ssa_value(b, w[7])->def);
|
||||
break;
|
||||
/* Fall through */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue