i965/cs: Enable barrier in MEDIA_INTERFACE_DESCRIPTOR
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 5 Nov 2014 08:47:41 +0000 (00:47 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 10 Sep 2015 23:46:29 +0000 (16:46 -0700)
commit34cff76fc2da1ce9abad6e2b1856fec6a950d19c
treeff07e0c10a8255d38db80a5cedbecbe9518ab72f
parentb01d0473917ba15de3aa146006bfef5836d10e93
i965/cs: Enable barrier in MEDIA_INTERFACE_DESCRIPTOR

Enable barrier in MEDIA_INTERFACE_DESCRIPTOR if the program uses the
barrier() GLSL function.

On Ivy Bridge and Haswell, this allows the piglit test
tests/spec/arb_compute_shader/execution/simple-barrier-atomics.shader_test
to pass. On gen8, this enables a similar test with a local group size
of 896 to pass.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_cs.cpp
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp