Skip to content

D3D12.X: newer list layout #139 Reset goes through title_list::reset - #929

Merged
ivall merged 1 commit into
xcl-dev:mainfrom
shelbykb2:pr/title-list-reset-139
Nov 25, 2026
Merged

ivall merged 1 commit into
xcl-dev:mainfrom
shelbykb2:pr/title-list-reset-139

Conversation

@shelbykb2

@shelbykb2 shelbykb2 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

On the newer console command-list layout (real::QUEUE_SHIFTED), titles reset pooled command lists through slot #139 (Reset(allocator, initial_pso, flags)), which real.rs maps to list_x::reset_x.

title_list's wrapper vtable only overrode slots 0, 1, 2, 9, 10, leaving v[139] as a raw forwarder to F_BACKING. Once a mid-list Wait64 split switched F_BACKING to a continuation segment, #139 reset only that continuation segment and never ran title_list::reset: F_PRIMARY kept its old recording/allocator, F_BACKING was never restored to F_PRIMARY, and extra_active kept accumulating split segments across frames. Before #897 that caused 0x887a0001 device removals (ID3D12CommandAllocator reset while still referenced by an un-reset primary list); even with #897/#907 allocator pooling, stale primary and prior split segments stay attached and get resubmitted until extra_active hits MAX_EXTRA_SEGMENTS.

The wrapper's v[139] is now a guard::make_layout_split of its own: a title on the newer layout (real::QUEUE_SHIFTED) goes to a four-argument adapter that runs title_list::reset; a title on the older layout and the runtime keep the generated forwarder to F_BACKING, whose tail jump preserves the caller's return address for the backing list's own layout guard at #139 (review finding by @ettehn: a Rust call into the backing slot hid the title caller, so an older-layout title reached the PC method).

What is in it

  • crates/xcl/src/hle/d3d12x/title_list.rs: vtable slot #139 becomes slot_139(forwarder, &QUEUE_SHIFTED), a make_layout_split with the generated forwarder as older and pc and the adapter reset_139 (runs title_list::reset) as newer. Unit tests: newer_layout_slot_139_resets_primary_and_reclaims_split_segments (forwarder and newer-layout reset on fake lists) and slot_139_keeps_the_title_caller_for_the_backing_layout_guard (a caller in a registered mapped image calls the slot with the backing slot behind a layout guard as real.rs installs it; flag clear reaches the older handler with the title's arguments, flag set resets the primary and reclaims the split segment). Both use a test-local layout flag, not the global QUEUE_SHIFTED.

Tested

  • Hardware: AMD Radeon RX 6800 (driver 32.0.21045.29003), AMD Ryzen 9 7950X3D, Windows 11 Pro 10.0.26300 (Build 26300), rustc 1.100.0 (0ef1bc386 2026-11-09), debug (cargo test) and release (cargo build --release -p xcl).
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 715 passed, 3 failed, 41 ignored on head b3a969b (integration test binaries: 41 passed, 0 failed, 20 ignored; cargo test -p xcl --lib title_list in release and in debug: 3 passed, 0 failed, 0 ignored; d3d12x::guard tests in debug: 4 passed, 0 failed).
    • The 3 failures are pre-existing in-process interference on this adapter unrelated to title_list.rs: hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels fails (3D 64x64x64 4 mips: subresource 2 mismatch) when preceded in-process by gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes (reproduces when running only hle::d3d12x::title_textures with --test-threads=1), poisoning the shared lock for hle::d3d12x::title_textures::tests::transitions_apply_when_their_list_is_submitted and hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory. Each of the 3 passes individually (1 passed, 0 failed with --test-threads=1).
  • SKIPPED GPU tests on this adapter: none (0 skipped).
  • Retail testing: verified on a newer retail title that exercises mid-list Wait64 splits and newer-layout slot #139 resets; previously hit 0x887a0001 device removals after the first mid-list split, and with the newer-layout part of this fix (first revision of this PR, release build) survived 64+ mid-list splits with 0 device removals. That retail run has not been repeated on the current head.

Regression run

