Module: Mesa Branch: main Commit: 8ce4d7a08d8d91abab9ac4f3e9b0f41227f40386 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ce4d7a08d8d91abab9ac4f3e9b0f41227f40386
Author: Ian Romanick <[email protected]> Date: Thu May 18 15:14:16 2023 -0700 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24842> --- src/intel/compiler/brw_fs_nir.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index 058e1846288..edf470868d6 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -4259,7 +4259,6 @@ lsc_fence_descriptor_for_intrinsic(const struct intel_device_info *devinfo, break; case SCOPE_WORKGROUP: scope = LSC_FENCE_THREADGROUP; - flush_type = LSC_FLUSH_TYPE_EVICT; break; case SCOPE_SHADER_CALL: case SCOPE_INVOCATION:
