ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

vISA FENCE

T1 intel-gpu simd insn
Intel GPU vISA Instruction: FENCE
SourceIntel Graphics Compiler Official Virtual ISA (vISA) Specification (intel_gpu_visa)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeIntel Gen8–Xe2 vISA
Intel Gen9–Gen12 / Xe-LP / Xe-HPG / Xe-HPC / Xe2
License & VersionMIT
master
Upstreamhttps://github.com/intel/intel-graphics-compiler/tree/master/documentation/visa
Privilegeuser
ExtensionsBDW, SKL, BXT, ICLLP, TGLLP

Summary

Intel GPU vISA FENCE instruction.

Syntax / Encoding

FENCE_{GLOBAL|LOCAL}.{E?I?S?C?R?L1?}

Binary Encodings (1)

WidthFormatBit PatternMask / Match
Intel-vISA /

Operands

NameDescription
MaskControls whether the various caches should be flushed.

Reference Notes

## Opcode

  FENCE = 0x5c

## Format

| | |
| --- | --- |
| 0x5c(FENCE) | Mask |


## Semantics


```

      Memory fence.
```

## Description





```
    Performs scattered write into <surface>, using the values from <src>.
```


- **Mask(ub):**  Controls whether the various caches should be flushed.

  - Bit[0]: the "commit enable" bit. If set, the fence is guaranteed to be globally observable.

  - Bit[1]: flush instruction cache if set.

  - Bit[2]: flush sampler cache if set.

  - Bit[3]: flush constant cache if set.

  - Bit[4]: flush read-write cache if set.

  - {ICLLP+}Bit[5]:

    - 0b0:  fence is applied to global memory (surface-based accesses and SVM)
    - 0b1:  fence applies to shared local memory only
  - Bit[6]: flush L1 read-only data cache if set

  - Bit[7]: indicates this is a scheduling barrier but will not generate an actual fence instruction.


#### Properties




## Text
```



    FENCE_{GLOBAL|LOCAL}.{E?I?S?C?R?L1?}

    FENCE_SW

    //E - commit enable

    //I - Instruction Cache

    //S - Sampler Cache

    //C - Constant Cache

    //R - Read-Write Cache

    //L1 - L1 Cache

    //FENCE_SW means a software only scheduling barrier
```
## Notes





      Cache flush is normally not needed for correctness.