Skip to content

docs: V# OOB_SELECT bounds measured on RDNA2 (SHADER-116) - #786

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
AC-Storm-YT:docs/oob-select-rdna2
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
AC-Storm-YT:docs/oob-select-rdna2

Conversation

@AC-Storm-YT

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: SHADER-116 (#634)

What and why

SHADER-110 makes the translator pick the buffer bounds check by the V# OOB_SELECT field, and the finding planned to take Mesa's GFX10 column on trust, since only RDNA3.5 had been measured. This measures RDNA2 natively. RDNA2 follows Mesa's GFX11 column, not GFX10, and in raw mode soffset counts too.

  • docs/buffer_bounds.md (new): the measured rule per mode next to both Mesa columns, @AlxcBTW's RDNA3.5 result, the method, and what's still open (gfx1013 / GFX10.1 needs an RDNA1 card).
  • docs/README.md: lists it under "Runtime, GPU and validation".

It doesn't touch design.md's "Buffer bounds checking" row, which #443 and SHADER-110 change; SHADER-110 can link this note.

Tested

  • Measured on a Ryzen 7 9800X3D iGPU (gfx1036, RDNA2), AMD driver 3679.0 (PAL, LC), Windows 11: raw buffer_load_dword / buffer_store_dword through OpenCL inline assembly with hand-built V#s. 732 cases, three identical runs; Mesa GFX10 matches 696, GFX11 729, and the 3 others are explained by soffset. Details in the note and in the status on Coordinating who works on what (3) (moved to #1006) #634.
  • Docs only: no test or tool reads these files.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (N/A: measurement only; SHADER-110 makes the translator change.)

AI-assisted (Claude Code).

docs/buffer_bounds.md records which buffer accesses are out of range per the
V# OOB_SELECT field, measured natively on a Ryzen 7 9800X3D iGPU (gfx1036,
RDNA2) with raw buffer_load_dword / buffer_store_dword: 732 cases (modes 0-3,
stride 0/16/18, NUM_RECORDS 0/3/18/48, offen / idxen / both, raw with
soffset), three identical runs.

RDNA2 follows Mesa's GFX11 column, not GFX10 (729 vs 696 of 732): mode 0
checks offset + 4 > stride and raw mode offset + 4 > N. Raw mode also counts
soffset. Modes 1 and 2 match both columns. Loads and stores agree. The
console's gfx1013 (GFX10.1) is left open: it needs an RDNA1 card.

docs/README.md lists the new note.

AI-assisted (Claude Code).
@ItsNotRexed
ItsNotRexed merged commit ec4840a into ItsNotRexed:main Nov 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants