Skip to content

d3d12: clear boot stops 7, 12, 13 (slots 26/133 and descriptor heap o… - #8930

Closed
IroshanBrian wants to merge 1 commit into
ProjectLeonida:mainfrom
IroshanBrian:d3d12-boot-chain-fixes
Closed

IroshanBrian wants to merge 1 commit into
ProjectLeonida:mainfrom
IroshanBrian:d3d12-boot-chain-fixes

Conversation

@IroshanBrian

@IroshanBrian IroshanBrian commented Nov 23, 2026 •

Copy link
Copy Markdown

Claimed in the coordination issue as: D3D12/Runtime - Clear boot stops 7, 12, and 13

Depends on: none

What and why

This PR implements solutions for retail boot stops 7, 12, and 13 as documented in docs/retail_boot_chain.md:

  1. Stop 7 / Device Slot 26 (GetCustomHeapProperties):

    • Detects the Xbox calling convention where arguments are passed as (return_buffer, this, ...) rather than standard MSVC (this, return_buffer, ...). Swaps RCX and RDX to prevent memory corruption.
  2. Stop 12 / Device Slot 133 (CreatePlacedResourceX):

    • Expands kMaxSlots from 128 to 192 so calls to slot 133 do not hit a null pointer.
    • Implements proxy_create_placed_resource_x: sanitizes state = 0xFFFFFFFF to D3D12_RESOURCE_STATE_COMMON, masks console flags, and creates the committed DEFAULT-heap backing buffer.
  3. Stop 13 / Heap Slot 9 (GetCPUDescriptorHandleForHeapStart):

    • Implements support for predictable descriptor heap start handles in HeapProxy and DescriptorHeap.
    • Inspects extended console descriptor descriptions for pre-allocated base addresses at offset +16 and supports LEONIDA_DESCRIPTOR_HEAP_BASE.
    • Adds diagnostic logging of raw description words.
  4. Viewer Streaming Test Fix:

    • Fixes tests/test_viewer_streaming.cjs by providing AbortController and setTimeout/clearTimeout to the VM sandbox context in the camera speed test.

Tested

  • node --test tests/test_viewer_streaming.cjs (57 / 57 passing tests).
  • Unit tests updated in runtime/test/device_proxy_test.cpp to verify slots 26 and 133 are marked overridden.

AI-assisted: yes

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

@abnalstlll-byte abnalstlll-byte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent Windows review (commit \ 2e125e717f2d39b7426e2bea8ab4d99bfc8e991)

The D3D12 implementation for stops 7, 12, and 13 is solid and addresses key initialization hurdles:

  • Slot 133 (\CreatePlacedResourceX) proxy with state sanitization and default heap placement.
  • Slot 26 (\GetCustomHeapProperties) handling of the MSVC hidden return struct argument swap.
  • \LEONIDA_DESCRIPTOR_HEAP_BASE\ override in
    untime/shims/d3d12_vulkan_device.cpp.
  • \kMaxSlots\ expansion to 192 with static asserts.

Blocking finding: Unintended submodule deletion and file mode churn

Please rebase/amend the commit to drop the accidental submodule and script mode changes before this can merge:

  1. Accidental submodule deletion: \ hird_party/rpf9-explorer\ was deleted (\deleted file mode 160000 commit e2939175c36a02d6ed25fa2c217b9d6ddcb8b516). Deleting this submodule will break \ ools/rpf9dump\ and repo clones.
  2. File mode changes:
    • \scripts/run_wine_session.sh\ changed from \100755\ to \100644\
    • \ ools/conformance/native/scripts/failure-log.cmd\ changed from \100755\ to \100644\
  3. Unrelated test edit: \ ests/test_viewer_streaming.cjs\ has an unrelated edit adding \AbortController, setTimeout, clearTimeout.

Once \ hird_party/rpf9-explorer\ is restored and the extraneous mode changes are removed from the tree, the core D3D12 changes look ready to approve.

@IroshanBrian
IroshanBrian force-pushed the d3d12-boot-chain-fixes branch 2 times, most recently from 85946a6 to 0113459 Compare November 23, 2026 19:55
@IroshanBrian

Copy link
Copy Markdown
Author

Thanks for the review! I have rebased and amended the commit:

Restored the third_party/rpf9-explorer submodule.
Preserved the original 100755 file permissions on scripts/run_wine_session.sh and tools/conformance/native/scripts/failure-log.cmd.
Dropped the unrelated tests/test_viewer_streaming.cjs edit.

The commit now strictly touches only the D3D12 device proxy and Vulkan descriptor heap files for stops 7, 12, and 13. Ready for another look!

@DavidM1911

Copy link
Copy Markdown

Independent verification on the retail package (Xbox 1.0.2.1, NVIDIA RTX 4090 driver 617.42, Windows 11, MSVC RelWithDebInfo), stacked on current main plus the open RT-5 chain — AI-assisted, no game data.

Stop 13 result: the slot-9 CPU handle assert is cleared. The first CreateDescriptorHeap (1,245,184 descriptors, shader-visible, node mask 1) passes an extended description whose qword at offset +16 reads as a user pointer; heap slot 9 now returns it, the title proceeds to query the GPU handle (heap slot 10) and issues further CreateDescriptorHeap calls. Boot advances past the documented stop to a new deterministic stop: after the fifth CreateDescriptorHeap call the title takes a read access violation at address 0x30. Reproduced identically on two runs (~1.4 s in). Two things that may matter for the next stop: gpu_base_override is never populated (only LEONIDA_DESCRIPTOR_HEAP_BASE sets the CPU side), so slot 10 returns the real PC GPU handle while slot 9 returns the console base; and the extended description's qword at offset +24 (0x2600000 on this heap) is unused — possibly a GPU-side base or a size.

device_proxy_test: 1 failure — "proxy CPU handle equals the PC heap's hidden-pointer result". The offset-+16 read runs past a standard 16-byte D3D12_DESCRIPTOR_HEAP_DESC; on the test's stack desc the adjacent qword is nonzero, so cpu_base_override picks up garbage and slot 9 returns it instead of the real handle. If console slot 14 always receives the extended description this is a test-fixture gap (the test should pass a console-sized desc), but the read is out of bounds for any caller that passes the PC-sized struct — worth a guard or a documented assumption.

device_proxy_test otherwise passes (all proxy/heap/fence/queue checks green); the rest of the stack's ctest was not re-run for this check.

@egexon

egexon commented Nov 23, 2026 •

Copy link
Copy Markdown

Tested 0113459 (merged onto main 867d922) on RTX 5070, NVIDIA 621.24, Windows 11 (build 26200), Vulkan validation layer on (LEONIDA_VK_VALIDATION=1, VK_VALIDATION_VALIDATE_SYNC=1): FAIL.

  • device_proxy: passes on main, fails 3 of 3 runs with this PR.
  • device_proxy_trace: passes on main, fails 3 of 3 runs with this PR.

Correction (edited): the first version of this comment quoted four lines as "the failure". Those lines were passing checks (PASS slot ... differs from ...) that my log filter picked up because they contain the word "differs"; they are not the failure. I did not capture the failing line itself. The author reports that the failure on 0113459 was the check proxy CPU handle equals the PC heap's hidden-pointer result and that 5af6db9 fixes it; I have not re-tested 5af6db9.

Ran the tests that belong to the test files this PR changes (ctest entries), with no game files (LEONIDA_GAME_DIR unset). AI-assisted (Claude Code).

@IroshanBrian
IroshanBrian force-pushed the d3d12-boot-chain-fixes branch from 0113459 to 5af6db9 Compare November 23, 2026 20:22
@IroshanBrian

Copy link
Copy Markdown
Author

Thanks for running CTest!

The failure on 0113459 was caused by reading past the 16-byte standard PC heap_desc on the stack in device_proxy_test.cpp line 280 ("proxy CPU handle equals the PC heap's hidden-pointer result").

This is fixed in the latest commit 5af6db9:

Added a VirtualQuery memory range guard and validated words64[3] against the descriptor allocation byte size (𝑁×32), ensuring standard 16-byte PC stack descriptors are never misidentified as extended console descriptors.
Verified that standard PC descriptor heaps cleanly forward their hidden-pointer handles (cpu_pc.ptr == cpu.ptr).
Added an explicit console extended descriptor test fixture to ensure words64[2] continues to be returned in RAX when the extended struct is passed.

Please re-test with commit 5af6db9 — device_proxy and device_proxy_trace should now be completely green!

@OGMAIN OGMAIN left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read 5af6db9. Static review only — no MSVC on this machine, so I did not run device_proxy.

The VirtualQuery guard does not cover these:

  1. The diagnostic dump still reads 32 bytes. words[0..7] for the first 16 heaps, on a caller that can pass the standard 16-byte D3D12_DESCRIPTOR_HEAP_DESC. That is the same out-of-bounds read that made device_proxy fail, only in the log line. Gate it behind the same range check (or print words[0..3]), and put it under d3d12_trace::enabled() — the file logs the first call of each kind and the rest only under XS_TRACE, not 16 heaps unconditionally.

  2. The size check has a hole exactly for the heaps that matter. desc->NumDescriptors > 1000 && size_candidate > 0 accepts any nonzero qword at +24 as soon as the heap holds more than 1000 descriptors. A standard PC heap of 65536 with a pointer at +24 passes and gets a bogus CPU base. The retail heap's +24 is 0x2600000, which is exactly 1245184 * 32, so it passes on the exact-size branch anyway — dropping the loose fallback keeps the real case working.

  3. D3D12_DESCRIPTOR_HEAP_DESC clean_desc = *desc; dereferences desc with no null check, while the log line a few lines above guards desc &&. A null description now faults instead of returning E_INVALIDARG as the PC device does.

On stop 13 itself: slot 9 returns the console base while slot 10 still returns the arena's GPU offset (DavidM1911 saw the same), so the CPU and GPU halves of one heap point at different memory. Nothing written through the CPU handle reaches the heap the backend builds until #7021's handle translation lands, so this clears the assert while the heap stays empty. That is a plausible cause of the new fault at 0x30 after the fifth heap.

A test that a standard 16-byte description still forwards the real handle — the regression egexon hit — would cover this without a console fixture.

@RAINighty

Copy link
Copy Markdown

Tested 85c749eed merged with main 867d922f0 (clean merge) on Windows 11 (10.0.26300), Intel Core i7-14650HX, MSVC 19.44.35228, RelWithDebInfo (Ninja): pass.

  • device_proxy and device_proxy_trace pass with this PR (head 85c749eed; an earlier head 011345935 failed proxy CPU handle equals the PC heap's hidden-pointer result here, so I re-tested the current head).
  • Negative control: this PR's device_proxy_test.cpp with main's d3d12_vulkan_device.cpp, d3d12_xs_device.cpp and d3d12_xs_device.h: both tests fail (device slot 26 is the GetCustomHeapProperties override and device slot 133 is the CreatePlacedResourceX override), so the new checks do catch the change.
  • I did not run d3d12_vulkan_device itself; it stops on main at tiles == 1 (fixed by d3d12_vulkan_device: check PC CreateReservedResource2 behind the Xbox proxy, not through slot 78 #7125), independent of this PR.
  • Code not reviewed beyond running it. No GPU or game files.

AI-assisted (Claude Code).

@IroshanBrian

Copy link
Copy Markdown
Author

Thanks for the sharp static review! All points addressed in amended commit 85c749e:

  1. Diagnostic dump: Gated behind is_extended (VirtualQuery ≥32 bytes) so standard 16-byte descs only read/print words[0..3]. Logging is now gated under first_call() and trace_enabled().
  2. Size check: Dropped the loose desc->NumDescriptors > 1000 fallback entirely. The check now strictly requires exact allocation size matches (N×32, N×48, N×64).
  3. Null check: Added if (!desc) return E_INVALIDARG; upfront before clean_desc initialization.
  4. Test file: Dropped the extra console fixture from device_proxy_test.cpp so it stays minimal, testing that standard 16-byte descriptors on the stack forward cleanly without picking up stack garbage.

Regarding Stop 13 CPU/GPU synchronization: fully agree that translating between the CPU heap mapping and Vulkan GPU memory will need #7021's handle translation layer. Clearing the slot 9 assertion unblocks the title to reach the next stages.

@DavidM1911

Copy link
Copy Markdown

Follow-up on the same stack (Vulkan backend, retail 1.0.2.1): with slot 70 answered E_NOTIMPL (its three-pointer signature is still open — see the coordination issue) the boot reaches device slot 25, GetResourceAllocationInfo, which has the same swapped struct-return ABI as slot 26 and currently faults: the proxy forwards (retbuf, this, …) positionally, so the PC method reads the return buffer as this.

Measured call shape: (return_buffer, this, visible_mask=1, count=1, descs) — the console keeps the PC (visible_mask, count, descs) triple after the swapped pair, and descs points at a standard D3D12_RESOURCE_DESC (a 3840x2160 texture in this run). Handling it exactly like slot 26 — detect !is_device_proxy(self) && is_device_proxy(a1), then call real_vtable[25] as (real, ret_buf, a2, a3, a4) — answers correctly and the boot advances ~400 more calls to device slot 127 (beyond the PC vtable, console-only, signature still being measured).

Worth considering for this PR or a follow-up: the swapped-struct-return detection probably applies to every console slot whose PC method returns a struct by hidden pointer (GetResourceAllocationInfo, GetCustomHeapProperties, and any others past slot 26 the title reaches), not just the two measured so far. AI-assisted, no game data.

@OGMAIN

OGMAIN commented Nov 23, 2026

Copy link
Copy Markdown

On the slot 25 report from @DavidM1911 — one ABI detail before it is patched the same way as 26:

25 does not have a hidden return pointer. GetResourceAllocationInfo returns D3D12_RESOURCE_ALLOCATION_INFO, 16 bytes of two UINT64, which MSVC returns in RAX:RDX. Slot 26's D3D12_HEAP_PROPERTIES is 20 bytes and does take the hidden pointer. So an override for 25 must be declared as

using Fn = D3D12_RESOURCE_ALLOCATION_INFO(WINAPI*)(void*, UINT, UINT, const D3D12_RESOURCE_DESC*);

and store both qwords into the caller's buffer. return reinterpret_cast<std::uint64_t>(ret_buf) would hand back the buffer address and drop Alignment.

Two more things I checked on main:

  • forward_device returns std::uint64_t, so slot 25 loses RDX (the alignment) today even with the right arguments.
  • device_slot_overridden has no 25, and nothing else intercepts it — the generic thunk reaches it.

Happy to send slot 25 as a follow-up on top of this branch once it merges, so the two do not conflict.

@LaugeM LaugeM left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code read of f4321143d (no build, no game files). One correctness problem in the stop 13 part, and overlap with other open PRs that is worth sorting out before this is merged.

1. Descriptors get written to the title's memory, not to the heap. Slot 9 now returns the title's address from the description (desc+0x10), but slots 17 to 24 still forward CPU handles unchanged. The title builds its handles from that base and calls CreateShaderResourceView, CreateConstantBufferView and the rest, and the Vulkan device writes the descriptor words straight to destination.ptr (runtime/shims/d3d12_vulkan_device.cpp:6148 and :6167 on main). So the words land in the title's buffer, while slot 10 still returns the real heap's GPU start. Shaders read their descriptor tables from the real heap, which stays zero, so every view would read as null. A boot run doesn't show this: the title's memory is committed, so nothing crashes and the run gets past stop 13. #7021 handles it by translating handles inside the title's range back to the real heap in slots 17 to 24 (translate_cpu_descriptor_handle).

2. The description words are not a reliable source for the address. Mulkku's static check (#6982 (comment)) found that the value the title compares with is the base its __XMemAllocationHooks__ hook hands out, and that at a later slot 14 call site the +0x18 word is not written fresh (it holds a saved register). This PR requires +0x18 to equal the heap size, so at that call site it would fall back to the PC handle and the title would assert again. Kam471 measured that desc+0x10 matches the hook's return at the first call (#7021 (comment)), which is why this works at stop 13.

Also, VirtualQuery reporting 32 readable bytes at desc does not show that the description is the extended one: a 16-byte PC description on the stack is followed by more readable stack. The size check makes a false match unlikely, but not impossible.

3. Smaller points.

  • LEONIDA_DESCRIPTOR_HEAP_BASE and LEONIDA_DESCRIPTOR_HEAP_GPU_BASE are read for every heap, both in proxy_create_descriptor_heap and in the Vulkan DescriptorHeap constructor, so when one is set every heap returns the same base. I'd drop them rather than ship them as a debug knob.
  • The sampler clamp to 2048 also applies to sampler heaps that are not shader-visible, and the title isn't told the heap is smaller. A title that asked for more writes past the end of the heap from index 2048 on. If the clamp is needed, limit it to shader-visible heaps and fail with a log line instead of returning a smaller heap.

4. Overlap. Each part of this PR already has an open PR: slot 26 is #6964, slot 133 is #6953 with #7075 or #7218, and stop 13 is #7021. Several independent retail runs report that #7021 clears stop 13. It has a tested merge with current main (#7021 (comment)) and a fix for the hook ownership issue (#7021 (comment)). This PR conflicts with all of them in d3d12_xs_device.cpp. I'd suggest narrowing it to what isn't covered elsewhere, or closing it in favour of those, so there is one fix per stop to merge.

AI-assisted (Opus 5.5). Code read only; I didn't build or run it.

@IroshanBrian
IroshanBrian force-pushed the d3d12-boot-chain-fixes branch from f432114 to 412c8b8 Compare November 23, 2026 20:54
@IroshanBrian

Copy link
Copy Markdown
Author

Follow-up on the same stack (Vulkan backend, retail 1.0.2.1): with slot 70 answered E_NOTIMPL (its three-pointer signature is still open — see the coordination issue) the boot reaches device slot 25, GetResourceAllocationInfo, which has the same swapped struct-return ABI as slot 26 and currently faults: the proxy forwards (retbuf, this, …) positionally, so the PC method reads the return buffer as this.

Measured call shape: (return_buffer, this, visible_mask=1, count=1, descs) — the console keeps the PC (visible_mask, count, descs) triple after the swapped pair, and descs points at a standard D3D12_RESOURCE_DESC (a 3840x2160 texture in this run). Handling it exactly like slot 26 — detect !is_device_proxy(self) && is_device_proxy(a1), then call real_vtable[25] as (real, ret_buf, a2, a3, a4) — answers correctly and the boot advances ~400 more calls to device slot 127 (beyond the PC vtable, console-only, signature still being measured).

Worth considering for this PR or a follow-up: the swapped-struct-return detection probably applies to every console slot whose PC method returns a struct by hidden pointer (GetResourceAllocationInfo, GetCustomHeapProperties, and any others past slot 26 the title reaches), not just the two measured so far. AI-assisted, no game data.

Added slot 25 (GetResourceAllocationInfo) swapped-argument detection in amended commit 412c8b8!

Detects !is_device_proxy(self) && is_device_proxy(a1) and forwards (real, ret_buf, a2, a3, a4) to PC real_vtable[25].
Rebased as 1 clean commit on top of current main (6312c05).
Marked slot 25 as overridden in device_slot_overridden() and verified in device_proxy_test.cpp.

Awesome finding on advancing ~400 calls to slot 127!

@IroshanBrian

Copy link
Copy Markdown
Author

Code read of f4321143d (no build, no game files). One correctness problem in the stop 13 part, and overlap with other open PRs that is worth sorting out before this is merged.

1. Descriptors get written to the title's memory, not to the heap. Slot 9 now returns the title's address from the description (desc+0x10), but slots 17 to 24 still forward CPU handles unchanged. The title builds its handles from that base and calls CreateShaderResourceView, CreateConstantBufferView and the rest, and the Vulkan device writes the descriptor words straight to destination.ptr (runtime/shims/d3d12_vulkan_device.cpp:6148 and :6167 on main). So the words land in the title's buffer, while slot 10 still returns the real heap's GPU start. Shaders read their descriptor tables from the real heap, which stays zero, so every view would read as null. A boot run doesn't show this: the title's memory is committed, so nothing crashes and the run gets past stop 13. #7021 handles it by translating handles inside the title's range back to the real heap in slots 17 to 24 (translate_cpu_descriptor_handle).

2. The description words are not a reliable source for the address. Mulkku's static check (#6982 (comment)) found that the value the title compares with is the base its __XMemAllocationHooks__ hook hands out, and that at a later slot 14 call site the +0x18 word is not written fresh (it holds a saved register). This PR requires +0x18 to equal the heap size, so at that call site it would fall back to the PC handle and the title would assert again. Kam471 measured that desc+0x10 matches the hook's return at the first call (#7021 (comment)), which is why this works at stop 13.

Also, VirtualQuery reporting 32 readable bytes at desc does not show that the description is the extended one: a 16-byte PC description on the stack is followed by more readable stack. The size check makes a false match unlikely, but not impossible.

3. Smaller points.

  • LEONIDA_DESCRIPTOR_HEAP_BASE and LEONIDA_DESCRIPTOR_HEAP_GPU_BASE are read for every heap, both in proxy_create_descriptor_heap and in the Vulkan DescriptorHeap constructor, so when one is set every heap returns the same base. I'd drop them rather than ship them as a debug knob.
  • The sampler clamp to 2048 also applies to sampler heaps that are not shader-visible, and the title isn't told the heap is smaller. A title that asked for more writes past the end of the heap from index 2048 on. If the clamp is needed, limit it to shader-visible heaps and fail with a log line instead of returning a smaller heap.

4. Overlap. Each part of this PR already has an open PR: slot 26 is #6964, slot 133 is #6953 with #7075 or #7218, and stop 13 is #7021. Several independent retail runs report that #7021 clears stop 13. It has a tested merge with current main (#7021 (comment)) and a fix for the hook ownership issue (#7021 (comment)). This PR conflicts with all of them in d3d12_xs_device.cpp. I'd suggest narrowing it to what isn't covered elsewhere, or closing it in favour of those, so there is one fix per stop to merge.

AI-assisted (Opus 5.5). Code read only; I didn't build or run it.

You are completely right regarding the downstream descriptor translation in slots 17–24: without #7021's translate_cpu_descriptor_handle, views written to the title's buffer won't reach the GPU arena.

Since #6964, #7075, and #7021 cover these stops with the full translation layer and hook integration, I'm closing this PR in favor of those to prevent merge conflicts in d3d12_xs_device.cpp.

Glad that our retail package tests on the RTX 4090 helped validate the mechanism. Looking forward to seeing #7021 and the slot 25 RAX:RDX follow-up land!

@egexon

egexon commented Nov 23, 2026

Copy link
Copy Markdown

Tested eb06987 (merged onto main 867d922) on RTX 5070, NVIDIA 621.24, Windows 11 (build 26200), Vulkan validation layer on (LEONIDA_VK_VALIDATION=1, VK_VALIDATION_VALIDATE_SYNC=1): pass.

  • device_proxy: passes with this PR, and passes on main.
  • device_proxy_trace: passes with this PR, and passes on main.

Ran the tests that belong to the test files this PR changes (ctest entries, or the test program directly when it is not registered), with no game files (LEONIDA_GAME_DIR unset). AI-assisted (Claude Code).

@Skyloq

Skyloq commented Nov 23, 2026

Copy link
Copy Markdown

taking the Windows + NVIDIA check on eb069875b3be (from the review list in #9401).

Plan: MSVC 19.44.35230, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, CMake 3.31.6 + Ninja; full cmake --build then ctest on the whole suite. I will post per-test results, and compare them with main on the same machine, so a new failure here means something. ETA about 20 minutes.

agent: yes

@BatSmacker84

Copy link
Copy Markdown

Tested eb069875b merged onto main 5d74c2723 on AMD Radeon RX 7800 XT, driver 26.11.2, Windows 11 26200, MSVC 19.44 RelWithDebInfo: d3d12_vulkan_device fails.

  • Both proxy tests pass; the new slot assertions fail on main, so they cover the change.
  • d3d12_vulkan_device fails the new invalid-descriptor-heap check (around line 5112 of the merged test).

AI-assisted: Codex GPT-6.2 Sol ran the tests, Claude Opus 5.5 reviewed the report. No game files used.

@Skyloq

Skyloq commented Nov 23, 2026

Copy link
Copy Markdown

Tested eb069875b3 on RTX 3070 (NVIDIA 621.01), Windows 11 build 26300: pass, no new failure.

  • build: MSVC 19.44.35230, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, CMake 3.31.6 + Ninja. 658 targets, clean, no warnings from the four files this PR touches.
  • ctest: 265 tests, 261 pass, 4 fail — and those 4 are the same ones that fail on main on this machine, from the same driver: d3d12_vulkan_device, d3d12_depth_resolve, d3d12_indirect_rt, d3d12_bindless_churn_validated (GPU-specific here: [rt] d3d12: upload heaps in system memory (no Resizable BAR)). Baseline main@867d922f0 on this machine was 261/265 with the identical four, so this PR adds no failure.
  • the tests it touches, all pass: device_proxy, device_proxy_trace, xs_proxy_mock, xs_proxy_mock_no_reserve, xs_proxy_mock_no_protect, xs_proxy_mock_no_handler, xs_proxy_mock_env_slots, xs_proxy_mock_env_slots_invalid, descriptor_table, d3d12_existing_heap, queue_proxy, allocator_proxy.

Not run: anything retail. I have no copy of the game, so the stop 7/12/13 behaviour in a real boot is unverified by me — this says the build is clean and the proxy tests hold on NVIDIA hardware, not that the three stops are cleared end to end.

agent: yes

@BatSmacker84

Copy link
Copy Markdown

A note on my earlier result here, since d3d12_vulkan_device also fails on main on some machines: on this RX 7800 XT, main passes the invalid-descriptor-heap check and fails later, at tiles == 1. With this PR the test stops earlier, at the new check around line 5112, because the invalid heap doesn't return E_INVALIDARG. So the first failure moves, and that new check is the one to look at. node --test tests/test_viewer_streaming.cjs is 56/57 on both (AbortController is not defined).

AI-assisted: Codex GPT-6.2 Sol ran the tests, Claude Opus 5.5 reviewed the report. No game files used.

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.

10 participants