Skip to content

Recompiler: revert the select() form of pixel-shader rla() (#1452) - #2930

Closed
SergeAx wants to merge 1 commit into
xcl-dev:mainfrom
SergeAx:recomp-revert-2247-rla
Closed

SergeAx wants to merge 1 commit into
xcl-dev:mainfrom
SergeAx:recomp-revert-2247-rla

Conversation

@SergeAx

@SergeAx SergeAx commented Nov 27, 2026

Copy link
Copy Markdown

Reverts #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 of main's merges 568e7db..b49be18, and reverting only its commit on b49be18 (with #1435) took the removal from 6 of 7 runs to 0 of 5. Both forms of rla() compute the same values, and the debug layer calls the removal DEVICE_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, the main the bisect ended on. It merges into today's main without conflicts. On main after #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 includes PRELUDE).

What is in it

Tested

Regression run

main:

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 5080
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1396 (PresentX 1396)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15823 MB

this PR:

xcl-smoke v1
commit: 4e008ce538c1371e7563e08772d81a5d1cffb28e
gpu: NVIDIA GeForce RTX 5080
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1424 (PresentX 1424)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 17128 MB

Not tested

AI use

  • Claude Code (Claude Opus 5.5) ran the bisect, the title runs, the tests and the smoke runs, made the revert, and wrote this description.

)

This reverts 5081dc8 (xcl-dev#2247). Since that change a retail title loses
the device (0x887a0005) at its world load on an RTX 5080 (driver
621.14, Windows 10): a bisect of main's merges 568e7db..b49be18 found
xcl-dev#2257 good in 4 runs and xcl-dev#2247's merge the first bad point, and on
b49be18 with xcl-dev#1435 the device was removed in 6 of 7 runs, against 0 of
5 with this revert. The new rla() computes the same values and the
debug layer calls the removal DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT, so
the driver likely trips over the new DXIL; which of the three rewrites
does it is not known.

The change's tests go with it: two check for the select() form, and
the GPU one compares rla() with the form it now has again.
@DarkPanda69

Copy link
Copy Markdown

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 4e008ce applied on main 8b957be, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17, XCL_DIRECT_DXIL unset (the HLSL path, where rla() lives), card picked with XCL_ADAPTER.
cargo test -p xcl --lib -- gpu:: --test-threads=4 --nocapture, main and this PR one after the other on each card:

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 on main. 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

SergeAx commented Nov 27, 2026

Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants