Recompiler: match all VOP3 encoding names in ps_masks #2605
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!2605
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2605"
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?
@AlpPesen on GitHub · 2026-11-26 01:27 UTC · original
AlpPesen:amd-dev/fix-ps-masks-vop3→amd-dev· +44 −2 · 1 files · 1 commits · openFixes VOP3 encoding detection in
crates/xcl/src/gpu/recomp/ps_masks.rs:per_laneandformscheckedd.enc.name.starts_with("ENC_VOP3"), which missesVOP3_SDST_ENC,VOP3_SDST_ENC_INST_LITERAL, andVOP3_INST_LITERAL. As a result,V_ADD_CO_CI_U32,V_SUB_CO_CI_U32, andV_SUBREV_CO_CI_U32inVOP3_SDST_ENCfell through toVCCinstead of checking theirSRC2carry-in SGPR pair inper_lane(d), allowing divergedSRC2reads to slip pastps_masks::run.What is in it
d.enc.name.starts_with("ENC_VOP3")withd.enc.name.contains("VOP3")inper_laneandforms(crates/xcl/src/gpu/recomp/ps_masks.rs).vop3_sdst_and_literal_encodings_are_recognizedverifyingVOP3_SDST_ENC(V_ADD_CO_CI_U32/V_SUB_CO_CI_U32)SRC2extraction and scalar-vs-literalForm::Uniform.Tested
rustc 1.100.0, DXC1.9.2602.17.cargo test -p xcl --lib gpu::recomp::ps_masks: 4 passed, 0 failed, 0 ignored, 0 skipped.Not tested
Regression run
AI use
amd-devps_masks.rs, implemented the fix and unit test, ran the tests and pairedscripts/smoke.ps1runs, and drafted this PR description.@DavidM1911 on GitHub · 2026-11-26 01:57 UTC · original
Verification on RTX 3060 Ti (Windows 11), head merged with current
main:cargo test -p xcl --lib -- --test-threads=1: aborts with 0xc0000409 (STATUS_STACK_BUFFER_OVERRUN) partway through, deterministically:During
hle::d3d12x::pso_async::used_tests::a_released_queued_pipeline_is_not_built_by_normal_workers. An injected worker panic is followed by a0xffffffffffffffffCOM-pointer dereference on another worker — the poisoned pointer is not being checked during teardown. Real bug in the merged state.Note: the branch is a ~212-commit stack on
main, so this may belong to an earlier layer (the pso_async frame-wait-window work looks related).— Devin
@DarkPanda69 on GitHub · 2026-11-26 02:01 UTC · original
NVIDIA run (listed as untested), plus an RX 9070 XT: the new test passes on both, and nothing else changes against
amd-devin the GPU suite.Head
5b4437eapplied onamd-devb5c0275, debug, Windows 11 Pro 26200,cargo test -p xcl --lib -- gpu:: --test-threads=4(default HLSL path) onamd-devand with the PR, card chosen withXCL_ADAPTER:amd-devOn both cards, the only result change is the new
vop3_sdst_and_literal_encodings_are_recognized(ok), with no new skips. All the failures are the same onamd-devwithout this PR:dispatch_chain_native_wave64_builds_whole,a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier,f32_programs_on_the_gpu;fuzz_validate_and_gpu_1(#2115).Not tested: Intel, Linux / Wine, a title.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
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.