xcl-smoke v1
commit: 09940bb87fa11bc394fd9e5de570c2b7cfd16323
gpu: AMD Radeon RX 6800
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1401 (PresentX 1401)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 21704 MB
xcl-smoke v1
commit: b3a969b72cbcbf951f0b99a3b2a67aa6b03a1176
gpu: AMD Radeon RX 6800
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1491 (PresentX 1491)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 19341 MB

Not tested

  • NVIDIA, Intel, RDNA4 / wave32-only GPUs, and Wine/Proton.
  • Older command-list layout (QUEUE_SHIFTED == false) on a real title (covered by unit test only). The second unit test fails on this PR's first revision only in a debug build; in release that call was compiled as a tail jump.
  • The PR-head smoke block is the second run of that binary; the first run after the build showed 914 frames (33-34 presents per 2 s) with 0 device removals and 0 crashes, which I attribute to shader caches being rebuilt for a new binary, without having measured that.
  • The 60 s regression smoke run above stays in the title's startup/menu window and does not reach mid-list Wait64 splits (which happen later in loading).

AI use

  • Antigravity with Gemini 4: used to diagnose the slot #139 bypass, write the fix and unit test in title_list.rs, run the test and smoke commands, and draft this description; diff and test outputs reviewed by the author.
  • Claude Code with Claude Opus 5.5: used to verify the review finding in the code, write the make_layout_split change and the second unit test, rerun the suite and the smoke run, and update this description.

@ettehn

ettehn commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

The newer-layout reset works in my native Windows probe on 5df36d1: the RTX 5070 Ti Laptop completed 16 split/submit cycles per run and reused the same continuation in five separate runs. I found an older-layout dispatch regression that the direct fake-vtable test misses.

The adopted backing list also routes slot 139 through guard::make_layout_split in real.rs. That guard uses the caller's return address to distinguish a title from PC code. The original wrapper tail-jumps into the backing slot. In my Windows debug build, reset_newer_with(..., false) makes a fresh Rust call instead, so the backing guard sees an XCL caller.

I tested a synthetic caller registered in the module table, with distinct older/PC marker handlers behind the real layout guard. With QUEUE_SHIFTED=false, the original forward(139) reached the older handler (0), while the PR's public wrapper reached the PC handler (77). Those numbers are test markers. I haven't measured the impact on an older retail title.

A local fix reused the existing make_layout_split at the wrapper: capture the generated v[139] as both older and pc, and have newer point to a four-argument adapter calling wrapper reset. The original forwarder then retains the caller and arguments. With that change the same mapped caller reached the older marker with the flag clear and reset the primary with the flag set. All three focused wrapper tests passed.

OpenAI Codex (GPT-6.2 Astra) assisted with verification.

@dcastell1

Copy link
Copy Markdown

Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean main@beaa245 (713 passed, 0 failed, 41 ignored on this box):

patch -p1 < this PR            # clean, no fuzz
cargo test --workspace -- --test-threads=4
714 passed; 0 failed; 41 ignored   (exit 0)

One more passing test than main: the newer list layout's Reset through title_list is covered and green; nothing else changes verdict.

Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.

@shelbykb2
shelbykb2 marked this pull request as ready for review November 24, 2026 08:42
…eset

On the newer console command-list layout (real::QUEUE_SHIFTED), titles reset pooled lists through slot ivall#139 Reset(allocator, initial_pso, flags), which real.rs routes to list_x::reset_x.

title_list's wrapper vtable only overrode slots 0, 1, 2, 9, and 10, leaving slot ivall#139 as a raw forwarder to F_BACKING. Once a mid-list Wait64 split switched F_BACKING to a continuation segment, ivall#139 reset only that continuation segment and never ran title_list::reset: F_PRIMARY stayed bound to the previous recording/allocator, F_BACKING was never restored to F_PRIMARY, and extra_active kept accumulating split segments across frames.

On pre-ivall#897 main that caused D3D12 device removal (0x887a0001 / debug-layer id 541) as soon as the old allocator was reused; even with ivall#897/ivall#907 allocator pooling, stale primary/prior segments continue to be resubmitted and extra_active grows until MAX_EXTRA_SEGMENTS.

The wrapper's ivall#139 is now a guard::make_layout_split of its own: a title on the newer layout goes to a four-argument adapter that runs wrapper reset, while a title on the older layout and the runtime take the generated forwarder. The forwarder's tail jump keeps the caller's return address and arguments, which the backing list's own layout guard at ivall#139 needs to tell a title from the runtime; calling the backing slot from Rust would hide it and send an older-layout title to the PC method.

Tests: one covers the forwarder and the newer-layout reset on fake lists; one calls the slot from a caller in a registered mapped image, with the backing slot behind a layout guard as real.rs installs it and a test-local layout flag (flag clear: the older handler with the title's arguments; flag set: the primary is reset and the split segment reclaimed).

Co-Authored-By: Antigravity <noreply@google.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shelbykb2
shelbykb2 force-pushed the pr/title-list-reset-139 branch from 5df36d1 to b3a969b Compare November 24, 2026 09:21
@shelbykb2

Copy link
Copy Markdown
Contributor Author

@ettehn Thanks for testing this and for tracing the older-layout path. I checked it in the code: the backing list's #139 sits behind make_layout_split, so a Rust call from the wrapper hides the title's return address and an older-layout title lands on the PC method.

The fix uses your suggested shape and is squashed into the PR's commit (head is now b3a969b). The wrapper's #139 is its own make_layout_split: the generated forwarder is both older and pc, and newer is a four-argument adapter that runs wrapper reset.

The new test slot_139_keeps_the_title_caller_for_the_backing_layout_guard calls the slot from a caller registered as a mapped image, with the backing slot behind a real layout guard and a test-local layout flag. With the flag clear it reaches the older handler with the title's arguments; with the flag set it resets the primary. It fails on the previous revision in a debug build only; in release that call was compiled as a tail jump, which is why my release runs did not show it.

The suite and the smoke run were repeated on the new head and the description is updated (715 passed, 3 failed as before, 41 ignored). Not tested: an older-layout retail title.

Claude Code (Claude Opus 5.5) assisted with the change and the test.

@ettehn

ettehn commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Verified the fix on b3a969b with the same independent Windows probe that failed on 5df36d1. The older-layout call through slot 139 previously returned the PC marker (77) instead of the original handler result (0). It now returns 0, and the newer-layout call still resets the primary list with the expected allocator and PSO. All four targeted title-list tests passed, including the PR’s new caller-routing test. This resolves my earlier finding.

Verification assisted by OpenAI Codex (GPT-6.2 Astra).

@SlopTart

Copy link
Copy Markdown

Linux / AMD RDNA3 datapoint.

Merged state: head b3a969b onto main 9aec53d, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 715 passed, 11 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). list layout #139 Reset-through-title_list green.

Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.

Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross x86_64-pc-windows-gnu, XCL_NETWORK=0, release profile, --test-threads=4. My Linux rows: #42 / #718.

AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

@3L1A5-1

3L1A5-1 commented Nov 24, 2026

Copy link
Copy Markdown

Test report for b3a969b on an 8 GB NVIDIA card in the retail title: with it, the false GPU-cycle signals and the device removal at ~200 s are gone in 3 of 3 runs, and the runs get 65–165 s further. They end on three later stops.

Follow-up to @not-rex's note on #505, where they suggested this PR as the cause of the stale counter writes I reported there.

Tested

