From 8ce4d7a08d8d91abab9ac4f3e9b0f41227f40386 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 18 May 2023 15:14:16 -0700 Subject: [PATCH] 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 Part-of: --- 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 058e184..edf4708 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: -- 2.7.4