intel/fs: Ignore SLM fences if shared is unused
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 17 Sep 2021 12:45:46 +0000 (07:45 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Sep 2021 20:52:54 +0000 (20:52 +0000)
commiteb53d82d2d356385cc8b321e77fad516ec0a7bec
tree4cda29d4b2608855db17f64d8ffc1780d076abf6
parentf726246297e56ae0b3fac1af072f57dce16700ab
intel/fs: Ignore SLM fences if shared is unused

Found this nugget while looking at the ACO driver.  It seems sensible to
avoid SLM fences if there is no SLM.  This also makes the check depend
on SLM usage rather than just shader stage which will be useful if we
ever implement task/mesh because task shaders also have SLM.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13092>
src/intel/compiler/brw_fs_nir.cpp