Shaders: xcl disasm prints VOP3 / VOP3P source and output modifiers (#664) #687
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!687
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-687"
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?
@milas6669 on GitHub · 2026-11-24 03:30 UTC · original
milas6669:disasm-vop3-modifiers→main· +193 −1 · 1 files · 1 commits · openxcl disasmnow prints VOP3/VOP3P source and output modifiers, matching LLVM. Part of #664; EXP/VINTRP is stacked in #706.The implementation remains xelerb-debug's, with its author and original Claude Opus 5.5 credit preserved. Rebased onto main
cbc296ab65a2; the conflict resolution retains main's SDWA compare destination and newer image/SMEM formatting.What is in it
crates/xcl/src/gpu/rdna2.rs: neg/abs, op_sel/op_sel_hi, neg_lo/neg_hi, clamp and omod; VOP3 op_sel only on applicable gfx10 instructions, with no modifiers printed for v_nop.Tested
ae103e776e5c765f04a5276add86354980be0433; 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: 1157 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 (
ae103e776e5c), same title and time:Not tested
AI use
@MesshM on GitHub · 2026-11-24 03:42 UTC · original
Test run of
9e6a5cc9397df8058a622147391bdbe0f1f88d59on AMD RDNA4. I merged it onto currentmain91f9a5elocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 695 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 655 passed, 0 failed, 21 ignoredSKIPPED;vop3_source_and_output_modifiers,vop3p_modifiersandllvm_gfx10_vop3_modifierspass.Review: NEG / ABS print as
-|v|on float sources only (integer sources andv_ldexp's exponent ignore them), thenclamp, thenmul:2/mul:4/div:2, which is the orderllvm-mcuses. I found nothing to change.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.
@towiice on GitHub · 2026-11-24 03:48 UTC · original
Independent check of
9e6a5cc9397df8058a622147391bdbe0f1f88d59(PR head), run as is.Tested
x86_64-pc-windows-gnullvm(llvm-mingw 20261117), debugcargo test -p xcl --lib rdna2: 12 passed, 0 failed, 1 ignored (vop3_source_and_output_modifiers,vop3p_modifiersandllvm_gfx10_vop3_modifiersamong them)Not tested
scripts/smoke.ps1, MSVC, AMDmodifiers()helper inllvm_gfx10_vop3_modifierskeeps a word by its first character (-followed byv/s/t/e/m) or by name; I did not check whether a negated inline constant or a register name outside those letters would slip through. This is a question, not a finding.AI use
@lordon1a on GitHub · 2026-11-24 03:58 UTC · original
Independent test report on
9e6a5cc:Tested
616.64, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200),rustc 1.100.0(x86_64-pc-windows-gnullvm), debug build, DXC1.9.2609.5(01b62ad4)cargo test -p xcl --lib gpu::rdna2::tests -- --nocapture0.34s(vop3_source_and_output_modifiers,vop3p_modifiers, andllvm_gfx10_corpus6487 VOP3 / 907 with modifiers all ok)Not tested
AI use
9e6a5ccin a detached worktree, audited the diff, ran the test, and posted this report.@raylitebull on GitHub · 2026-11-25 01:12 UTC · original
Both AMD (RX 9060 XT) and NVIDIA (GTX 1650 SUPER, RTX 3070 Ti) verification look solid on
bb42ab3. Please rebase ontomainto resolve the currentrdna2.rsmerge conflict soBuild and test (Windows, no GPU)can run cleanly.@JJAutoCompare on GitHub · 2026-11-25 06:10 UTC · original
Empirical test report (
ae103e77)PR #687, commit
ae103e776e5c765f04a5276add86354980be0433.Hardware / environment
1.100.0 (0ef1bc386 2026-11-09)with the unoptimized Cargo test profile. Installed DXC reported1.9.2609.5 (01b62ad47).XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Both commands ran directly, outsideInvoke-ArcTest.ps1, with zero Arc GPU mutex hold.Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test executables.cargo test -p xcl --lib -- --nocapture --exact gpu::rdna2::tests::vop3_source_and_output_modifiers gpu::rdna2::tests::vop3p_modifiers gpu::rdna2::tests::llvm_gfx10_vop3_modifiersexited 0 with 3 passed, 0 failed, 0 ignored, and 0SKIPPEDlines. The filter excluded 1,124 other library tests.Observed behavior
mul:4, clamp, and operand selectors, includingv_permlane16_b32.Not tested
The full GPU workspace suite 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 pr687-focused.log and published.
@luckyteagirl on GitHub · 2026-11-25 06:50 UTC · original
Independent Windows check of exact PR head
ae103e776e5c765f04a5276add86354980be0433, 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: 20 passed, 0 failed, 0 ignored; 0 SKIPPED. The VOP3 and VOP3P modifier tests passed. The LLVM gfx10 VOP3 fixture reported 6,487 instructions, 907 with modifiers, 0 differences.This is an exact-head focused test. 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.
@DavidM1911 on GitHub · 2026-11-25 12:06 UTC · original
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!
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.