i965/nir/fs: Implement new barrier functions for compute shaders
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 10 Oct 2015 20:00:04 +0000 (13:00 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 6 Nov 2015 21:16:11 +0000 (13:16 -0800)
commitfaa119307035787f5e421dd6a9eb4d0101de963b
tree58a96e7e2ca3bb4072817d4a0b7936088e034920
parent9d65f3208bbded17119c7ad38f4b692d3ed00635
i965/nir/fs: Implement new barrier functions for compute shaders

For these nir intrinsics, we emit the same code as
nir_intrinsic_memory_barrier:

 * nir_intrinsic_memory_barrier_atomic_counter
 * nir_intrinsic_memory_barrier_buffer
 * nir_intrinsic_memory_barrier_image

We treat these nir intrinsics as no-ops:
 * nir_intrinsic_group_memory_barrier
 * nir_intrinsic_memory_barrier_shared

v3:
 * Add comment for no-op cases (curro)

v4:
 * Moving comment to a separate patch authored by curro

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp