Recompiler: treat SDST=null (125) as Dst::Null in ENC_SOPK #1153
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1162"
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 b3IKK on 2026-11-24T12:43:26Z.
ENC_SOPKunconditionally constructedDst::S(sd), so writes withSDST == 125(null, e.g.s_addk_i32 null, Kto updateSCCwithout clobbering an SGPR) emitted invalid HLSL (0u = t1;) and failed DXC compilation.This matches
dst_ofby mappingsd == 125toDst::Null.What is in it
crates/xcl/src/gpu/recomp/emit.rs: mapsd == 125toDst::NullinENC_SOPK.crates/xcl/src/gpu/recomp/tests.rs: add GPU testgpu_sopk_null_sdst_emits_valid_hlslcoveringS_ADDK_I32,S_MOVK_I32,S_CMOVK_I32, andS_MULK_I32withSDST = 125across wave32 and split wave64 (verified failing DXC compilation before the fix).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 742 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2no wave64—gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)cargo test -p xcl --lib gpu_sopk_null_sdst_emits_valid_hlsl: 1 passed, 0 failed across wave32 and split wave64 (failed DXC compilation witherror: expression is not assignablebefore the fix)Regression run
main:
PR:
Not tested
AI use
emit.rs, wrote the fix and GPU test, ran the test suite andscripts/smoke.ps1regression runs, and drafted this PR description.Imported from ivall/xcl. Originally posted by bjarngard on 2026-11-24T13:05:07Z.
Test report for head
cdbb516(AMD, native wave64)Tested
XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no SKIPPEDXCL_REQUIRE_GPU=wave64:gpu_sopk_null_sdst_emits_valid_hlslpassedNot tested: retail titles, RDNA3/RDNA4.
AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.
Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T13:57:07Z.
A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler.
Tested
x86_64-pc-windows-gnu.cdbb516as it is (based on47efa2e), no uncommitted changes. The lib test binary runs under Wine, one test per process (--exact).gpu::recomp::tests::gpu_sopk_null_sdst_emits_valid_hlsl: ok, no SKIPPED.Not tested
AI use
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T06:12:24Z.
Independent RX 6800M GPU check on exact PR head
cdbb516a5277f033bfaa871ed09f633dd7d1727f.Tested
30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5.XCL_ADAPTER=6800M XCL_REQUIRE_GPU=wave64 cargo test --locked -p xcl --lib -j 2 gpu_sopk_null_sdst_emits_valid_hlsl -- --test-threads=1 --show-output: 1 passed, 0 failed, 0 ignored in 1.08 s. NoSKIPPEDline was emitted. The test covers four SOPK instructions withSDST=125on the GPU's native wave64 and split wave64 forms.I did not run the full workspace suite, a pre-fix negative control on this machine, or a retail title smoke comparison. This is a focused GPU regression result on an older PR head, not a current-main integration result. No game data was used or uploaded.
AI-assisted testing and report drafting with OpenAI Codex (GPT-6); I checked the exact revision and test log before posting.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T07:46:51Z.
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 github-actions[bot] on 2026-11-29T07:40:17Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:57:32Z.
Triage (#1607) – head
cdbb516No open or merged PR makes the same change; main's ENC_SOPK path in emit.rs still builds Dst::S(sd) for SDST = 125 (null) instead of Dst::Null, as dst_of does for other encodings.
No problems found in the diff; the s_cmpk ops read SDST as a source and are unaffected. The branch conflicts with main and needs a rebase.
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.