without #929 (1 run) with #929, run 1 run 2 run 3
Write64 Signal … would close a GPU cycle 32 (186–197 s) 0 0 0
device removed 0x887a0006 at 197.6 s – – –
nvlddmkm events 13 ×2 + 153 none none none
first #101 128.7 s 101.2 s 132.7 s 124.7 s
end 197.6 s, title int3 +0x2474606 after the removal 262.5 s, 0xc0000005 in xboxbvhbuilder.dll+0x15078 (read) 331.1 s, title assert +0x4da6315 (#1164) 363.6 s, title watchdog +0x23cf683
local video memory at the end (DXGI budget ~7.2 GB) 7.85 GB 7.75 GB 8.06 GB 8.01 GB
  • After the xboxbvhbuilder.dll access violation in run 1, XCL logged the exception but the process didn't end; the log stopped and I had to kill it. I found no report of that address.
  • I can't show the stale counter values directly. My local logging of writes in the watched counter range saw none in any of these four runs, so on this tree the title's counters sit elsewhere. The result above is indirect: the cycle signals and the GPU fault that followed are gone.
  • cargo test --workspace -- --test-threads=4 on this tree: 773 passed, 0 failed, 41 ignored, SKIPPED the 2 wave64 tests. That needs a local one-line fix in a real.rs test that calls the removed Slots::acquire; the failure comes from the D3D12.X: a bind does not wait for a pipeline behind the workers' queue #1273 stack, not from this PR.

Not tested: this PR alone on main; more than one run without it; AMD; Linux.

AI use: Claude Code (Claude Opus 5.5) ran the runs, compared the logs and wrote this.

@pvfreis

pvfreis commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Test report for b3a969b merged onto main cbc296a (clean, tree bdb5a3c): nothing new fails, both new tests pass, and I found no defect reading the diff. One optional note, not a reason to push to this PR: the new tests don't exercise the line that installs the fix (:73).

Tested

  • RTX 3060 12 GB (driver 617.14), Ryzen 9 5900XT, Windows 11 (10.0.26300), Rust 1.100.0, debug, isolated session without a display
  • cargo test --workspace --locked --offline --no-fail-fast -- --test-threads=4, one run each, passed / failed / ignored:
main 1153 / 1 / 46
this PR 1155 / 1 / 46
this PR, line :73 deleted 1155 / 1 / 46
this PR + the change below, line deleted 1154 / 2 / 46
this PR + the change below 1155 / 1 / 46

The shared failure is test_title_runs_and_game_folder_is_untouched (presents 0; it fails the same way on main here). 24 SKIPPED lines in each run, mostly wave64.

The note: the first test calls slot_139(forward(139), &NEWER) (:510) and reset_139 (:517), the second slot_139(forward(139), &NEWER) (:569); neither reads entry 139 of the wrapper's table. With v[139] = slot_139(...) deleted both still pass (rustc only warns that slot_139 and reset_139 are never used). With the change below, slot_139_keeps_... fails without that line (left: 2, right: 0: the call reaches the backing list's handler) and passes with it. It touches non-test code (vtable()'s body moves to slots(flag), same behaviour), so it fits a follow-up PR better.

Not tested: a retail title, AMD. CI is action_required on this head, so it hasn't run.

Run and written with Claude Code (Claude Opus 5.5); counts rechecked by a second agent (Claude Opus 5.5), text reviewed with Claude Fable 5.2; checked by a person before posting.

Change
@@ -59,21 +59,23 @@
 /// every other slot a thunk to the currently active PC list's entry (`F_BACKING`).
 fn vtable() -> usize {
     static V: OnceLock<Vtable> = OnceLock::new();
-    V.get_or_init(|| {
-        let mut v = vec![0usize; LIST_SLOTS];
-        let trace = std::env::var_os("XCL_LIST_TRACE").is_some();
-        for (slot, e) in v.iter_mut().enumerate() {
-            *e = if trace { forward_traced(slot) } else { forward(slot) };
-        }
-        v[0] = qi as usize;
-        v[1] = add_ref as usize;
-        v[2] = release as usize;
-        v[9] = close as usize;
-        v[10] = reset as usize;
-        v[139] = slot_139(v[139], &super::real::QUEUE_SHIFTED);
-        Vtable(Box::leak(v.into_boxed_slice()).as_ptr() as usize)
-    })
-    .0
+    V.get_or_init(|| Vtable(Box::leak(slots(&super::real::QUEUE_SHIFTED).into_boxed_slice()).as_ptr() as usize)).0
+}
+
+/// `vtable`'s entries; `newer_layout` is what slot #139 looks at (a test has a flag of its own).
+fn slots(newer_layout: &'static std::sync::atomic::AtomicBool) -> Vec<usize> {
+    let mut v = vec![0usize; LIST_SLOTS];
+    let trace = std::env::var_os("XCL_LIST_TRACE").is_some();
+    for (slot, e) in v.iter_mut().enumerate() {
+        *e = if trace { forward_traced(slot) } else { forward(slot) };
+    }
+    v[0] = qi as usize;
+    v[1] = add_ref as usize;
+    v[2] = release as usize;
+    v[9] = close as usize;
+    v[10] = reset as usize;
+    v[139] = slot_139(v[139], newer_layout);
+    v
 }
 
 /// `mov rcx, [rcx + F_BACKING]; mov rax, [rcx]; jmp [rax + slot * 8]`
@@ -566,7 +568,9 @@
         });
         let primary = Box::into_raw(Box::new(ResetFake { vt: vt.as_ptr(), refs: 1, reset_calls: 0, slot139_calls: 0, last_alloc: 0, last_pso: 0, last_arg3: 0 }));
         let seg1 = Box::into_raw(Box::new(ResetFake { vt: vt.as_ptr(), refs: 1, reset_calls: 0, slot139_calls: 0, last_alloc: 0, last_pso: 0, last_arg3: 0 }));
-        let s = slot_139(forward(139), &NEWER);
+        // entry 139 of the wrapper's own table: a plain forwarder there sends the newer-layout call below
+        // to the backing list's handler (2) and the primary is not reset
+        let s = slots(&NEWER)[139];
         // the title: `sub rsp, 0x28; mov rax, s; call rax; add rsp, 0x28; ret` in a mapped image
         let code = unsafe { VirtualAlloc(std::ptr::null(), 0x1000, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE) as usize };
         assert_ne!(code, 0);

@Pipodi

Pipodi commented Nov 25, 2026

Copy link
Copy Markdown

Test report for b3a969b (this PR's head), merged onto main cbc296a (local merge 65511ac, no conflicts), on the retail title. It was suggested on #1269 as the fix for the reset half of the split-recording bug.

Tested

  • RTX 4090 (driver 617.42), i9-13900K, 32 GB, Windows 11 Pro 26300, release.
  • Command: xcl run of the retail title for 300 s, with A pressed at 16 s and then every 15 s up to 225 s. Each run used a new empty XCL_DXIL_CACHE and no other variables.
build last frames presented frames end peak commit draws translated / skipped dispatches / skipped
main cbc296a 76.0 s 1,377 alive to 300 s, exit 0 30.1 GB 12,576 / 0 8,192 / 0
main + this PR (65511ac) 72.0 s 1,339 alive to 300 s, exit 0 30.0 GB 12,089 / 0 8,192 / 0
  • No crash and no device removal in either run.
  • With this PR, presents stop at the same point as on main (0 presents from 74 s to 300 s). On its own the change does not get this title past the world-load stop. That is expected: it fixes the reset, and it has no pipeline wait budget.

Not tested

AI use: Claude Code. A Claude Sonnet 5.5 session ran the title runs and collected the counts; Claude Opus 5.5 wrote this report.

@Dezmonius

Copy link
Copy Markdown

Follow-up to Pipodi's #1931 + #929 comparison, on Windows 10 19045, RTX 5070 / 610.88, i7-7700K, 32 GiB RAM. I applied #929 head b3a969b cleanly to my cbc296ab + #1931 test tree (same local #1464 adaptation and activity counters). Offline Series X, direct DXIL, same input/profile and reused cache location, XCL_PSO_WAIT_MS=1000 and XCL_PSO_FRAME_WAIT_MS=500 in all runs.

Run PresentX in 2 s activity samples Last sample with presents Queue watchdog releases Exit
Earlier #1931 control 821 106 10 0xc0000005 at 266.6 s
#1931 + #929, 300 s 823 148 (final sample) 5 Timer, exit 0
#1931 + #929, planned 420 s repeat 764 81 0 before reset 0x887a0007 at 170.3 s

The first patched run still had sporadic presents at the timer. The last captured image was loading artwork. Its watchdog lines no longer included the five q1-waiting-on-q3 entries in the earlier control. Queue IDs are local to a run. The longer repeat used a different frame capture interval (every 100 rather than 60). It reset the D3D12 device before reaching the earlier watchdog phase, with 28.11 GiB of minimum system commit headroom. DRED did not identify an allocation. This shows a later, clean exit in one patched run, with stability still unconfirmed.

cargo test --locked --offline -j 4 -p xcl --lib title_list:: -- --test-threads=1: 3 passed, 0 failed or ignored. No game data included. AI-assisted (OpenAI Codex, GPT-6).

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@Dezmonius

Copy link
Copy Markdown

Capture-off follow-up to my previous #929 report. Same RTX 5070, driver 610.88, cbc296ab + #1931 + #929 + local #1464, offline Series X, direct DXIL, DRED and warm XCL cache. Disabling the runtime frame dump entirely (zero captures) still gave DXGI_ERROR_DEVICE_RESET at 164.3 s, compared with 170.3 s in the prior 420 s run with capture. It had 745 activity-sampled presents and no queue-watchdog releases before reset. DRED reported no matching allocation. Minimum system commit headroom was 29.39 GiB.

A separate 300 s run with capture still off and the D3D12 debug layer enabled exited at the timer (830 PresentX calls, four GPU queue watchdog releases). XCL logged that the debug layer was enabled, but its log contained no warning/error callback lines. The observed window near the end was dark. Different diagnostic mode and timing mean this run does not establish an effect of the debug layer on stability. The reset can occur without frame capture. No game data or raw logs included. AI-assisted (OpenAI Codex, GPT-6).

SavageCore added a commit to SavageCore/xcl that referenced this pull request Nov 25, 2026
…:reset (upstream PR xcl-dev#929)

Cherry-picked from xcl-dev/xcl PR xcl-dev#929. On the newer console command-list layout titles reset pooled lists through slot xcl-dev#139; the wrapper left v[139] as a raw forwarder, so after a mid-list Wait64 split the primary list was never reset and stale segments got resubmitted (freeze ~30 s in the world). Applied cleanly.
@ivall

ivall commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Merged as part of main, thanks – and it looks like the fix for a hang here.

Tested on the merged tree (main afc5ee8 + this): AMD RDNA4, Windows, DXC 1.8.2502.11, debug. cargo test --workspace --no-fail-fast -- --test-threads=4: 1263 passed, 2 failed (fuzz_validate_and_gpu_1 / _3, #2115, as on main), 46 ignored.

Why it looked related: on a retail title's world load (newer layout, other open PRs on the tree, without this one) two runs hung the GPU (0x887a0006). Both had three mid-list splits (split command list (type 2) around mid-list Wait after Write64), and the hang came about 5 s after the third; two runs with one split went on for 366 s and 699 s. That is a pattern, not a proof: I have not yet run the title with this PR.

Read before the merge: the whole diff.

AI use: Claude Code (Claude Opus 5.5) merged it, ran the tests and wrote this on the maintainer's behalf.

@ivall
ivall merged commit 06c9f55 into xcl-dev:main Nov 25, 2026
3 checks passed
@ivall

ivall commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Correction to my comment: a run with this PR still hung, so it was not the fix for that hang.

On the same retail title and tree as before plus this PR (and page aliasing, #2308), the GPU hung again (0x887a0006), in the same list of 1 366 operations, at the same draw (operation 408, DrawIndexedInstanced, a light's pixel shader), where it had hung without this PR. The run had two splits this time, not three. So the pattern I saw (hangs after the third split) was a coincidence and I should not have suggested it.

The PR stays merged: what it fixes is real (the #139 Reset not reaching the wrapper), it is covered by its own tests, and the suite is clean with it. It just has nothing to do with this hang.

AI use: Claude Code (Claude Opus 5.5) ran this and wrote the comment on the maintainer's behalf.

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

Labels

goal:world-load Bears on the retail title getting past world loading

Projects

None yet

Development

Successfully merging this pull request may close these issues.