d3d12_xs: CreateSamplerX writes through; mapped descriptor ranges are left to the submission-time pull (RT-XS-DESCRIPTOR-MIRROR-GAPS) #2498

Merged
Tyrannys merged 2 commits from upstream-pr/2498 into main 2026-11-29 01:04:24 +00:00
Tyrannys commented 2026-11-27 19:38:38 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Tyrannys on 2026-11-27T19:38:38Z.


Claimed in the coordination issue as: RT-XS-DESCRIPTOR-MIRROR-GAPS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7226662844)

What and why

Item 2 of @kevincommits' finding in #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7226076494). Thanks for the audit.

Both gaps are in runtime/shims/d3d12_xs_device.cpp, where title-backed descriptor heaps are kept in step with the real heap:

  • Slot 61 write-through. Xbox device slot 61 (proxy_create_sampler_x, CreateSamplerX) created the sampler in the real heap only. Every other descriptor creator and copier calls local_write_through to store the result at the title's address as well: slots 17-22, 23/24, and the placed view. A title that copies slot-61 samplers out of its own heap memory into a shader-visible heap therefore copied zeros or stale bytes. Slot 61 now writes through, as slot 22 does.
  • Mapped ranges. local_mirror_table runs when a descriptor table is bound (list slots 35/36) and copied the title's raw slots into the real range. For a mapped range (DescriptorRange::mapped, the Vulkan device's live arena) that copy could overwrite a slot the queue had translated in place for a submission still running (timbot103's review). Main did this on Windows; on Wine VirtualQuery hid the range. The queue already pulls the title's slots for every bound table at submission (pull_title_descriptors), so a mapped range is now left to it, on Windows and Wine alike.

No overlap with #2484 or the other open PRs on d3d12_xs_device.cpp: git merge-tree finds no conflict with #2484.

Tested

Windows 11, MSVC (VS 18), RelWithDebInfo, on main 43a9d562d. CPU only.

  • xs_proxy_mock_test gains check_descriptor_mirror. The mock's real heap reports a CPU start in test memory (g_mock_heap_cpu_start; other checks keep the old fake address), and the XMem hook hands out a title buffer.
    1. Slot 61 from a title caller, on a sampler heap: the real call gets the real slot, and the title's slot holds the bytes the "driver" wrote there, that slot only. With main's slot 61 this fails.
    2. A mapped shader-visible heap whose real slot holds a translated value: binding a table over it (list slots 36 and 35) leaves the slot alone, and the submission-time pull (title_va_aliases().pull_descriptors) then copies the title's slot. The first version of this PR fails the first check.
  • ctest -R "^(xs_proxy_mock.*|device_proxy)$": 10/10 pass.
  • scripts/check_no_game_data.py: clean.

GPUs tested: profile M: NVIDIA GeForce RTX 4070 SUPER, 12 GB, desktop, driver 621.01, Windows 11 (CPU tests only)

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • 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. (n/a: no translator change)

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5532164448 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2498). Originally posted by [Tyrannys](https://github.com/Tyrannys) on 2026-11-27T19:38:38Z. --- Claimed in the coordination issue as: RT-XS-DESCRIPTOR-MIRROR-GAPS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7226662844) ### What and why Item 2 of @kevincommits' finding in #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7226076494). Thanks for the audit. Both gaps are in `runtime/shims/d3d12_xs_device.cpp`, where title-backed descriptor heaps are kept in step with the real heap: - **Slot 61 write-through.** Xbox device slot 61 (`proxy_create_sampler_x`, CreateSamplerX) created the sampler in the real heap only. Every other descriptor creator and copier calls `local_write_through` to store the result at the title's address as well: slots 17-22, 23/24, and the placed view. A title that copies slot-61 samplers out of its own heap memory into a shader-visible heap therefore copied zeros or stale bytes. Slot 61 now writes through, as slot 22 does. - **Mapped ranges.** `local_mirror_table` runs when a descriptor table is bound (list slots 35/36) and copied the title's raw slots into the real range. For a mapped range (`DescriptorRange::mapped`, the Vulkan device's live arena) that copy could overwrite a slot the queue had translated in place for a submission still running (timbot103's review). Main did this on Windows; on Wine `VirtualQuery` hid the range. The queue already pulls the title's slots for every bound table at submission (`pull_title_descriptors`), so a mapped range is now left to it, on Windows and Wine alike. No overlap with #2484 or the other open PRs on `d3d12_xs_device.cpp`: `git merge-tree` finds no conflict with #2484. ### Tested Windows 11, MSVC (VS 18), RelWithDebInfo, on `main` 43a9d562d. CPU only. - `xs_proxy_mock_test` gains `check_descriptor_mirror`. The mock's real heap reports a CPU start in test memory (`g_mock_heap_cpu_start`; other checks keep the old fake address), and the XMem hook hands out a title buffer. 1. Slot 61 from a title caller, on a sampler heap: the real call gets the real slot, and the title's slot holds the bytes the "driver" wrote there, that slot only. With `main`'s slot 61 this fails. 2. A mapped shader-visible heap whose real slot holds a translated value: binding a table over it (list slots 36 and 35) leaves the slot alone, and the submission-time pull (`title_va_aliases().pull_descriptors`) then copies the title's slot. The first version of this PR fails the first check. - `ctest -R "^(xs_proxy_mock.*|device_proxy)$"`: 10/10 pass. - `scripts/check_no_game_data.py`: clean. GPUs tested: profile M: NVIDIA GeForce RTX 4070 SUPER, 12 GB, desktop, driver 621.01, Windows 11 (CPU tests only) AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] 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. (n/a: no translator change) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lixonik commented 2026-11-27 21:36:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-27T21:36:44Z.

Review: APPROVED


Reviewed the diff and tested locally on Windows 11 (MSVC 19.44, Ninja Release).

  • proxy_create_sampler_x() now calls local_write_through(self, dest, 1) after CreateSampler, matching device slot 22 so title-backed heaps hold the sampler bytes instead of zeros.
  • local_mirror_table() now bypasses the local_accessible() check when range.mapped is set, consistent with local_write_through for live vkMapMemory spans on Wine.
  • Built xs_proxy_mock_test and ran ctest --output-on-failure -V -R xs_proxy_mock: 9/9 tests passed (including check_descriptor_mirror).

AI-assisted (Antigravity, Gemini).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6093535058 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2498#pullrequestreview-6093535058). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-27T21:36:44Z. **Review:** APPROVED --- Reviewed the diff and tested locally on Windows 11 (MSVC 19.44, Ninja Release). - `proxy_create_sampler_x()` now calls `local_write_through(self, dest, 1)` after `CreateSampler`, matching device slot 22 so title-backed heaps hold the sampler bytes instead of zeros. - `local_mirror_table()` now bypasses the `local_accessible()` check when `range.mapped` is set, consistent with `local_write_through` for live `vkMapMemory` spans on Wine. - Built `xs_proxy_mock_test` and ran `ctest --output-on-failure -V -R xs_proxy_mock`: 9/9 tests passed (including `check_descriptor_mirror`). AI-assisted (Antigravity, Gemini).
timbot103 commented 2026-11-28 02:02:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-28T02:02:04Z.


Reviewed at head a23273b5c on Windows 11 (MSVC 2022 19.44).

Verification

  • Built xs_proxy_mock_test.
  • xs_proxy_mock_test: passed.

Finding (Request changes)

  • Recording-time local_mirror_table() copy can overwrite an in-flight submission's rebased descriptor in place (d3d12_xs_device.cpp:345-393, 3639-3644; d3d12_vulkan_device.cpp:4025-4066, 4185-4193, 8349-8371):
    Bypassing local_accessible() via if (!range.mapped && ...) enables local_mirror_table() to raw-memcpy title descriptors directly into range.real_start + offset during command-list recording (SetGraphicsRootDescriptorTable / SetComputeRootDescriptorTable), without synchronizing against GPU completion. On the Vulkan backend, submission pulls title descriptors and rebases title buffer addresses in place in the shared arena. If list A is submitted with a rebased buffer descriptor and list B records a bind to the same table before A finishes on the GPU (even if B is never submitted), local_mirror_table() overwrites A's translated GPU descriptor in the live arena with the raw title bytes while A's shaders are still reading it. Keeping mapped-arena synchronization strictly on the submission-time refresh path (or using submission-lifetime storage) avoids corrupting in-flight descriptors.

The CreateSamplerX slot-61 write-through (d3d12_xs_device.cpp:4865-4868, 5028-5042) looks clean.

AI-assisted review + local MSVC verification.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7232083067 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2498#issuecomment-7232083067). Originally posted by [timbot103](https://github.com/timbot103) on 2026-11-28T02:02:04Z. --- Reviewed at head `a23273b5c` on Windows 11 (MSVC 2022 `19.44`). ### Verification - Built `xs_proxy_mock_test`. - `xs_proxy_mock_test`: **passed**. ### Finding (Request changes) - **Recording-time `local_mirror_table()` copy can overwrite an in-flight submission's rebased descriptor in place (`d3d12_xs_device.cpp:345-393`, `3639-3644`; `d3d12_vulkan_device.cpp:4025-4066`, `4185-4193`, `8349-8371`):** Bypassing `local_accessible()` via `if (!range.mapped && ...)` enables `local_mirror_table()` to raw-`memcpy` title descriptors directly into `range.real_start + offset` during command-list recording (`SetGraphicsRootDescriptorTable` / `SetComputeRootDescriptorTable`), without synchronizing against GPU completion. On the Vulkan backend, submission pulls title descriptors and rebases title buffer addresses **in place** in the shared arena. If list A is submitted with a rebased buffer descriptor and list B records a bind to the same table before A finishes on the GPU (even if B is never submitted), `local_mirror_table()` overwrites A's translated GPU descriptor in the live arena with the raw title bytes while A's shaders are still reading it. Keeping mapped-arena synchronization strictly on the submission-time refresh path (or using submission-lifetime storage) avoids corrupting in-flight descriptors. The `CreateSamplerX` slot-61 write-through (`d3d12_xs_device.cpp:4865-4868`, `5028-5042`) looks clean. AI-assisted review + local MSVC verification.
Tyrannys commented 2026-11-28 02:11:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Tyrannys on 2026-11-28T02:11:43Z.


@timbot103 thanks, you're right. Fixed in 59feb165b.

A mapped real range is the Vulkan device's live arena. scan_title_table pulls the title's slots there and rebases their buffer addresses in place at submission, while lists submitted earlier may still be reading them. A raw copy at recording time could therefore replace a translated slot under a running submission.

Two notes on scope:

  • Main already did this on Windows. Without this PR, local_mirror_table only checks local_accessible, and VirtualQuery reports the arena as committed read-write there. So main did the same recording-time copy into mapped ranges. The first commit of this PR extended it to Wine.
  • The recording-time copy is not needed for mapped ranges. The queue already pulls the title's slots of every bound table at submission (pull_title_descriptors through title_va_aliases().pull_descriptors), and that path does not ask VirtualQuery about the arena. So Wine gets the title's descriptors without it.

So local_mirror_table now returns for a mapped range, with a comment saying why. Unmapped ranges keep the recording-time copy as before. The slot-61 CreateSamplerX write-through is unchanged.

Test, xs_proxy_mock_test check_descriptor_mirror case 2:

  • the real slot holds a "translated" value, and the title's slot something else;
  • binding a table over it with list slot 36 (graphics) and 35 (compute) leaves the real slot as it was;
  • title_va_aliases().pull_descriptors(...), the queue's submission path, then copies the title's slot.

With the previous commit the "left as it was" check fails (line 3500). ctest -R "^(xs_proxy_mock.*|device_proxy)$": 10/10 pass. Windows 11, MSVC (VS 18), RelWithDebInfo.

AI-assisted (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7232196035 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2498#issuecomment-7232196035). Originally posted by [Tyrannys](https://github.com/Tyrannys) on 2026-11-28T02:11:43Z. --- @timbot103 thanks, you're right. Fixed in 59feb165b. A mapped real range is the Vulkan device's live arena. `scan_title_table` pulls the title's slots there and rebases their buffer addresses in place at submission, while lists submitted earlier may still be reading them. A raw copy at recording time could therefore replace a translated slot under a running submission. Two notes on scope: - **Main already did this on Windows.** Without this PR, `local_mirror_table` only checks `local_accessible`, and `VirtualQuery` reports the arena as committed read-write there. So main did the same recording-time copy into mapped ranges. The first commit of this PR extended it to Wine. - **The recording-time copy is not needed for mapped ranges.** The queue already pulls the title's slots of every bound table at submission (`pull_title_descriptors` through `title_va_aliases().pull_descriptors`), and that path does not ask `VirtualQuery` about the arena. So Wine gets the title's descriptors without it. So `local_mirror_table` now returns for a mapped range, with a comment saying why. Unmapped ranges keep the recording-time copy as before. The slot-61 `CreateSamplerX` write-through is unchanged. Test, `xs_proxy_mock_test` `check_descriptor_mirror` case 2: - the real slot holds a "translated" value, and the title's slot something else; - binding a table over it with list slot 36 (graphics) and 35 (compute) leaves the real slot as it was; - `title_va_aliases().pull_descriptors(...)`, the queue's submission path, then copies the title's slot. With the previous commit the "left as it was" check fails (line 3500). `ctest -R "^(xs_proxy_mock.*|device_proxy)$"`: 10/10 pass. Windows 11, MSVC (VS 18), RelWithDebInfo. AI-assisted (Claude Code)
lixonik commented 2026-11-28 08:21:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-28T08:21:44Z.

Review: APPROVED


Re-reviewed head 59feb165b and re-tested locally on Windows 11 (MSVC 19.44, Ninja Release).

  • Returning early from local_mirror_table() when range.mapped is set cleanly fixes the recording-time race flagged by @timbot103 (avoiding raw copies over translated descriptors in the live Vulkan arena while leaving submission-time pulls to pull_title_descriptors).
  • proxy_create_sampler_x() write-through to title-backed heaps remains intact, and check_descriptor_mirror() now asserts both that the mapped real slot stays untouched during list recording and that title_va_aliases().pull_descriptors() updates it at submission.
  • Built xs_proxy_mock_test and ran ctest --output-on-failure -R xs_proxy_mock: 9/9 passed (2.72 s).

AI-assisted (Antigravity, Gemini).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6096738947 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2498#pullrequestreview-6096738947). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-28T08:21:44Z. **Review:** APPROVED --- Re-reviewed head `59feb165b` and re-tested locally on Windows 11 (MSVC 19.44, Ninja Release). - Returning early from `local_mirror_table()` when `range.mapped` is set cleanly fixes the recording-time race flagged by `@timbot103` (avoiding raw copies over translated descriptors in the live Vulkan arena while leaving submission-time pulls to `pull_title_descriptors`). - `proxy_create_sampler_x()` write-through to title-backed heaps remains intact, and `check_descriptor_mirror()` now asserts both that the mapped real slot stays untouched during list recording and that `title_va_aliases().pull_descriptors()` updates it at submission. - Built `xs_proxy_mock_test` and ran `ctest --output-on-failure -R xs_proxy_mock`: 9/9 passed (2.72 s). AI-assisted (Antigravity, Gemini).
zmasi commented 2026-11-28 21:24:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T21:24:28Z.


Independent Verification Report — 59feb165bd + origin/main (aa918e5d9f)

Environment: Windows 11 (26200), AMD Ryzen 9 5950X + NVIDIA RTX 3090, MSVC 19.44.35228 (x64, /std:c++20 /EHsc /W4 /permissive- /utf-8, Debug /Od /MDd & Release /O2 /MD).
Verdict: PASS (Ready to merge) — clean merge with origin/main (008b3158cb85) and combined Batch 9 set (a422ed80f598).

1. Red -> Green Verification

  • Red (origin/main d3d12_xs_device.cpp + #2498 xs_proxy_mock_test.cpp): xs_proxy_mock_test fails (rc = 1) in check_descriptor_mirror, reproducing both gaps on origin/main:
    1. Device slot 61 (CreateSamplerX) did not call local_write_through(self, dest, 1), leaving title-backed sampler heap slots zeroed.
    2. local_mirror_table copied raw title bytes into range.mapped live Vulkan descriptor arena ranges at command-list recording time (slots 35/36), overwriting in-place translated descriptors of in-flight submissions.
  • Green (59feb165bd + origin/main):
    • xs_proxy_mock_test (all 9/9 CTest modes in Release + default in Debug): PASS (default, --fail-virtualalloc, --fail-virtualprotect, --fail-veh, --env-slots, --env-slots-invalid, --env-slots-70, --env-slots-74, --slot133-layout), confirming CreateSamplerX writes through to title-backed heaps while local_mirror_table leaves range.mapped untouched until submission-time title_va_aliases().pull_descriptors(...).
    • device_proxy_test (2/2 CTest modes against Windows 11 WARP d3d12.dll / dxgi.dll — default and --trace-d3d12): PASS.
    • Zero new compiler warnings introduced by #2498.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7245996963 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2498#issuecomment-7245996963). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T21:24:28Z. --- ### Independent Verification Report — `59feb165bd` + `origin/main` (`aa918e5d9f`) **Environment:** Windows 11 (`26200`), AMD Ryzen 9 5950X + NVIDIA RTX 3090, MSVC `19.44.35228` (`x64`, `/std:c++20 /EHsc /W4 /permissive- /utf-8`, Debug `/Od /MDd` & Release `/O2 /MD`). **Verdict:** **PASS (Ready to merge)** — clean merge with `origin/main` (`008b3158cb85`) and combined Batch 9 set (`a422ed80f598`). #### 1. Red -> Green Verification - **Red (`origin/main` `d3d12_xs_device.cpp` + `#2498` `xs_proxy_mock_test.cpp`):** `xs_proxy_mock_test` fails (`rc = 1`) in `check_descriptor_mirror`, reproducing both gaps on `origin/main`: 1. Device slot 61 (`CreateSamplerX`) did not call `local_write_through(self, dest, 1)`, leaving title-backed sampler heap slots zeroed. 2. `local_mirror_table` copied raw title bytes into `range.mapped` live Vulkan descriptor arena ranges at command-list recording time (slots 35/36), overwriting in-place translated descriptors of in-flight submissions. - **Green (`59feb165bd` + `origin/main`):** - `xs_proxy_mock_test` (all **9/9** CTest modes in Release + default in Debug): **PASS** (`default`, `--fail-virtualalloc`, `--fail-virtualprotect`, `--fail-veh`, `--env-slots`, `--env-slots-invalid`, `--env-slots-70`, `--env-slots-74`, `--slot133-layout`), confirming `CreateSamplerX` writes through to title-backed heaps while `local_mirror_table` leaves `range.mapped` untouched until submission-time `title_va_aliases().pull_descriptors(...)`. - `device_proxy_test` (**2/2** CTest modes against Windows 11 WARP `d3d12.dll` / `dxgi.dll` — default and `--trace-d3d12`): **PASS**. - Zero new compiler warnings introduced by `#2498`. AI-assisted.
OreoFR commented 2026-11-28 22:03:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T22:03:14Z.


Verified by OreoFR

Run 1 (lot 4)

  • Base: main 09c153948 + PR head 59feb165b; integration package 2 of 6 (4 PRs, merged without conflict)
  • Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; the PRs' Python tests
  • Red on main: n/a (integration test; main baseline: xbox_present and d3d12_set_descriptor_heaps)
  • Green with the PR: ctest: only xbox_present and d3d12_set_descriptor_heaps fail, as on main
  • Verdict: CLEAN PACKAGE (no new failure vs main)

Run 2 (lot 4 bis)

  • Base: main 33db04a70 + PR head 59feb165b; integration package of 15 PRs
  • Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; the PRs' Python tests; translator suite
  • Red on main: n/a (integration test; main baseline: xbox_present, and flaky xmem)
  • Green with the PR: ctest: only xbox_present fails as on main (xs_proxy_mock failed once, flaky: passes on rerun and 5/5 direct runs); Python: same failures as main, the PRs' tests pass; translator: 507 files, 6405 tests, 0 failures
  • Verdict: CLEAN PACKAGE (no new failure vs main)

All runs

  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246462544 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2498#issuecomment-7246462544). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T22:03:14Z. --- **Verified by OreoFR** **Run 1 (lot 4)** - Base: main `09c153948` + PR head `59feb165b`; integration package 2 of 6 (4 PRs, merged without conflict) - Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; the PRs' Python tests - Red on main: n/a (integration test; main baseline: xbox_present and d3d12_set_descriptor_heaps) - Green with the PR: ctest: only xbox_present and d3d12_set_descriptor_heaps fail, as on main - Verdict: CLEAN PACKAGE (no new failure vs main) **Run 2 (lot 4 bis)** - Base: main `33db04a70` + PR head `59feb165b`; integration package of 15 PRs - Test: full runtime build; ctest -j 6 without the 28 tests that launch gta6rt; the PRs' Python tests; translator suite - Red on main: n/a (integration test; main baseline: xbox_present, and flaky xmem) - Green with the PR: ctest: only xbox_present fails as on main (xs_proxy_mock failed once, flaky: passes on rerun and 5/5 direct runs); Python: same failures as main, the PRs' tests pass; translator: 507 files, 6405 tests, 0 failures - Verdict: CLEAN PACKAGE (no new failure vs main) **All runs** - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
enlight3d commented 2026-11-29 00:46:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T00:46:15Z.


Run on PR head 59feb165b (base 43a9d562d, 2 commits), checked against main 1bc055e6c (and origin/main c7753ed98): git merge-tree --write-tree finds no conflict with either.

Environment: NVIDIA GeForce RTX 3090 (24 GB), driver 621.40, Windows 11 Pro (build 26300), MSVC 14.44 (VS 2022 Build Tools), Ninja, RelWithDebInfo, SDL3 3.4.20 static installed. CPU tests only.

Configure (as scripts/build_runtime.ps1 does, own build folder): cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON. Only the test targets were built, not the whole runtime: cmake --build runtime/build -j 8 --target xs_proxy_mock_test device_proxy_test.

Green (PR head): ctest -R "^(xs_proxy_mock.*|device_proxy)$" --output-on-failure -> 10/10 passed (xs_proxy_mock 2.65 s).

Red (behavioural, the new test kept; the header-missing kind does not apply, no new header):

  • runtime/shims/d3d12_xs_device.cpp put back to base 43a9d562d, rebuilt xs_proxy_mock_test, ctest -R "^xs_proxy_mock$" -> failed at the slot 61 write-through check: line 3471: std::memcmp(title + off3, real_heap + off3, kMockDescriptorInc) == 0.
  • Only the second commit reverted (file as of a23273b5c: slot 61 fix kept, mapped-range handling as in the first commit), same target and test -> failed at the mapped-range check: line 3500: std::memcmp(real_heap + off2, in_flight, kMockDescriptorInc) == 0. So both checks bite, each for its own fix.
    Link check: merged into main 1bc055e6c, gta6rt.exe builds and links (RelWithDebInfo, MSVC 19.44); no new imports vs main.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248338899 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2498#issuecomment-7248338899). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T00:46:15Z. --- Run on PR head `59feb165b` (base `43a9d562d`, 2 commits), checked against main `1bc055e6c` (and origin/main `c7753ed98`): `git merge-tree --write-tree` finds no conflict with either. Environment: NVIDIA GeForce RTX 3090 (24 GB), driver 621.40, Windows 11 Pro (build 26300), MSVC 14.44 (VS 2022 Build Tools), Ninja, RelWithDebInfo, SDL3 3.4.20 static installed. CPU tests only. Configure (as scripts/build_runtime.ps1 does, own build folder): `cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON`. Only the test targets were built, not the whole runtime: `cmake --build runtime/build -j 8 --target xs_proxy_mock_test device_proxy_test`. **Green** (PR head): `ctest -R "^(xs_proxy_mock.*|device_proxy)$" --output-on-failure` -> 10/10 passed (`xs_proxy_mock` 2.65 s). **Red** (behavioural, the new test kept; the header-missing kind does not apply, no new header): - `runtime/shims/d3d12_xs_device.cpp` put back to base `43a9d562d`, rebuilt `xs_proxy_mock_test`, `ctest -R "^xs_proxy_mock$"` -> failed at the slot 61 write-through check: `line 3471: std::memcmp(title + off3, real_heap + off3, kMockDescriptorInc) == 0`. - Only the second commit reverted (file as of `a23273b5c`: slot 61 fix kept, mapped-range handling as in the first commit), same target and test -> failed at the mapped-range check: `line 3500: std::memcmp(real_heap + off2, in_flight, kMockDescriptorInc) == 0`. So both checks bite, each for its own fix. Link check: merged into main 1bc055e6c, gta6rt.exe builds and links (RelWithDebInfo, MSVC 19.44); no new imports vs main.
MoonEyes commented 2026-11-29 01:04:26 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T01:04:26Z.


Merged after enlight3d (Thib)'s red/green run (RUN, RTX 3090, driver 621.40, Windows 11: green with this PR, red without it, and gta6rt.exe still links) and a re-check here: no conflict with main 4cf39d157, same head as run, no-game-data green, and the only ctest failures in the Windows/macOS CI jobs are tests this diff does not touch (known on main or Vulkan: vk_xdxr_postbuild_readback vk_bindless_dimensions d3d12_compile_pool xbox_present ).

AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248540906 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2498#issuecomment-7248540906). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T01:04:26Z. --- Merged after **enlight3d** (Thib)'s red/green run ([RUN](https://github.com/ProjectLeonida/mandy/pull/2498#issuecomment-7248338899), RTX 3090, driver 621.40, Windows 11: green with this PR, red without it, and `gta6rt.exe` still links) and a re-check here: no conflict with `main` 4cf39d157, same head as run, `no-game-data` green, and the only ctest failures in the Windows/macOS CI jobs are tests this diff does not touch (known on `main` or Vulkan: vk_xdxr_postbuild_readback vk_bindless_dimensions d3d12_compile_pool xbox_present ). _AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes._
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2498
No description provided.