Shaders: xcl disasm prints EXP targets and VINTRP attributes (#664) #701
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/706"
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 ivall/xcl. Originally posted by milas6669 on 2026-11-24T03:56:29Z.
Stacked on #687; only the top commit (
a8561bdaf770) belongs here.xcl disasmnow prints EXP targets/enabled sources and VINTRP attributes as LLVM does:exp param7, off, v121, off, v178 done compr vmandattr5.w. Part of #664. Rebased onto maincbc296ab65a2, retaining main's image dispatch and merged SMEM formatting.What is in it
crates/xcl/src/gpu/rdna2.rs: EXP target names,offfor disabled sources, compressed register slots, and done/compr/vm; VINTRP attribute/channel and p10/p20/p0 parameter names.exp_text_matches_llvmchecks all 16 LLVM gfx10 EXP lines and the issue's word;vintrp_attribute_and_channelchecks the issue's example and MOV/P2 forms.Tested
a8561bdaf770bb03bf8c88ec866a948b6fe259d6; NVIDIA RTX 3070, driver 621.40, Intel i9-10900KF, Windows 11 Pro 10.0.26200, stable Rust 1.100.0/MSVC, debug build.cargo build --workspace --locked: passed.cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture: 1159 passed, 0 failed, 46 ignored (Cargo counts include tests that report skips).V_MUL_F16,V_PK_MUL_F16,V_CVT_F16_F32);uploads_start_from_each_subresources_stateandtest_title_draws_with_a_root_signature_under_the_debug_layerlack the debug layer;pso_measurement_compiles_an_exact_synthetic_recordneeds Developer Mode to disable the driver cache;heap_window_out_of_memory_falls_back_to_the_switch_formlacks heap windows.Regression run
Clean main (
cbc296ab65a2), 60 seconds:Clean PR head (
a8561bdaf770), same title and time:Not tested
AI use
Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T03:56:37Z.
Stacked on #687: the diff on GitHub shows both commits until #687 merges; only the top one (
5525cf2) is part 3.Imported from ivall/xcl. Originally posted by lordon1a on 2026-11-24T04:07:46Z.
Independent test report on
5525cf2:Tested
616.64, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200),rustc 1.100.0(x86_64-pc-windows-gnullvm), debug buildcargo test -p xcl --lib gpu::rdna2::tests -- --nocapture0.27s(vintrp_attribute_and_channelandexport_targettests ok)Not tested
AI use
5525cf2in a detached worktree, audited the diff, ran the test suite, and posted this report.Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T04:07:58Z.
Test run of
5525cf242e0437a9f2ab75fe18afd2e7fb0c6bb4on AMD RDNA4. I merged it onto currentmainf4ce27clocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 706 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 665 passed, 0 failed, 21 ignoredSKIPPED;vintrp_attribute_and_channeland the otherrdna2tests pass.Review: Disassembler text only; no translation path changes. I did not compare every EXP target name against LLVM's list.
Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T01:12:09Z.
Both AMD (RX 9060 XT) and NVIDIA (RTX 3070 Ti) verification look solid on
5525cf2. Please rebase ontomain(and after#687if still stacked) to clear therdna2.rsconflict and runBuild and test (Windows, no GPU).Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T06:10:35Z.
Empirical test report (
a8561bda)Verified PR #706 at detached head
a8561bdaf770bb03bf8c88ec866a948b6fe259d6.Hardware / environment
rustc --versionreturnedrustc 1.100.0 (0ef1bc386 2026-11-09).dxc.exe --versionreporteddxcompiler.dllversion1.9.2609.5 (01b62ad47).XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Both Cargo steps ran outsideInvoke-ArcTest.ps1, with zero Arc GPU mutex hold.Commands and results
cargo test --workspace --no-runcompiled the workspace test targets and exited 0.cargo test -p xcl --lib gpu::rdna2::tests::exp_text_matches_llvm -- --exact --nocaptureexited 0 with 1 passed, 0 failed, and 0 ignored.cargo test -p xcl --lib gpu::rdna2::tests::vintrp_attribute_and_channel -- --exact --nocaptureexited 0 with 1 passed, 0 failed, and 0 ignored.Observed behavior
exp param7, off, v121, off, v178 done compr vm.attr5.wfor the issue sample,p20, attr2.yfor the encoded MOV case, andattr32.xfor the encoded P2 case.Not tested
The full GPU workspace suite, CLI end-to-end tests, and game smoke runs were omitted.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr706-focused.log and published.
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T06:50:37Z.
Independent Windows check of exact stacked PR head
a8561bdaf770bb03bf8c88ec866a948b6fe259d6, prompted by the current-head report request in #1607.Tested
30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. These decoder/formatter tests run on the CPU; they do not exercise the GPU.XCL_REQUIRE_GPU=0,XCL_DIRECT_DXIL=0;cargo test --locked -p xcl --lib -j 2 gpu::rdna2::tests -- --test-threads=1 --show-output: 22 passed, 0 failed, 0 ignored; 0 SKIPPED. Both added tests,exp_text_matches_llvmandvintrp_attribute_and_channel, passed. The VOP3/VOP3P tests inherited from #687 also passed, with the LLVM gfx10 VOP3 fixture reporting 6,487 instructions, 907 with modifiers, 0 differences.This is an exact-head focused test of the stacked tree. I did not run the full GPU workspace suite, the CLI disassembler end to end, or a title smoke comparison for this PR.
AI-assisted checkout, testing, log verification, and report drafting with OpenAI Codex (GPT-6). No game data was used.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T11:54:24Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T14:57:12Z.
merge-check claim
head:
a8561bdaf7Imported from ivall/xcl. Originally posted by throny on 2026-11-28T15:17:13Z.
merge-check
base:
309c3ec5head:
a8561bdaf7merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2147 passed, 0 failed, 48 ignored (26 SKIPPED lines). Base alone at
309c3ec5: 2142 passed, 0 failed, 48 ignored.review: no blocking finding; all hunks read. Important for whoever merges: this PR is stacked on #687, which is still open, and its diff contains both commits. Merging #706 merges #687 too, so the tree tested here is main + #687 + #706. The new operand arms are reachable (the field is narrower than the arm before them), and the corpus files the tests read exist on main.
performance: none at run time. It changes a translator source and the disassembly also goes into the generated shader comments: every tester re-translates all shaders once.
verdict: safe to merge (together with #687 or after it)
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T02:14:43Z.
merge-check claim
head:
a8561bdaf7Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T02:20:23Z.
merge-check
base:
53e85fb124head:
a8561bdaf7merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2796 passed, 3 failed, 49 ignored; SKIPPED: 30 (22 no wave64, 3 per-lane #1426 refused, 2 no heap windows, 2 no xgameruntime.dll, 1 cannot disable the driver cache 0x887A002D); failing: hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline (also fails on base
53e85fb1alone), two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (in --lib and --test gpu_two_pass_cache_e2e under --test-threads=4; passed when run alone on base53e85fb1)review: none (read the full +270/-1 diff in crates/xcl/src/gpu/rdna2.rs: stacked on open #687 so merging #706 merges both; adds EXP target/EN/COMPR/done/compr/vm formatting, VINTRP attr/channel and p10/p20/p0 formatting, plus #687's VOP3/VOP3P modifiers; all 5 new tests including exp_text_matches_llvm and llvm_gfx10_vop3_modifiers passed; no duplicates found; not tested: retail smoke on this machine or invalid EXP targets)
performance: none at runtime (changes disassembly formatting only; shader comments include disassembly so translated shader caches re-translate once)
verdict: safe to merge (together with #687 or after it)
hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:59:04Z.
Triage (#1607) – head
a8561bdStacked on #687 (it carries #687's commit
ae103e7); only the top commita8561bd, EXP targets and VINTRPattrN.c/p10/p20/p0, belongs here. No other open or merged PR prints EXP or VINTRP operands, and main still prints them as raw fields.No problems found in the top commit's diff; it conflicts with main and needs a rebase after #687.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.