Repository navigation
Conversation
) 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.
|
AMD run (listed as untested), with an RTX 3060 in the same PC: the revert changes nothing else in the Tested: pass, head
On both cards the only differences are the three #2247 tests the revert removes ( 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. |
|
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. |
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 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)]. Recompiler: eliminate local array and branches in pixel-shader PRELUDE::rla() #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: DXIL GPU fuzz tests reproducibly fail with E_OUTOFMEMORY on RTX 5060 #1905 (fuzz_validate_and_gpu_0.._3) andvram::tests::d32s8_targets_take_their_own_size_of_video_memory(D3D12.X: a direct list at a released compute list's heap vtable address gets the compute list's methods #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 D3D12.X: XG CopyInto/FromSubresource take the newer library's added argument #1435's14c8a2dfor the earlier crash of XG CopyFromSubresource: retail title passes one argument more → memcpy AV in copy_from; then null write at game+0x23cf683 at end of loading #662: onb49be18the device was removed after the world-load step in 6 of 7 runs; on this branch (c55ea7e7= this commit + D3D12.X: XG CopyInto/FromSubresource take the newer library's added argument #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