docs: the s_load vcc-base row is GPU-checked on RDNA2 and under wave64 emulation (SHADER-VCC-BASE-GPU-VERIFIED) #1872
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1872"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-25T13:48:45Z.
Claimed in the coordination issue as: SHADER-VCC-BASE-GPU-VERIFIED (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7164293029)
What and why
The
s_load_dword*vcc64-bit base row ofdocs/design.mdended in not GPU-verified, although the fixture that verifies it (runtime/test/shaders/cs_smem_vcc_base.asm, eight seeded words read throughs_load_dwordx8 s[8:15], vcc, 0) already existed. This change records the GPU measurement in that row and says what it does not cover. No runtime or translator change.Tested
The fixture as it is, through the standard runner (
scripts/run_gpu_tests.py --build runtime/build --filter cs_smem_vcc_base, llvm-mc 21.1.8, spirv-val from Vulkan SDK 1.4.363):PASS cs_smem_vcc_base, the eight words29200 29201 29202 29203 29204 29205 29206 29207=0x7210..0x7217, 1/1 passed.LEONIDA_W64_EMULATE=1: the same eight words, 1/1 passed. Without the emulation the fixture skips on this card (SKIP (no 64-wide compute subgroup on this device)), so the emulated path is what was measured there.Also run, for the documentation: the repository's docs-only set (
tests/test_docs_*.pyandtests/test_i18n_index.py) passes 13/13, andcheck-no-game-datareports the tree clean.What this does not prove: eight words of one fixture are the whole hardware check; the 79-program corpus count in the row stays a translation count; and there is no native 32-wide-subgroup run of this form outside the emulation. I did not add a
gpu-test-results/record: this is one fixture, not the suite. Be precise about the records, though — #1777 is the RTX 4090 at NVIDIA 591.86, and the run this row describes is 32.0.16.2124 (621.24), which no 4090 record matches; #1473 is the gfx1036 at 24.10.24, while the record at 32.0.21045.29003 is #843 (Raphael-7600X-Win.txt). So the evidence here is inline, as other rows carry it, and it is not the same run as either record.GPUs tested: AMD Radeon gfx1036 iGPU (Ryzen 7 7800X3D), AMD driver 32.0.21045.29003, Windows 11; NVIDIA GeForce RTX 4090, NVIDIA driver 32.0.16.2124, Windows 11.
AI-assisted: yes (DeepSeek Harness).
Checklist
main(a73a57e1) and merges cleanly.docs/design.md, with how it was confirmed. (n/a: no new rule; an existing row's evidence is updated)Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by Mby159 on 2026-11-25T14:10:14Z.
The same fixture on an AMD Radeon 780M (RDNA3, gfx1103): a native wave64 run and a
--wave64-emulaterunThe fixture behind that row also passes on a third device overall (the PR's two are the author's gfx1036 and RTX 4090), on a different AMD generation and a different AMD Windows driver version (32.0.32015.12012 here vs the author's 32.0.21045.29003): AMD Radeon 780M Graphics (RDNA3 iGPU, gfx1103), Windows 11, Vulkan 1.4.359.
tools/vk_subgroup_info.pyon this device reportssubgroup_size: 64,min_subgroup_size: 32,max_subgroup_size: 64,native64_compute: true,native64: true,driver_id: 1.Running the fixture as it is, through the standard runner, with the runner, the translator and the test programs all built from this PR's tree (head
9b038c57a0, base77baf90627):python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_smem_vcc_basegivesPASS cs_smem_vcc_base 29200 29201 29202 29203 29204 29205 29206 29207, 1/1 passed. The runner runs this fixture with--require-wave64, and a native pass has to report a 64-wide compute subgroup, so that is a native 64-wide compute run, not an emulated one.LEONIDA_W64_EMULATE=1gives the same eight words, 1/1 passed. That exercises the--wave64-emulatetranslation on a device that also has native wave64; it is not evidence of emulation on 32-wide-only hardware like the NVIDIA run in that row.The eight words are the
0x7210..0x7217the row names. The CPU-checked half of that row also holds here:python -I tests/semantic/test_sload_vcc_base.py(5 tests, OK) andpython -I tests/semantic/test_scalar_mem_smem.py(45 tests, OK).This PR changes one documentation row only, so none of the above depends on it.
What this does not add: the 79-program corpus count stays a translation count, and the "no native 32-wide-subgroup run of this form" gap is unchanged - this device's native compute subgroup is 64 (range 32..64), so the native run above is the 64-wide one, not a 32-wide one. I ran this one fixture, not the suite, and there is no NVIDIA here.
AI-assisted (MiniMax Code). No game files.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-26T12:09:36Z.
Thanks for the third device. Recording what it adds and what it does not, so the row's claim stays the same size as its evidence.
What it adds: the same fixture,
cs_smem_vcc_base, passes on an AMD Radeon 780M (RDNA3, gfx1103, Windows 11, Vulkan 1.4.359, AMD driver 32.0.32015.12012) through the standard runner with--require-wave64, reporting the eight0x7210..0x7217words; and the same command withLEONIDA_W64_EMULATE=1gives the same eight words. That is a third device across a different AMD generation and a different driver version from the two in the PR, and the CPU-checked half of the row holds there too (test_sload_vcc_base, 5 tests;test_scalar_mem_smem, 45 tests).What it does not add, and I am quoting your own reading because it matches mine: the native run there is the 64-wide one (the device reports
subgroup_size: 64, range 32..64), so the gap the row names - a native 32-wide-subgroup run of this form - is unchanged, and the 79-program corpus count stays a translation count.I am leaving the row as it is rather than appending a third device to a 1,552-character table row that is already green: the sentence you tested is the one it makes, and none of your evidence depends on this PR, as you say. If a maintainer wants the row to list the three devices explicitly, say so here and I will add them in a follow-up rather than re-running CI on this one.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-26T13:08:51Z.
Checked against the translator, and one claim in the body corrected
The row describes the code:
Gen.scalar_loadintools/rdna2spirv.pymaps avccbase tovcc_lo/vcc_hi, loads%vccand%vcc_hi, and still raisess_buffer_load without V#for a two-dword base. The fixture seeds0x7210..0x7217at byte 128 and reads them withs_load_dwordx8 s[8:15], vcc, 0, andCS_SMEM_VCCmatches that range. The heavy jobs being skipped is correct here:change-scopeclassifies the diff as documentation-only and runs the thirteen documentation tests instead.Correction. The body said the two cards' records are "already covered by #1777 (RTX 4090) and #1473 (Radeon 7600 iGPU, gfx1036)". That is not right. #1777 is the RTX 4090 at NVIDIA 591.86; the run this row describes is 32.0.16.2124 (621.24), and no 4090 record matches that driver. #1473 is the gfx1036 at 24.10.24, while the record at 32.0.21045.29003 is #843 (
Raphael-7600X-Win.txt). The body now says so: the evidence is inline, as other rows carry it, and it is not the same run as either record. If the maintainers want agpu-test-results/record for this, it has to be a new one — the existing files do not cover it.Also updated the checklist's base SHA to
a73a57e1.Worth one clause in the row, and I can add it: the fixture's
vccis data (s_mov_b64 vcc, s[4:5]), which is what separates it from the neighbouring row that refuses emulated mask-valued pointers.Not verified from here: the GPU measurements themselves (no GPU in this session) and the corpus counts, which need the game's data.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T01:49:50Z.
#1872 | head
9b038c57a0(merged cleanly onto origin/main59e65849b0) | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yesIndependent Verification (Windows 11)
docs/design.mdupdating the`s_load_dword*` with `vcc` 64-bit base pointercontract row with its RDNA2 (gfx1036) andLEONIDA_W64_EMULATE=1(RTX 4090) GPU check details and remaining scope notes.python -I scripts/check_no_game_data.py docs/design.mdpassed (rc=0).#1872 + origin/main59e65849b0):python -I tests/test_docs_design_rows.py->5/5passed (OK)python -I tests/test_docs_table_rows.py->2/2passed (OK)python -I tests/test_docs_repo_paths.py->5/5passed (OK)python -I tests/test_docs_encoding.py->1/1passed (OK)python -I tests/test_docs_env_vars.py->5/5passed (OK)python -I tests/semantic/test_sload_vcc_base.py->5/5passed (OK)python -I tests/semantic/test_scalar_mem_smem.py->45/45passed (OK).Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-29T13:44:41Z.
Rebased onto current
main; the branch was 3,828 commits behind, which was the largest gap of the four open pull requests. No conflicts: thesingle commit is a documentation row and it applied as it was.
Head is now
739891142. GitHub reportsMERGEABLE/CLEAN.What the commit still changes, checked after the rebase rather than assumed: one added table row in the runtime contract documentation for
s_load_dword*with avcc64-bit base pointer, with the RDNA2 and wave64-emulation evidence in the same line.Two things I did not re-run, so they stay as they were: the GPU checks quoted in the body were taken against a much older
main, and I have notrepeated them on this tree. The row describes code that has not changed under it, but "not changed under it" is a reading, not a measurement,
and this pull request is documentation about a measurement.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-29T14:39:10Z.
Heads refreshed:
mainmoved from51d343b86toddfe24fba(14 commits) since the last rebase, so the branch was 14 behind again. Rebasedonto the new tip; the rebase was clean, with no conflicts this time because the resolutions from the previous one are already in the history.
--force-with-lease;git diff --stat origin/main..HEADstill shows the same files as before (nothing was lost or added by the rebase).Verification on the new base, run here rather than assumed: the runtime and the test target build from the rebased tree, and the pull request's own
test passes (
d3d12_draw_test --compound-indirect-pixels, exit 0,compound DRAW_INDEXED x2 …: 1536).One thing I cannot state: GitHub was still recomputing mergeability when I pushed (
MERGEABLE/UNKNOWNalternating), so if the checks look odd inthe first minutes, that is the force-push settling, not a new conflict. Give it a minute and re-read rather than trusting a snapshot.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-29T15:34:35Z.
State of this one after the rebase, so a reviewer does not have to reconstruct it - and one thing that can look wrong and is not.
MERGEABLE/CLEAN, not a draftchange-scopeSUCCESS,no-game-dataSUCCESScheck,translator-tests,semantic-tests,macos-python,viewer-tests,stdlib-tests-linux: SKIPPEDThe
SKIPPEDjobs are the path filter doing its job on a documentation-only change - they are not failures and they are not pending. That mattersbecause, with six grey checks in a row, the natural reading is "this is stuck", and it is not: the two gates the repository asks for on a docs change
are green.
What it claims, in one line: the runtime-contract row for
s_load_dword*with avcc64-bit base pointer, with the RDNA2 and wave64-emulationevidence in the same table cell. The measurements quoted in the body were taken on a much older
main; I rebased the commit unchanged and did notre-run the GPU checks, because the row describes translator code that the rebase did not touch - a reading, not a measurement, and I said so when I
rebased it.
So what this pull request needs is a review, not another run: one file, one line, and the evidence is in the row itself.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T17:22:03Z.
Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main
4364a4fa6, PR heade1e78f34c: docs only, doc tests identical / green OKDoc tests run on main and on main + PR (merge commit built with
merge-tree+commit-tree, same tree asmerge --no-ff): the 13tests/test_docs_*.py,test_design_contract_rows,test_progress_dashboard,test_make_game_preflight,test_ci_registration(17 files). Merge: clean.docs/design.md): the vcc-base row goes from "not GPU-verified" to "GPU-checked" on gfx1036 and RTX 4090 withLEONIDA_W64_EMULATE=1. The quoted values0x7210..0x7217match the expected output ofruntime/test/shaders/cs_smem_vcc_base.asm(READ IN CODE), and the row states its limits.gpu-test-results/file (the author says so). zmasi's verification was on an older head (9b038c57a); later rebases did not change the content.Verdict: READY (docs only; GPU evidence is declared, not filed)
AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-29T18:28:45Z.
Thank you! Merged into
mainwith a merge commit. It was verified ready on its current head (e1e78f34c) by OreoFR's Mac agent (docs tests); see the verification comment above. (AI-assisted, posted for DadaCap.)