spirv: Rework barriers
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Aug 2017 05:01:42 +0000 (22:01 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 7 Mar 2018 20:13:47 +0000 (12:13 -0800)
commit68af9f04a4a3cd5d8d6777d4b2c575d5fbabda97
tree0f90adb822d858eeba1a44a6fa7c6f3542fdee7d
parentde518f38e53bceef40e4262bf7c3eeb66837fe8f
spirv: Rework barriers

Our previous handling of barriers always used the big hammer and didn't
correctly emit memory barriers when specified along with a control
barrier.  This commit completely reworks the way we emit barriers to
make things both more precise and more correct.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/spirv/spirv_to_nir.c