nv50/ir: add atomics support on shared memory for Fermi
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Jan 2016 00:32:23 +0000 (01:32 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 21 Feb 2016 09:42:32 +0000 (10:42 +0100)
commit14a810e9d0dbf52e547ae6e16a68487d7cb92004
tree84968877f45846ab619a89b2a49c4a201ec88a1c
parente0371e63df173be38a086a5d816eeaf0e8cbe7eb
nv50/ir: add atomics support on shared memory for Fermi

Changes from v3:
 - move the previous OP_SELP change to the previous commit

Changes from v2:
 - make sure the op is OP_SELP when emitting the predicate and add one
   assert
 - use bld.getSSA() for mkOp2()
 - add cross edge between tryLockAndSetBB and joinBB

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.h