Recompiler: revert the select() form of pixel-shader rla() (#1452) #2930
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!2930
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2930/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?
@SergeAx on GitHub · 2026-11-27 00:33 UTC · original
SergeAx:recomp-revert-2247-rla→main· +6 −127 · 1 files · 1 commits · closed without mergingReverts #2247 (
5081dc8b). Part of #1452.Since #2247 a retail title loses the device (
0x887a0005) at its world load on an RTX 5080. The bisect in #1452 found #2247's merge to be the first bad point ofmain's merges568e7db..b49be18, and reverting only its commit onb49be18(with #1435) took the removal from 6 of 7 runs to 0 of 5. Both forms ofrla()compute the same values, and the debug layer calls the removalDEVICE_REMOVAL_PROCESS_NOT_AT_FAULT, so the NVIDIA driver most likely trips over the new DXIL. Which of the three rewrites does it is not known, so this restores the old form whole until a narrower change that keeps the local-array win is tested.The branch is on
b49be18, themainthe bisect ended on. It merges into today'smainwithout conflicts. Onmainafter #2555, both builds would first have to prepare the title's 26,503 shaders, and the revert changes the HLSL of every one of them (each includesPRELUDE).What is in it
crates/xcl/src/gpu/recomp/emit.rs:PRELUDE::rla()goes back to?:,ifandxcl_lv[min(h >> 5, 3u)]. #2247's three tests go with it: two check for theselect()form, and the GPU one comparesrla()with the form it has again.Tested
cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4at4e008ce5, debug: 1427 passed, 5 failed, 47 ignored. The 5 are known onmain: #1905 (fuzz_validate_and_gpu_0.._3) andvram::tests::d32s8_targets_take_their_own_size_of_video_memory(#2588).V_MUL_F16,V_PK_MUL_F16,V_CVT_F16_F32);heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windowsXCL_PRESS_A_AT=20,24,…,140 XCL_DRED=1 XCL_NETWORK=0, both trees with #1435's14c8a2dfor the earlier crash of #662: onb49be18the device was removed after the world-load step in 6 of 7 runs; on this branch (c55ea7e7= this commit + #1435) in 0 of 5, all of which passed the step at 93–108 s and ran to 240 s.Regression run
main:
this PR:
Not tested
main(8b957bec): neither the title runs nor the smoke runsrla()'s DXIL) is lost; I have not measured what that costs in a titleAI use
@DarkPanda69 on GitHub · 2026-11-27 00:47 UTC · original
AMD run (listed as untested), with an RTX 3060 in the same PC: the revert changes nothing else in the
gpu::suite on either card. (#2929 has a byte-identical diff, so this covers it too.)Tested: pass, head
4e008ceapplied onmain8b957be, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17,XCL_DIRECT_DXILunset (the HLSL path, whererla()lives), card picked withXCL_ADAPTER.cargo test -p xcl --lib -- gpu:: --test-threads=4 --nocapture,mainand this PR one after the other on each card:main708 passed, 2 failed, 6 SKIPPED; this PR 705 passed, 2 failed, 6 SKIPPED. The 2 failures arefuzz_validate_and_gpu_1and_3(#2115), the same onmain.main710 passed, 0 failed, 24 SKIPPED; this PR 707 passed, 0 failed, 24 SKIPPED.On both cards the only differences are the three #2247 tests the revert removes (
rla_pixel_helper_avoids_runtime_vector_indexing_and_branches,rla_pixel_shader_compiles_without_local_arrays,gpu_rla_pixel_shader_matches_reference_including_helper_lanes), which pass onmain. The SKIPPED sets are the same.This only says the revert breaks no other unit or GPU test here. It doesn't touch the Blackwell world-load removal the PR is about; I have no RTX 50 card.
Not tested: a title run, an RTX 50 / Blackwell card, Windows 10, release, Intel.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@SergeAx on GitHub · 2026-11-27 00:48 UTC · original
Closing as a duplicate of #2929, which reverts the same commit with the same diff and was opened 3 minutes earlier. I'll post the RTX 5080 world-load runs there.
Pull request closed