intel/compiler: Don't evict for workgroup-scope fences
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 18 May 2023 22:14:16 +0000 (15:14 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 9 Sep 2023 04:41:25 +0000 (04:41 +0000)
commit8ce4d7a08d8d91abab9ac4f3e9b0f41227f40386
tree1a75846e2d1a87d3688b94b58d83290ae79b700a
parent5eddf60e5604a2e489805e6f73066fbfaee90ca6
intel/compiler: Don't evict for workgroup-scope fences

Flushing and invalidating caches isn't necessary for workgroup scope
fences.  In fact, the DP_FLUSH_TYPE docs (BSpec 54041) say:

   "If the fence scope is Local or Threadgroup, HW ignores the flush
    type and operates as if it was set to None(no flush)"

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24842>
src/intel/compiler/brw_fs_nir.cpp