v3d: Fix atomic cmpxchg in shaders on hardware.
authorEric Anholt <eric@anholt.net>
Wed, 17 Apr 2019 21:44:44 +0000 (14:44 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 18 Apr 2019 20:24:55 +0000 (13:24 -0700)
commit12f6c34806cbb1d9e65ee3d070c753b4b47a6e64
tree46b75b67e96671578474dc5f9bb7f5f1ccc2e646
parent1ce143ca19950d52a1b5eec418a5c90843049304
v3d: Fix atomic cmpxchg in shaders on hardware.

In what might be my first case of finding a divergence between hardware
and simpenrose for v3d 4.x, it seems that despite what the spec claims,
you actually need specific values in the TYPE field for atomic ops.

Fixes dEQP-GLES31.functional.*.compswap.*
src/broadcom/compiler/nir_to_vir.c