Recompiler: preserve flat pixel parameter bits #302
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!302
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/302/head"
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?
@ZekkJJ on GitHub · 2026-11-23 22:48 UTC · original
ZekkJJ:codex/ps-flat-integer-inputs→main· +78 −20 · 2 files · 1 commits · merged 2026-11-24 02:44 UTCPart of #249.
V_INTERP_MOV_F32P0 loads a parameter word. Casting that word throughfloatchanges integer selector bits, so a comparison against1or2can take the default path.What is in it
0,1,2, and0xffffffffusing both signed and unsigned vertex formats. The compile test also checks floating-point P0 and P2 code generation.Tested
9ab7d76, the RTX 4060 reproduced the bug: selector1rendered black where red was expected. The test failed.2e67909,cargo test --locked -p xcl --lib p0_ -- --nocapturepassed both tests on each adapter.cargo test --locked --workspace -- --test-threads=4 --nocapturepassed on NVIDIA with the same Rust diff: 652 passed, 0 failed, 40 ignored. Two wave64 cases reported runtime skips.cargo clippy --locked --workspace --all-targetspassed with no diagnostics on changed lines.Regression run
nullmarsh ran both release builds on the same retail title for 60 seconds each, on a Ryzen 7 5800X3D with an RX 9060 XT (driver 32.0.32029.2010), 32 GB RAM and Windows 11 Pro 26200. Both runs used
XCL_NETWORK=0and no input. Independent test reportThe PR run retained 83.5% of the frames and used 100.4% of the peak committed memory. Neither run recorded a crash or device removal. nullmarsh reports that
mainhad a warm shader cache and the PR rebuilt affected shaders at startup.Both runs used the RX 9060 XT according to nullmarsh. The PR head uses an older smoke script that reports the first WMI adapter, which explains the virtual adapter listed in the original output below.
Main build
PR head build
Not tested
58309b9). The new test establishes selector behavior on synthetic inputs.AI use
@ZekkJJ on GitHub · 2026-11-23 23:40 UTC · original
LGTM
@Fizzonaut on GitHub · 2026-11-23 23:50 UTC · original
Independent full-suite test run on commit
2e67909989242c648eb4af071326f3ea33754baa(PR #302 head; clean merge ontoorigin/maindb1ddb2checked viagit merge-tree) on AMD RDNA3 with DXC 1.9 and the D3D12 debug layer: pass.Tested
32.0.31007.5012), AMD Ryzen 7 7800X3D, Windows 11 Pro 26H2 (build26300.9974),rustc 1.100.0(stable-x86_64-pc-windows-msvc), DXC1.9.2609.5viaXCL_DXC_DIR,System32\xgameruntime.dll10.0.26100.9656, D3D12 debug layer active (D3D12SDKLayers.dll), debug build.powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4), noXCL_SAMPLE_*set:SKIPPEDGPU tests (exit 0)XCL_SPLIT_WAVE64=1: 652 passed, 0 failed, 40 ignored, 0SKIPPEDGPU tests (exit 0)gpu::recomp::tests::gpu_ps_p0_reads_flat_integer_selectorsandgpu::recomp::tests::ps_interp_p0_preserves_bits_and_p2_converts_to_float) ran and passed in both modes.Not tested
scripts/smoke.ps1(no unpacked Xbox title available),XCL_SAMPLE_*game-data tests, release build, NVIDIA / wave32-only GPUs.AI use
@ghost on GitHub · 2026-11-24 00:00 UTC · original
Tested
2e67909merged ontomain2b4bb43(clean merge) on a discrete AMD RDNA4 card: pass, and both new tests fail without theemit.rschange, as on your RTX 4060.Tested
.\scripts\test.ps1: 671 passed, 0 failed, 41 ignored; noSKIPPEDGPU tests on this adapter.XCL_REQUIRE_GPU=wave64,mesh cargo test -p xcl --lib p0_:ps_interp_p0_preserves_bits_and_p2_converts_to_floatandgpu_ps_p0_reads_flat_integer_selectorspass.emit.rsput back tomain. Both fail. The GPU test fails atDXGI_FORMAT(3) selector 0x00000001, pixel 0: it got[0, 0, 0, 1]and expected[1, 0, 0, 1].Not tested
XCL_SAMPLE_*and no retail title yet, so nosmoke.ps1runs. XDefiant's UI (the reason for58309b9) isn't covered either.AI use
@PHeitor1 on GitHub · 2026-11-24 00:13 UTC · original
Tested
2e67909merged ontomain3516080.RTX 5060 Ti 8 GB (Blackwell, 32-lane waves), NVIDIA 621.24, Ryzen 5 5600X, Windows 11 Pro 26300 (native, Graphics Tools + XGameRuntime installed, so the debug-layer tests run), rustc 1.100.0 MSVC, debug,
cargo test --workspace --no-fail-fast -- --test-threads=4, noXCL_SAMPLE_*.Pass: 671 passed, 0 failed, 41 ignored. SKIPPED: only the 2
no wave64tests (gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware). Build clean.Run and written with Claude Code (Claude Opus 5.5).
@ghost on GitHub · 2026-11-24 02:20 UTC · original
Regression run on a retail title, which the description lists as pending: same title, 60 s each, run one after the other on the same PC (AMD Radeon RX 9060 XT, RDNA4, driver 32.0.32029.2010; Ryzen 7 5800X3D; 32 GB; Windows 11 Pro 26200), release builds,
XCL_NETWORK=0, no input. Both blocks come fromscripts/smoke.ps1with-Xclpointing at that commit's release build.mainThis PR's head (no uncommitted changes)
main's 1518. Its first seconds rebuild the pixel shaders whose P0 code changed, whilemain's cache was already warm from an earlier run.gpu:line is wrong: the game ran on the RX 9060 XT. Your head carries the oldersmoke.ps1, which names the first adapter WMI lists, and on this PC that's a virtual display driver.main's script reads the adapter XCL actually used.58309b9. I'll compare sampled frames (XCL_FRAME_DUMP) from both builds and add the result here. I won't post images.AI use