reprend #2174: rdna2spirv: seed the POPS collision word so the wait loop ends (SHADER-POPS-COLLISION-SEED) #2731
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2731"
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 OreoFR on 2026-11-30T13:38:50Z.
Carries #2174 by @QemmHD, because it conflicts with
mainafter #2566 and the reminder to mergemain(https://github.com/ProjectLeonida/mandy/pull/2174#issuecomment-7256005008) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped.Item:
SHADER-POPS-COLLISION-SEED-CARRY(claimed in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7280119323; original itemSHADER-POPS-COLLISION-SEED).What this branch is
15350f6da, unchanged (no rebase, author commits kept).main(from the carry preparation of 29/11) that resolves the conflict, then a merge of currentmainf9f3ec4c6, which had a new conflict (below). Both merge commits carryCo-authored-bythe author.What conflicted and how it was resolved
runtime/test/vk_harness.cpp:main's two-stagehas_capscan, plus the PR'sneeds_interlock = has_cap(fs_code, 5378).f9f3ec4c6:tools/rdna2spirv.py,_translate(straight-line and CFG paths):mainnow passesextra=meta_extrato_shader_meta.collectand reads the literal samplers right after it; the PR'sg.note_pops_word(insns)follows that block, still beforefit_shared_memory/needs_barrier_roundsas in the PR.Tests
mainf9f3ec4c6merged), Windows 11, Python 3.12, no GPU used:tests/semantic/test_pops_collision_seed.py: 12 OK.run_gpu_tests --filter ps_pops_wait_loop: PASS 4096/4096; red (main'srdna2spirv.py): 1 failure + 14 errors, GPU FAIL; full semantic suite 530 files / 6537 tests, same 2 failures asmain.python -I scripts/check_no_game_data.pyon every file this PR changes: clean.ctest, the full translator suite).Depends on: none.
Needs an independent verifier before merge (red/green on another machine), as for any carry.
AI-assisted (Claude Code, oreofr-agent).
🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T13:46:13Z.
Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16 (pytest, no GPU),
mainf9f3ec4c6.main+ only this PR's tests):tests/semantic/test_pops_collision_seed.py: 1 failed.main+merge --no-ffoff474c74b0): 12 passed, 8 subtests passed.tests/semantic/spirv_wave_interp.pyis a helper with no tests of its own ("no tests ran" on both sides).ctestand the rest of the suite (CI).Not independent: this PR and this check share the same owner (OreoFR). Treat it as a second-machine run, not an independent review.
AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-11-30T14:33:04Z.
Independent check on Windows/NVIDIA (not the author), at
f474c74b0.tests/semantic/test_pops_collision_seed.py: 12 passed (python -I -m unittest discover -s tests/semantic -p test_pops_collision_seed.py).vk_harnesschange and ranrun_gpu_tests.py --build build --filter pops:ps_pops_wait_loop 4096/4096 pixels exact— 1/1 passed. The device hasfragmentShaderPixelInterlock, so it ran rather than skipping.Machine: NVIDIA RTX 4070 Ti SUPER, driver 621.01 (Windows 32.0.16.2101), Windows 11 Pro 10.0.26200.9711, MSVC 14.52.37025, Vulkan SDK 1.4.363.0, llvm-mc 21.1.8.
No regressions seen. As with the other carries, a rebase on current
mainbefore merge would keep history linear.AI-assisted: yes (opencode).
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T15:07:44Z.
ed699ed76fixes the redlinux-python-and-viewerjob (found by MoonEyes):tests/test_rdna2_decode.py::test_parity_with_llvm_mc_on_shader_fixturesfailed on this PR's new fixtureruntime/test/shaders/ps_pops_wait_loop.asm(s_add_i32), where llvm-mc printssrc_pops_exiting_wave_idandtools/rdna2_decode.pygaveraw src_239. The decoder now names source operand 239 like llvm-mc;tools/rdna2spirv.pyandtools/shader_ir.pyalready expected that name.rdna2_decode,cpu_reforcf_ref(19 files): before1 failed, 356 passed, 1 skipped, after357 passed, 1 skipped, 1834 subtests passed.test_rdna2_decode.py+test_pops_collision_seed.py+test_translate.py: 768 passed.AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T16:22:19Z.
Verified by MoonEyes (another owner than OreoFR) on head
ed699ed76: Windows 11, Python 3.14, no LLVM, no GPU run.tests/semantic/test_pops_collision_seed.py12 OK on this head; red on the earlier headf474c74b0(withoutrdna2spirv.pyof the change: 9 failures, 4 errors).rdna2_decode.pychanged since (source 239 named): the Linux CI job that compares it with llvm-mc is green on this head.tools/rdna2spirv.py --wave64-emulate, shards 0, 12, 24 and 36 of 48 (2,209 shaders),main20fe0c754againstmain+ this pull request: 2,209 translated and 2,209 passspirv-valin both; 1 of 2,145 SPIR-V files differs (+32 bytes).AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T16:23:59Z.
Merging. Head
ed699ed76merges cleanly withmainffa0f8ed4and does not force a rebase of #2566. Counts equal on the slice, 1 file differs; red/green on Windows 11 by another owner. Merged by MoonEyes.AI-assisted (Claude Code).