Repository navigation
docs: sub-dword MUBUF loads and GFX10_FORMAT_8_UINT measured on gfx1100 - #4407
bobcatchris wants to merge 3 commits into
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Ran this at c8d66405 on Windows 11: test_docs_links.py 6 OK, test_docs_design_rows.py 2 OK; git diff --check clean.
The sub-dword MUBUF loads and GFX10_FORMAT_8_UINT measurement is documented with counts/offsets, and the existing rows agree. No blocking issue.
|
Lightweight CPU code read of
No game data or GPU used. |
|
PASS for a docs-only row: 14 docs tests with 3 subtests, Caveat: the 13 gfx1100 cases have no committed probe or case list, so the hardware claim is not reproducible from the repo. That is acceptable for a docs-only change but worth a line in the row or the body, as other measured rows do. Approve. AI-assisted review, docs only. |
…1100 16 cases on gfx1100 use the output buffer as scratch memory: byte and short stores change only the addressed bytes, the d16_hi forms take the data VGPR's high half, both dword-crossing accesses are exact, and the d16 loads fill one half of vdst and keep the other, with ubyte zero-extending and sbyte sign-extending.
c8d6640 to
5fad624
Compare
Row 242 was CPU-checked and NVIDIA-tested but explicitly not measured on AMD hardware. Running the four sub-dword loads and FORMAT code 5 as raw compute kernels on a Radeon RX 7900 XTX pins the zero-/sign-extension, the dword-crossing ushort at offset 3, the element-size end check at NUM_RECORDS 8, and the 1-byte end check on the typed 8_UINT path, so the row no longer carries the "Not GPU-verified" marker.
|
Rebased onto #4161's head at |
5fad624 to
5896987
Compare
|
Tested 5896987 merged with main 98fa503 on Linux (Python 3.12.16): concern (docs only) - tests/test_docs_*.py (10 files) all OK, negative control n/a. Two verified text issues in docs/design.md: (1) in the 8/16-bit global stores row a stray |
Both rows still ended with "Not GPU-verified" (and the MUBUF row with "Not measured on AMD hardware") immediately before the new RX 7900 XTX measurements, and one bold marker opened nowhere. Keep the NVIDIA-only caveat for the inactive-lane clause and drop the rest. AI-assisted.
|
Both fixed in 6be1070:
AI-assisted. |
|
Trial-merged head
AI-assisted review (Gemini 4 Neon). |
|
Tested 6be1070 merged with main d974c88 on Linux (Python 3.12.16): pass (docs only). Earlier issues (5896987):
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/design.md
|
Closing as superseded: |
Row
Sub-dword MUBUF loads and GFX10_FORMAT_8_UINTwas CPU-checked and passed on an NVIDIA card, and said explicitly "Not measured on AMD hardware (tools/hw_oracle)". It is now measured natively on an AMD Radeon RX 7900 XTX (gfx1100, driver 26.10.1).13 cases through
tools/hw_oracle, one raw wave32 compute kernel each, with the data region seeded from synthetic dwords (0x5EED8000,0x5EEE8001, ... so every byte differs). The expected words are the documented rule written out by hand (u8/s8/u16/s16 over the seeded bytes, and anoff + size > NUM_RECORDSend test), not the translator's output. All 13 match:buffer_load_ubyte/sbyte/ushort/sshortzero-/sign-extend at byte offsets 0..7:0x80reads0x00000080as ubyte and0xffffff80as sbyte,0xeegives0xffffffee, the ushort at 2 is0x5eed.5e 01give0x015e, offset 5 gives0xee80, offset 70x025e, offset 110x035e.NUM_RECORDS= 8 the end check uses the element size, not a dword: ubyte@7 reads0x5eand @8 returns 0, ushort@6 reads0x5eeeand @7 returns 0, sshort@7 returns 0 while sbyte@7 reads0x5e.FORMATcode 5 (GFX10_FORMAT_8_UINT) throughbuffer_load_format_xreturns the byte zero-extended at offsets 0..3 (0x00,0x80,0xed,0x5e), and so doestbuffer_load_format_x format:[BUF_FMT_8_UINT]; atNUM_RECORDS8, offset 7 reads0x5eand 8 returns 0, so its end check is 1 byte.DST_SELs are 1/2/3/4 (the integer form) returns the integer 1 in all four components, not the fetched byte. My first-pass expectation there was wrong and the hardware corrected it.Not measured here: an inactive lane preserving
vdst. The EXEC-masked variant produced no usable output from this harness, so that clause still rests on the repo's NVIDIA run (cs_buf_load_sub.asm), and the row says so.Docs-only: one row of
docs/design.md(1 insertion, 1 deletion).tests/test_docs_design_rows.py,test_docs_links.py,test_docs_list_items.py,test_docs_repo_paths.py,test_docs_table_rows.py: all pass. No game data, synthetic operands and immediates only.AI-assisted.