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

vISA RT_READ

T1 intel-gpu simd insn
Intel GPU vISA Instruction: RT_READ
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

Summary

Intel GPU vISA RT_READ instruction.

Syntax / Encoding

[(<P>)] RT_READ[.<Mode>] (<Exec_size>) <Surface> [<SI>]

Binary Encodings (1)

WidthFormatBit PatternMask / Match
Intel-vISA /

Operands

NameDescription
Exec_sizeExecution size
PredPredication control
ModeVarious bits control the parameters of the RT read.
SurfaceSurface variable index
SISI Index. Present only of SI bit is set in Mode
DstThe raw operand of a general variable storing the results of the read

Reference Notes

## Opcode

  RT_READ = 0x90

## Format

| | | | | | | |
| --- | --- | --- | --- | --- | --- | --- |
| 0x90(RT_READ) | Exec_size | Pred | Mode | Surface | SI | Dst |


## Semantics


```

  This message takes 16 or 32 pixels for reads to a render target. This message is intended only for use by pixel shader kernels for reading data from render targets.
  A SIMD16 writeback message consists of 4 destination registers and SIMD32 writeback consists of 8 registers.
```

## Description






- **Exec_size(ub):** Execution size

  - Bit[2..0]: size of the region for source and destination operands

    - 0b100:  16 elements
    - 0b101:  32 elements
  - Bit[7..4]: execution mask (explicit control over the enabled channels)

    - 0b0000:  M1
    - 0b0100:  M5
    - 0b1000:  M1_NM
    - 0b1100:  M5_NM

- **Pred(uw):** Predication control


- **Mode(uw):**  Various bits control the parameters of the RT read.

  - Bit[0]: "PS" whether Per Sample Bit is set

  - Bit[1]: "SI" whether Sample Index is used


- **Surface(ub):** Surface variable index


- **SI(vec_operand):** SI Index. Present only of SI bit is set in Mode


- **Dst(raw_operand):** The raw operand of a general variable storing the results of the read


#### Properties




## Text
```





[(<P>)] RT_READ[.<Mode>] (<Exec_size>) <Surface> [<SI>]

// <Mode> is of the form [<PS><SI>] and may be in any order.
```