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>
This commit is contained in:
Ian Romanick 2023-05-18 15:14:16 -07:00 committed by Marge Bot
parent 5eddf60e56
commit 8ce4d7a08d

View file

@ -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: