Repository navigation
docs: V# OOB_SELECT bounds measured on RDNA2 (SHADER-116) - #786
Merged
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_SELECTfield, 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 modesoffsetcounts 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
buffer_load_dword/buffer_store_dwordthrough 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 bysoffset. Details in the note and in the status on Coordinating who works on what (3) (moved to #1006) #634.Checklist
docs/design.md, with how it was confirmed. (N/A: measurement only; SHADER-110 makes the translator change.)AI-assisted (Claude Code).