P0: main executable startup progress #864

Open
opened 2026-11-23 15:05:38 +00:00 by R0Y00 · 268 comments
R0Y00 commented 2026-11-23 15:05:38 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T15:05:38Z.


Mesh86 graphics checkpoint · 2 December 2026

Local Release build on main at e1161e43 plus unmerged C++ changes, on Windows 11 with RTX 4060 Laptop GPU (driver 616.56). With a fixed save, scripted input, a warm C++ shader cache and Opus enabled, all four sampled Mesh86 PSOs recorded direct slot 129 dispatches. Eight sampled command lists reached their GPU fences. The latest run sampled 48 dispatches with zero pixel shader invocations. Visible 3D scene output remains unverified.

  • The local changes correct staged primitive index decoding and refresh separately backed CPU-authored committed buffers before submission. The focused Release selection passed 24/24, including WARP and hardware controls.
  • GPU readback found CPU/GPU byte mismatches in selected geometry stream views. The sampled projection block agreed in its first four dwords. Some indexed triangles were outside the clip volume, while other dispatches yielded degenerate indices. The new committed-buffer path passed its fixture but was not observed on the mismatched stream views.
  • The next milestone remains a same-dispatch color or depth change traced through presentation, with a skipped-draw control.
  • Active P0 work: geometry-stream backing and resource identity in #3763, then submission-to-presentation verification in #3641. The primitive-index correction (#3764) and indexed raw SRV binding (#3807) have merged. The source-built fixture rasterizes with the expected stride. The scene checkpoint above remains the latest sampled result.

Graphics checkpoint · 1 December 2026

#3638 merged into main at a0e126c2. It adds the native C++ Mesh86 material and Texture1D binding path, direct DispatchMesh forwarding, and diagnostics that correlate the PSO and group counts with a command-list record and queue submission.

Area Observed result
Integrated Release tests 14 passed, 0 failed, 0 skipped, including WARP and RTX 4060 Laptop GPU readbacks.
Isolated local D3D12 probe A direct dispatch with a 24 MiB committed-buffer SRV was recorded, submitted and fenced. A missing-root-constants control was refused.
Local scene run Four desktop Mesh86 PSOs were created and selected. Their direct slot 129 calls reached the binder. Mesh86 records and submissions both remained at zero, and visible 3D scene geometry was not observed.

The first current blockers are the 128-byte root SRV at root parameter 3 (#3639) and the roughly 174 MiB raw placed SRV at root parameter 0, byte offset 0xAC0 (#3640). #3641 tracks the next end-to-end scene readback and presentation proof. The earlier broad issues #3541 and #3545 point to these follow-ups.

Main executable checkpoint · 30 November 2026

Manual retest of main at 35a3f6d6 with asynchronous native Compute translation, a copy of the existing save profile, a warm C++ shader cache, native-only translation and Opus enabled. Full GPU command capture, per-call tracing and the D3D12 debug layer were disabled for this run.

Area Observed result
Directory access and UI The tester reported that directory access and the UI worked normally. Manual input worked in the prologue detention sequence, and the in-session menu opened normally.
Audio The tester reported normal playback of all audio heard during the run, including in the prologue.
3D scene Scene geometry was still absent. Visible character movement and 3D scene output remain unverified.
Runtime The last heartbeat recorded 4,429 presented frames at 243.7 s. The tester manually closed the process at about 247 s, and the exit summary recorded no second-chance watchdog exception. Watchdog behavior beyond this run remains unverified.

Tracking watchdog stalls #3451 and the first verified 3D scene draw #3541.

Main executable checkpoint · 28 November 2026

The native C++ path reached the loading and settings UI. Visible 3D scene motion and repeatable character movement or turning remain unverified.

Tested path Result
Local empty-profile run, Release integration 2bd936f7 With the Python shader fallback disabled, the settings page displayed localized text and controls. Per-draw color-target readback at frame 3900 isolated the diagonal gradient boundary to one indexed draw and the lower-right horizontal bands to the following textured draw, before presentation. The central illustration remains unresolved. Gradient coverage #3131 · Textured bands #3132
Independent warm-cache runs, integration b80513fd With a 14 GiB limit, resource-wrapper allocation ran out of memory and the process stopped at 253.58 s. With 18 GiB, the run recorded 6,721 presented frames, 1,364 uploaded textures, 3 translated compute dispatches and 0 forwarded indirect calls. It stopped at 297.30 s on a null read in the BVH builder. The connection between this stop and missing scene pixels remains open. Contributor run report
Integration and regressions The local Release selection had 27 passes, 1 capability skip and 0 failures. #3130 merged into the runtime integration branch. At main 63a30dc1, the compiler PR #3091 still has conflicts and the runtime PR #3094 is stacked on it.

Contributor handoff. The gradient investigation is claimed. The textured-band source fixture and shared upload fixes and the sampler and BC7 display upload fix are on main. The source fixture reproduces alternating bands when row pitch is wrong. The original executable’s textured draw and central illustration still need a matched retest. The watcher invalidation task #3133 has overlapping candidates #3137 and #3138. The PSO fallback task #3134 has candidate #3139.

Next executable milestone. On a fixed profile and input sequence, identify a submitted draw that writes visible scene color, trace it through presentation, then demonstrate a repeatable movement or turning response. Keep the loading-path stop and the UI rendering defects independently reproducible.

Main executable progress · 26 November 2026

Area Latest verified result
Verified local run (26 Nov) Windows 11 build 26200.9974, x64 Release at a6c8d80d, host RTX 4060 Laptop driver 616.56, default adapter and project debug layer off. The presenter title and device log both identified the tested revision. With the same saved profile and graphics requests precompiled for cache revision 14, two distinct loading illustrations appeared at 138 and 148 s on the recording clock. Credits were visible over a solid red background at 275 s. Visible 3D scene motion and character control remain unverified.
Current rendering blocker The final indirect counters recorded 0 forwarded calls, 5,740,189 mesh dispatches refused by the graphics-pipeline check and 1,929,315 compute dispatches refused by the compute-pipeline check. These are invocation counts from one run. The missing scene still needs a same-command resource and queue-order comparison. Slot 86 investigation claimed · Public slot 67 indirect fixture #2492
Process stop At 284.75 s on the process clock the debugger stopped on a second-chance C++ exception (0xe06d7363). Its throw cause and any connection to the red scene remain open. Main development owns the matched local retest.
Earlier local saved-profile retest On RTX 4060 Laptop the first 32 sampled mesh dispatches used fixed slot 57 with the default creation result and stream slot 86 with an experimental unsupported result. All 32 stream states built in separate desktop replay on RTX and WARP. The original process forwarded 0/32. The late surface remained red. Next step is to establish the root SRV backing and the indirect argument's last writer and fence. Retest details · Source-built stream tests
Mainline texture and upload retest At 940cd178, the local saved-profile replay displayed two loading illustrations and reached title and credit cards with a red background. It stopped on a read access violation at 202.60 s. The combined source-built GPU and upload checks passed on hardware and WARP. Configuration and results
Saved-profile artwork A/B (25 Nov) On RTX 4060 Laptop, a local integration of #2015 displayed the illustrated loading panels between the opening ident and the prologue. The narrow setting left the same panels black. Both runs used the same original executable, existing save, input script, DLL and initial shader cache. Matched local retest
Community milestone On GTX 1660 SUPER, a Release build at b9c9f624 moved focus between menu items, opened a submenu and returned with B. Subsequent loading stopped in that run. Independent navigation report
Community loading retest On RX 9070 XT, the opt-in allocation in #1860 cleared the 40-bit BVH destination check. The run stopped next on command-list slot 148 upload allocation. An RTX 5080 Sandbox retest with the opt-in and open #1853 corroborated this order in two runs. The placement change has merged. Production slot 148 landed in #2216. An independent rerun on these adapters is still welcome. RTX 5080 retest. Retest and follow-up
Community slot 148 diagnostic On RTX 3090, a matched Release comparison stopped at upload allocation without the local stand-in. With that stand-in, the opening sequence rendered with overlapping text cards and missing draws. The build also contained #2058. The independently merged arena #1774 is a source-built fixture. Production slot 148 landed in #2216. A matched RTX 3090 retest is still welcome. Community A/B · Production acceptance
Independent RX 590 comparison On 0631667d, all four translated pipelines loaded and 2,674 draws were recorded; the presented surface stayed black. A separate diagnostic cache substituted green at the zero-valued colour input. The current draw, following textured draw and presenter carried green through. The input writer and menu rendering remain unverified. Latest controlled report · Earlier RX 590 run
Local run On RTX 4060 Laptop, the original on-disk executable under the local diagnostic launcher, with assertion continuation and runtime shims, reached the prologue credits. The opening movie showed successive colour frames. The background behind the credits remained a solid colour. Gameplay and a correctly rendered prologue scene are still unverified. Milestone report
Earlier composite readback At frame 4320, GPU readback showed all 1,024 central pixels of the presentation target magenta after the early composite. The two draws writing the later 2560×1440 scene input now execute in the 1D-texture candidate in PR #1630; their centre samples were black. The final presentation centre stayed magenta. Whether the early composite wrote that colour or retained the previous destination is open.
Next milestone Load into the 3D world and verify character control. First fix the incorrect scene draw and verify visible scene detail and motion across successive frames, both in the presentation source and in the window outside the credits overlay. Then record a movement input and the character's visible response in the loaded world. Prioritize scene rendering and input compatibility for this milestone. Broader performance optimization follows this checkpoint.
How to help Claim #2492 to prove GPU-written indirect group counts with a translated slot 67 pipeline using source-built inputs. An independent reviewer can claim the #2007 WARP/hardware rerun after the author rebases. The GPU claim table tracks ownership.
Earlier startup results and milestones
Area Current status
Local startup These observations used a modified local diagnostic EXE and a debugger configured to automatically continue assertions. The original EXE differs from this diagnostic copy. The RTX 4060 Laptop offline run reached loading after confirming setup and the terms. The baseline stopped at a second-chance access violation while loading. A later local build resolved the periodic black interval on the language selector and the terms confirmation page during separate 24 s and 35 s window captures. A newer local build renders the language names. A Down input moves the highlight from English (1/12) to Deutsch (2/12), with both labels readable. The renderer used the original 3840 × 2160 mask and presented at 1600 × 900. The local integration restores the address-based texture views, applies the child blend state, and untangles the 4 KiB tile layout of the BC3/BC7 labels. With the wider scalar descriptor-load correction and regenerated translations, the English Privacy Policy and Terms of Service are readable, including after scrolling Terms of Service and switching back to Privacy Policy. The displayed screens and loading stop apply to the diagnostic build. Startup of the original EXE, main-menu interaction and gameplay remain unverified. Descriptor correction #1286 · Setup text · Language retest · Logical view heap fix and hardware fixture #1255
Community results On RX 9070 XT, the original startup report reached the intro and then presented black frames. With regenerated shader bindings, the author later saw plausible intro colours. With local glyph and experimental blend changes, denn0x reports readable setup and legal text. On Windows 10 build 19045 with an RTX 3060, rasptum now reports fully readable setup and legal pages with restored translation flags, glyph instruction support, blend decoding and the descriptor fix.
Loading blockers In the modified diagnostic run, the acceleration-structure builder rejected a destination above its 40-bit address limit. The owning resource and the failing element in the 16-build batch remain unknown. Separately, affected storage requests already had an incorrect offset at enqueue. The directory entry, batch base and byte delta used to form the first offset are still missing. GPU evidence and next observation · Storage comparison
Reproducible on main A source-built EXE computes two archive request ranges and draws their BC7 output. Native Windows, mapped PE and AOT agree on RTX 4060 Laptop and WARP, including a valid compressed page at the wrong offset and an EOF failure. A separate DXR fixture builds and traces with explicitly registered destination and scratch buffers. Archive-to-draw #1331 · DXR #1326
Next milestone Reach the main menu, move focus between two items, open a submenu and return. Record the last responsive screen and first unanswered input or runtime error if navigation stops. Gameplay remains unverified.
How to help Claim the independent main-menu retest. Other openings include an AMD/Intel plane-colour retest in #1138, desktop audio submission in #1145, or help with BCPack decompression in #1139. Check GPU claims in #874 before starting.

Evidence

  • Intro playback timing (i9-14900HX / RTX 4060 Laptop). In two completed runs with the same startup configuration, 449 Bink frame advances yielded 448 intervals. With five counted CLZERO loops translated locally, the interval total fell from 32.188 s to 14.937 s (13.92 to 29.99 frame advances/s). Intervals longer than 100 ms fell from 11 to zero. An additional attempt stopped during texture creation with E_OUTOFMEMORY. This comparison measures intro decoder timing. Gameplay frame rate remains unmeasured, and the audio issue stays open. Source-built loop comparison #1230

  • Earlier WARP run. The local run created 53 compute and six graphics pipelines, completed 22 texture uploads with byte-matched readbacks, created six structured buffer views and queried queue timestamp frequency. Execution then stopped at a CPU CLZERO instruction.

  • Storage and pipeline-cache fallback. Real DirectStorage requests consumed complete RFC 1950 streams and produced 65,536 bytes each. The title attempted to rebuild pipelines after receiving a null pipeline and E_NOTIMPL for unsupported serialized cache data. Captured requests with unresolved shader bindings are still counted as misses. The latest WARP run also completed 13 single-texel uploads and CPU readbacks. CPU shader-input refresh fixture #1110

  • Texture and buffer setup. The 128-byte constant-buffer input was copied into a 256-byte diagnostic upload allocation. For a nonuniform R8 texture, the default and explicit 4KB_S layouts agreed at all 32,768 texels in the public texture-computer comparison. The local WARP texture matched the detiled bytes on CPU readback. Input coherency at GPU submission and main-executable pixel output still need verification. An independent source-built graphics stream test ran six fenced draws on RTX and WARP. Fixture PR #1099

  • Graphics startup. The first graphics stream contains native shader programs in XDAT containers. The vertex and pixel stages were decoded and translated locally. Six calls to desktop CreatePipelineState returned S_OK. A projected sampler was created and copied, and a page pool was registered as metadata. Draw, fence completion and pixel readback for the main executable are still open.

  • Maintainer diagnostic. The executable reaches D3D12 initialization using a local diagnostic runtime and translated compute shaders. All four query heaps and readback buffers returned S_OK. The title also created five desktop indirect command signatures, including a three-DWORD DispatchX mapped to DISPATCH. XCL API reference The count includes pipeline 43 in its WARP creation-only configuration. The local WARP backend reports a native width of 4 and refuses the forced-wave32 pipeline that creates successfully on RTX 4060 Laptop. GPU submission, output comparison and a rendered frame in this runtime are still pending. The source-built comparison and runtime baseline are tracked in #165 and #1054. Signed DXIL indexing from source-built PE inputs is covered by #1042.

  • Independent startup checkpoint. @denn0x reported desktop command-list execution and 2,414 black presents with a separate local diagnostic harness. The report is an independent integration reference. The first verified rendered frame remains open. Sanitized contributor report

  • Full-package DXIL compilation. A separate local DXC scan produced at least one compiled route for 26,500 of 26,503 records, including 25,595 same-stage results. The scan includes fallback routes and measures compilation. Pipeline creation, execution and output checks have their own evidence. Archive record counting

Updates and claims

Main development updates this table when the verified startup boundary changes. The maintenance chat updates the task rows in #874 when someone claims a task, posts a retest or merges a PR. Report the revision, Windows build, adapter and driver when applicable, exact command, observed result and first mismatch or capability skip. Share source-built fixtures, sanitized summaries and PR links. Keep local inputs and private diagnostics off GitHub.

Original startup checklist

Goal

Make the main executable the top development priority. Establish how far one reproducible startup attempt on x64 Windows gets and identify the first blocker. Availability has been reported. Execution of the title's CPU code, full-game startup and frame rate remain unverified.

First pass

  1. Record the repository commit, Windows build, toolchain and launch path. Document the observed PE loading and import resolution results using a short, sanitized summary.
  2. Establish the last confirmed startup boundary. Report whether mapping, imports, runtime initialization and the executable's entry point were reached. Give the first concrete failure and distinguish observations from hypotheses.
  3. If the first blocker can be isolated, build a public source-built or synthetic fixture that demonstrates the expected and observed behavior. Link any follow-up PR or issue here.

Done when

This issue contains a reproducible record for the first trustworthy attempt, including the command or public reproduction steps, last confirmed stage, and either the first blocker or evidence of the next reached boundary. A blocker counts as a result. Follow-up fixes belong in focused, linked issues or PRs.

To claim a slice, comment here with the stage, environment and any overlapping work. Use Discord to coordinate and keep claims, evidence and decisions on GitHub. Keep executables, game files, dumps, distribution links and private logs out of GitHub and Discord.

Related baseline: #165 covers a source-built startup fixture.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6562252230 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T15:05:38Z. --- ## Mesh86 graphics checkpoint · 2 December 2026 Local Release build on `main` at `e1161e43` plus unmerged C++ changes, on Windows 11 with RTX 4060 Laptop GPU (driver 616.56). With a fixed save, scripted input, a warm C++ shader cache and Opus enabled, all four sampled Mesh86 PSOs recorded direct slot 129 dispatches. Eight sampled command lists reached their GPU fences. The latest run sampled 48 dispatches with zero pixel shader invocations. Visible 3D scene output remains unverified. - The local changes correct staged primitive index decoding and refresh separately backed CPU-authored committed buffers before submission. The focused Release selection passed 24/24, including WARP and hardware controls. - GPU readback found CPU/GPU byte mismatches in selected geometry stream views. The sampled projection block agreed in its first four dwords. Some indexed triangles were outside the clip volume, while other dispatches yielded degenerate indices. The new committed-buffer path passed its fixture but was not observed on the mismatched stream views. - The next milestone remains a same-dispatch color or depth change traced through presentation, with a skipped-draw control. - Active P0 work: geometry-stream backing and resource identity in #3763, then submission-to-presentation verification in #3641. The primitive-index correction (#3764) and indexed raw SRV binding (#3807) have merged. The source-built fixture rasterizes with the expected stride. The scene checkpoint above remains the latest sampled result. ## Graphics checkpoint · 1 December 2026 [#3638](https://github.com/R0Y00/Xbox2Windows/pull/3638) merged into `main` at `a0e126c2`. It adds the native C++ Mesh86 material and Texture1D binding path, direct `DispatchMesh` forwarding, and diagnostics that correlate the PSO and group counts with a command-list record and queue submission. | Area | Observed result | | --- | --- | | Integrated Release tests | 14 passed, 0 failed, 0 skipped, including WARP and RTX 4060 Laptop GPU readbacks. | | Isolated local D3D12 probe | A direct dispatch with a 24 MiB committed-buffer SRV was recorded, submitted and fenced. A missing-root-constants control was refused. | | Local scene run | Four desktop Mesh86 PSOs were created and selected. Their direct slot 129 calls reached the binder. Mesh86 records and submissions both remained at zero, and visible 3D scene geometry was not observed. | The first current blockers are the 128-byte root SRV at root parameter 3 (#3639) and the roughly 174 MiB raw placed SRV at root parameter 0, byte offset `0xAC0` (#3640). #3641 tracks the next end-to-end scene readback and presentation proof. The earlier broad issues #3541 and #3545 point to these follow-ups. ## Main executable checkpoint · 30 November 2026 Manual retest of [`main` at `35a3f6d6`](https://github.com/R0Y00/Xbox2Windows/commit/35a3f6d6c162e019144cd923a50da171c72dde97) with asynchronous native Compute translation, a copy of the existing save profile, a warm C++ shader cache, native-only translation and Opus enabled. Full GPU command capture, per-call tracing and the D3D12 debug layer were disabled for this run. | Area | Observed result | | --- | --- | | Directory access and UI | The tester reported that directory access and the UI worked normally. Manual input worked in the prologue detention sequence, and the in-session menu opened normally. | | Audio | The tester reported normal playback of all audio heard during the run, including in the prologue. | | 3D scene | Scene geometry was still absent. Visible character movement and 3D scene output remain unverified. | | Runtime | The last heartbeat recorded 4,429 presented frames at 243.7 s. The tester manually closed the process at about 247 s, and the exit summary recorded no second-chance watchdog exception. Watchdog behavior beyond this run remains unverified. | Tracking [watchdog stalls #3451](https://github.com/R0Y00/Xbox2Windows/issues/3451) and [the first verified 3D scene draw #3541](https://github.com/R0Y00/Xbox2Windows/issues/3541). ## Main executable checkpoint · 28 November 2026 The native C++ path reached the loading and settings UI. Visible 3D scene motion and repeatable character movement or turning remain unverified. | Tested path | Result | | --- | --- | | Local empty-profile run, Release integration `2bd936f7` | With the Python shader fallback disabled, the settings page displayed localized text and controls. Per-draw color-target readback at frame 3900 isolated the diagonal gradient boundary to one indexed draw and the lower-right horizontal bands to the following textured draw, before presentation. The central illustration remains unresolved. [Gradient coverage #3131](https://github.com/R0Y00/Xbox2Windows/issues/3131) · [Textured bands #3132](https://github.com/R0Y00/Xbox2Windows/issues/3132) | | Independent warm-cache runs, integration `b80513fd` | With a 14 GiB limit, resource-wrapper allocation ran out of memory and the process stopped at 253.58 s. With 18 GiB, the run recorded 6,721 presented frames, 1,364 uploaded textures, 3 translated compute dispatches and 0 forwarded indirect calls. It stopped at 297.30 s on a null read in the BVH builder. The connection between this stop and missing scene pixels remains open. [Contributor run report](https://github.com/R0Y00/Xbox2Windows/pull/3094#issuecomment-7224214919) | | Integration and regressions | The local Release selection had 27 passes, 1 capability skip and 0 failures. [#3130](https://github.com/R0Y00/Xbox2Windows/pull/3130) merged into the runtime integration branch. At main `63a30dc1`, the [compiler PR #3091](https://github.com/R0Y00/Xbox2Windows/pull/3091) still has conflicts and the [runtime PR #3094](https://github.com/R0Y00/Xbox2Windows/pull/3094) is stacked on it. | **Contributor handoff.** The gradient investigation is claimed. The [textured-band source fixture and shared upload fixes](https://github.com/R0Y00/Xbox2Windows/pull/3141) and the [sampler and BC7 display upload fix](https://github.com/R0Y00/Xbox2Windows/pull/3153) are on `main`. The source fixture reproduces alternating bands when row pitch is wrong. The original executable’s textured draw and central illustration still need a matched retest. The [watcher invalidation task #3133](https://github.com/R0Y00/Xbox2Windows/issues/3133) has overlapping candidates #3137 and #3138. The [PSO fallback task #3134](https://github.com/R0Y00/Xbox2Windows/issues/3134) has candidate #3139. **Next executable milestone.** On a fixed profile and input sequence, identify a submitted draw that writes visible scene color, trace it through presentation, then demonstrate a repeatable movement or turning response. Keep the loading-path stop and the UI rendering defects independently reproducible. ## Main executable progress · 26 November 2026 | Area | Latest verified result | | --- | --- | | Verified local run (26 Nov) | Windows 11 build 26200.9974, x64 Release at `a6c8d80d`, host RTX 4060 Laptop driver 616.56, default adapter and project debug layer off. The presenter title and device log both identified the tested revision. With the same saved profile and graphics requests precompiled for cache revision 14, two distinct loading illustrations appeared at 138 and 148 s on the recording clock. Credits were visible over a solid red background at 275 s. Visible 3D scene motion and character control remain unverified. | | Current rendering blocker | The final indirect counters recorded 0 forwarded calls, 5,740,189 mesh dispatches refused by the graphics-pipeline check and 1,929,315 compute dispatches refused by the compute-pipeline check. These are invocation counts from one run. The missing scene still needs a same-command resource and queue-order comparison. [Slot 86 investigation claimed](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7167137113) · [Public slot 67 indirect fixture #2492](https://github.com/R0Y00/Xbox2Windows/issues/2492) | | Process stop | At 284.75 s on the process clock the debugger stopped on a second-chance C++ exception (`0xe06d7363`). Its throw cause and any connection to the red scene remain open. Main development owns the matched local retest. | | Earlier local saved-profile retest | On RTX 4060 Laptop the first 32 sampled mesh dispatches used fixed slot 57 with the default creation result and stream slot 86 with an experimental unsupported result. All 32 stream states built in separate desktop replay on RTX and WARP. The original process forwarded 0/32. The late surface remained red. Next step is to establish the root SRV backing and the indirect argument's last writer and fence. [Retest details](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7157908927) · [Source-built stream tests](https://github.com/R0Y00/Xbox2Windows/pull/2270) | | Mainline texture and upload retest | At `940cd178`, the local saved-profile replay displayed two loading illustrations and reached title and credit cards with a red background. It stopped on a read access violation at 202.60 s. The combined source-built GPU and upload checks passed on hardware and WARP. [Configuration and results](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7154063846) | | Saved-profile artwork A/B (25 Nov) | On RTX 4060 Laptop, a local integration of [#2015](https://github.com/R0Y00/Xbox2Windows/pull/2015) displayed the illustrated loading panels between the opening ident and the prologue. The narrow setting left the same panels black. Both runs used the same original executable, existing save, input script, DLL and initial shader cache. [Matched local retest](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7153376691) | | Community milestone | On GTX 1660 SUPER, a Release build at `b9c9f624` moved focus between menu items, opened a submenu and returned with B. Subsequent loading stopped in that run. [Independent navigation report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127658919) | | Community loading retest | On RX 9070 XT, the opt-in allocation in [#1860](https://github.com/R0Y00/Xbox2Windows/pull/1860) cleared the 40-bit BVH destination check. The run stopped next on command-list slot 148 upload allocation. An RTX 5080 Sandbox retest with the opt-in and open #1853 corroborated this order in two runs. The placement change has merged. Production slot 148 landed in [#2216](https://github.com/R0Y00/Xbox2Windows/pull/2216). An independent rerun on these adapters is still welcome. [RTX 5080 retest](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7143623747). [Retest and follow-up](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7142798175) | | Community slot 148 diagnostic | On RTX 3090, a matched Release comparison stopped at upload allocation without the local stand-in. With that stand-in, the opening sequence rendered with overlapping text cards and missing draws. The build also contained #2058. The independently merged arena #1774 is a source-built fixture. Production slot 148 landed in [#2216](https://github.com/R0Y00/Xbox2Windows/pull/2216). A matched RTX 3090 retest is still welcome. [Community A/B](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147932392) · [Production acceptance](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7148130840) | | Independent RX 590 comparison | On 0631667d, all four translated pipelines loaded and 2,674 draws were recorded; the presented surface stayed black. A separate diagnostic cache substituted green at the zero-valued colour input. The current draw, following textured draw and presenter carried green through. The input writer and menu rendering remain unverified. [Latest controlled report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7142877148) · [Earlier RX 590 run](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7136063627) | | Local run | On RTX 4060 Laptop, the original on-disk executable under the local diagnostic launcher, with assertion continuation and runtime shims, reached the prologue credits. The opening movie showed successive colour frames. The background behind the credits remained a solid colour. Gameplay and a correctly rendered prologue scene are still unverified. [Milestone report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7133922579) | | Earlier composite readback | At frame 4320, GPU readback showed all 1,024 central pixels of the presentation target magenta after the early composite. The two draws writing the later 2560×1440 scene input now execute in the [1D-texture candidate in PR #1630](https://github.com/R0Y00/Xbox2Windows/pull/1630); their centre samples were black. The final presentation centre stayed magenta. Whether the early composite wrote that colour or retained the previous destination is open. | | Next milestone | **Load into the 3D world and verify character control.** First fix the incorrect scene draw and verify visible scene detail and motion across successive frames, both in the presentation source and in the window outside the credits overlay. Then record a movement input and the character's visible response in the loaded world. Prioritize scene rendering and input compatibility for this milestone. Broader performance optimization follows this checkpoint. | | How to help | Claim [#2492](https://github.com/R0Y00/Xbox2Windows/issues/2492) to prove GPU-written indirect group counts with a translated slot 67 pipeline using source-built inputs. An independent reviewer can [claim the #2007 WARP/hardware rerun](https://github.com/R0Y00/Xbox2Windows/pull/2007#issuecomment-7171040347) after the author rebases. The [GPU claim table](https://github.com/R0Y00/Xbox2Windows/issues/874) tracks ownership. | <details> <summary>Earlier startup results and milestones</summary> | Area | Current status | | --- | --- | | Local startup | These observations used a modified local diagnostic EXE and a debugger configured to automatically continue assertions. The original EXE differs from this diagnostic copy. The RTX 4060 Laptop offline run reached loading after confirming setup and the terms. The baseline stopped at a second-chance access violation while loading. A later local build resolved the periodic black interval on the language selector and the terms confirmation page during separate 24 s and 35 s window captures. A newer local build renders the language names. A Down input moves the highlight from English (1/12) to Deutsch (2/12), with both labels readable. The renderer used the original 3840 × 2160 mask and presented at 1600 × 900. The local integration restores the address-based texture views, applies the child blend state, and untangles the 4 KiB tile layout of the BC3/BC7 labels. With the wider scalar descriptor-load correction and regenerated translations, the English Privacy Policy and Terms of Service are readable, including after scrolling Terms of Service and switching back to Privacy Policy. The displayed screens and loading stop apply to the diagnostic build. Startup of the original EXE, main-menu interaction and gameplay remain unverified. [Descriptor correction #1286](https://github.com/R0Y00/Xbox2Windows/pull/1286) · [Setup text](https://github.com/R0Y00/Xbox2Windows/issues/1216#issuecomment-7122396844) · [Language retest](https://github.com/R0Y00/Xbox2Windows/issues/1150#issuecomment-7122834568) · [Logical view heap fix and hardware fixture #1255](https://github.com/R0Y00/Xbox2Windows/pull/1255) | | Community results | On RX 9070 XT, the [original startup report](https://github.com/R0Y00/Xbox2Windows/pull/1135) reached the intro and then presented black frames. With regenerated shader bindings, the author later saw [plausible intro colours](https://github.com/R0Y00/Xbox2Windows/issues/1138#issuecomment-7121639988). With local glyph and experimental blend changes, denn0x reports [readable setup and legal text](https://github.com/R0Y00/Xbox2Windows/issues/1150#issuecomment-7121639611). On Windows 10 build 19045 with an RTX 3060, rasptum now reports [fully readable setup and legal pages](https://github.com/R0Y00/Xbox2Windows/issues/1150#issuecomment-7122009051) with restored translation flags, glyph instruction support, blend decoding and the descriptor fix. | | Loading blockers | In the modified diagnostic run, the acceleration-structure builder rejected a destination above its 40-bit address limit. The owning resource and the failing element in the 16-build batch remain unknown. Separately, affected storage requests already had an incorrect offset at enqueue. The directory entry, batch base and byte delta used to form the first offset are still missing. [GPU evidence and next observation](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7126102601) · [Storage comparison](https://github.com/R0Y00/Xbox2Windows/issues/1198#issuecomment-7125766563) | | Reproducible on main | A source-built EXE computes two archive request ranges and draws their BC7 output. Native Windows, mapped PE and AOT agree on RTX 4060 Laptop and WARP, including a valid compressed page at the wrong offset and an EOF failure. A separate DXR fixture builds and traces with explicitly registered destination and scratch buffers. [Archive-to-draw #1331](https://github.com/R0Y00/Xbox2Windows/pull/1331) · [DXR #1326](https://github.com/R0Y00/Xbox2Windows/pull/1326) | | Next milestone | Reach the main menu, move focus between two items, open a submenu and return. Record the last responsive screen and first unanswered input or runtime error if navigation stops. Gameplay remains unverified. | | How to help | Claim the [independent main-menu retest](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7122326265). Other openings include an [AMD/Intel plane-colour retest in #1138](https://github.com/R0Y00/Xbox2Windows/issues/1138#issuecomment-7121913714), [desktop audio submission in #1145](https://github.com/R0Y00/Xbox2Windows/issues/1145#issuecomment-7121873442), or help with [BCPack decompression in #1139](https://github.com/R0Y00/Xbox2Windows/issues/1139). Check [GPU claims in #874](https://github.com/R0Y00/Xbox2Windows/issues/874) before starting. | </details> ## Evidence - **Intro playback timing (i9-14900HX / RTX 4060 Laptop).** In two completed runs with the same startup configuration, 449 Bink frame advances yielded 448 intervals. With five counted `CLZERO` loops translated locally, the interval total fell from 32.188 s to 14.937 s (13.92 to 29.99 frame advances/s). Intervals longer than 100 ms fell from 11 to zero. An additional attempt stopped during texture creation with `E_OUTOFMEMORY`. This comparison measures intro decoder timing. Gameplay frame rate remains unmeasured, and the [audio issue](https://github.com/R0Y00/Xbox2Windows/issues/1145) stays open. [Source-built loop comparison #1230](https://github.com/R0Y00/Xbox2Windows/pull/1230) - **Earlier WARP run.** The local run created 53 compute and six graphics pipelines, completed 22 texture uploads with byte-matched readbacks, created six structured buffer views and queried queue timestamp frequency. Execution then stopped at a CPU CLZERO instruction. - **Storage and pipeline-cache fallback.** Real DirectStorage requests consumed complete RFC 1950 streams and produced 65,536 bytes each. The title attempted to rebuild pipelines after receiving a null pipeline and `E_NOTIMPL` for unsupported serialized cache data. Captured requests with unresolved shader bindings are still counted as misses. The latest WARP run also completed 13 single-texel uploads and CPU readbacks. [CPU shader-input refresh fixture #1110](https://github.com/R0Y00/Xbox2Windows/pull/1110) - **Texture and buffer setup.** The 128-byte constant-buffer input was copied into a 256-byte diagnostic upload allocation. For a nonuniform R8 texture, the default and explicit 4KB_S layouts agreed at all 32,768 texels in the public texture-computer comparison. The local WARP texture matched the detiled bytes on CPU readback. Input coherency at GPU submission and main-executable pixel output still need verification. An independent source-built graphics stream test ran six fenced draws on RTX and WARP. [Fixture PR #1099](https://github.com/R0Y00/Xbox2Windows/pull/1099) - **Graphics startup.** The first graphics stream contains native shader programs in XDAT containers. The vertex and pixel stages were decoded and translated locally. Six calls to desktop `CreatePipelineState` returned `S_OK`. A projected sampler was created and copied, and a page pool was registered as metadata. Draw, fence completion and pixel readback for the main executable are still open. - **Maintainer diagnostic.** The executable reaches D3D12 initialization using a local diagnostic runtime and translated compute shaders. All four query heaps and readback buffers returned `S_OK`. The title also created five desktop indirect command signatures, including a three-DWORD `DispatchX` mapped to `DISPATCH`. [XCL API reference](https://github.com/ivall/xcl/blob/main/HANDOFF.md) The count includes pipeline 43 in its WARP creation-only configuration. The local WARP backend reports a native width of 4 and refuses the forced-wave32 pipeline that creates successfully on RTX 4060 Laptop. GPU submission, output comparison and a rendered frame in this runtime are still pending. The source-built comparison and runtime baseline are tracked in #165 and #1054. Signed DXIL indexing from source-built PE inputs is covered by #1042. - **Independent startup checkpoint.** @denn0x reported desktop command-list execution and 2,414 black presents with a separate local diagnostic harness. The report is an independent integration reference. The first verified rendered frame remains open. [Sanitized contributor report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7116272710) - **Full-package DXIL compilation.** A separate local DXC scan produced at least one compiled route for 26,500 of 26,503 records, including 25,595 same-stage results. The scan includes fallback routes and measures compilation. Pipeline creation, execution and output checks have their own evidence. [Archive record counting](https://github.com/R0Y00/Xbox2Windows/blob/main/docs/experiments.md#shader-census-tiers-and-what-each-percentage-divides-by) ## Updates and claims Main development updates this table when the verified startup boundary changes. The maintenance chat updates the task rows in #874 when someone claims a task, posts a retest or merges a PR. Report the revision, Windows build, adapter and driver when applicable, exact command, observed result and first mismatch or capability skip. Share source-built fixtures, sanitized summaries and PR links. Keep local inputs and private diagnostics off GitHub. <details> <summary>Original startup checklist</summary> ## Goal Make the main executable the top development priority. Establish how far one reproducible startup attempt on x64 Windows gets and identify the first blocker. Availability has been reported. Execution of the title's CPU code, full-game startup and frame rate remain unverified. ## First pass 1. Record the repository commit, Windows build, toolchain and launch path. Document the observed PE loading and import resolution results using a short, sanitized summary. 2. Establish the last confirmed startup boundary. Report whether mapping, imports, runtime initialization and the executable's entry point were reached. Give the first concrete failure and distinguish observations from hypotheses. 3. If the first blocker can be isolated, build a public source-built or synthetic fixture that demonstrates the expected and observed behavior. Link any follow-up PR or issue here. ## Done when This issue contains a reproducible record for the first trustworthy attempt, including the command or public reproduction steps, last confirmed stage, and either the first blocker or evidence of the next reached boundary. A blocker counts as a result. Follow-up fixes belong in focused, linked issues or PRs. To claim a slice, comment here with the stage, environment and any overlapping work. Use Discord to coordinate and keep claims, evidence and decisions on GitHub. Keep executables, game files, dumps, distribution links and private logs out of GitHub and Discord. Related baseline: #165 covers a source-built startup fixture. </details>
R0Y00 commented 2026-11-24 06:49:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T15:20:40Z.


P0 local checkpoint on fc89b9e, Windows x64 build 26200, MSVC 19.51, Release. tools/intake_exe.py completed static intake. It indexed the x64 exception table and found two TLS callbacks. The direct-import comparison found 37 unresolved entries before the desktop shims and 32 after checking the built xmem.dll and d3d12_xs.dll export tables.

Two fresh child processes calling pe_map_image with a System32 resolver and only the project's two explicit shims returned the same result: 165 imports bound, mapper status 5, unresolved import xmem.dll!XMemAllocDefault. The shim loaded, but its export lookup failed. This locates the current boundary at IAT binding, before the TLS/entry run. The source-built loader checks passed, including a TLS-data rerun with a short temporary directory after a path-name error in the first run.

I am following the first missing ABI locally. Community work is available in #875 (the XMem default allocation pair), #874 (D3D12 virtual-memory configuration), and the #165 TLS follow-up. The next integrated checkpoint is the same mapping probe after a source-built, independently reviewable provider change.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7105418776 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7105418776). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T15:20:40Z. --- P0 local checkpoint on `fc89b9e`, Windows x64 build 26200, MSVC 19.51, Release. `tools/intake_exe.py` completed static intake. It indexed the x64 exception table and found two TLS callbacks. The direct-import comparison found 37 unresolved entries before the desktop shims and 32 after checking the built `xmem.dll` and `d3d12_xs.dll` export tables. Two fresh child processes calling `pe_map_image` with a System32 resolver and only the project's two explicit shims returned the same result: 165 imports bound, mapper status 5, `unresolved import xmem.dll!XMemAllocDefault`. The shim loaded, but its export lookup failed. This locates the current boundary at IAT binding, before the TLS/entry run. The source-built loader checks passed, including a TLS-data rerun with a short temporary directory after a path-name error in the first run. I am following the first missing ABI locally. Community work is available in #875 (the XMem default allocation pair), #874 (D3D12 virtual-memory configuration), and the #165 TLS follow-up. The next integrated checkpoint is the same mapping probe after a source-built, independently reviewable provider change.
R0Y00 commented 2026-11-24 06:49:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T15:25:46Z.


The first provider change is in #879. The source-built XMem suite passed 4/4 in Release. With the rebuilt shim, two fresh mapping probes reached the same next boundary: 166 imports bound, then mapper status 5 at xmem.dll!XMemAllocatePhysicalPages. The physical-page allocation contract is now tracked in #880. The loader still stops at import binding.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7105551544 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7105551544). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T15:25:46Z. --- The first provider change is in #879. The source-built XMem suite passed 4/4 in Release. With the rebuilt shim, two fresh mapping probes reached the same next boundary: 166 imports bound, then mapper status 5 at `xmem.dll!XMemAllocatePhysicalPages`. The physical-page allocation contract is now tracked in #880. The loader still stops at import binding.
rasptum commented 2026-11-24 06:49:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T15:18:49Z.


Claiming the loader TLS initialization slice listed above.

  • Stage: loader TLS initialization (implicit TLS template copy and TLS callback order) before the entry point.
  • Environment: Windows 10 Pro 10.0.19045, MSVC (VS 2022) x64, CMake/Ninja, dev (/Od) and release (/O2) presets.
  • Interface: pe_map_image / pe_map_release in tools/pe_map.cpp (carrier-served TLS template, callback list in table order), compared with LoadLibraryW. No change to pe_map.cpp is planned; this is a fixture and harness change.
  • Plan: extend the closest existing test, cpu_native_tls_value (tests/cpu/tls_value.cpp, tests/cpu/native_tls_value_check.py), with an initialized template larger than one page with distinct words on each side of the page boundary, and a second TLS callback. Both callbacks verify the template and are recorded in order on the initial thread and on two concurrent workers. A write on one thread must not reach another thread's copy or the template in the loaded image. Negative controls patch copies of the built DLL: swapped callback entries and a template whose second page is zeroed. Both must be rejected with a diagnostic under both loaders.
  • Related work: #78 (callbacks in Windows order), #103, #172, #426, #523 (main/worker TLS values), #543, #698 (carrier DLL for TLS templates), #759, and baseline #165. cpu_native_tls_data (tests/cpu/tls_data.cpp) already covers data kinds without explicit callbacks, so this does not duplicate it.

I'll report the tested commit, commands and results here with the PR link.

Parallel work: #872 (one-command console-EXE conversion driver) is a different #870 stage. This slice covers loader TLS template and callback initialization only and does not overlap its stages or files.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7105370041 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7105370041). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T15:18:49Z. --- Claiming the loader TLS initialization slice listed above. - **Stage:** loader TLS initialization (implicit TLS template copy and TLS callback order) before the entry point. - **Environment:** Windows 10 Pro 10.0.19045, MSVC (VS 2022) x64, CMake/Ninja, `dev` (/Od) and `release` (/O2) presets. - **Interface:** `pe_map_image` / `pe_map_release` in `tools/pe_map.cpp` (carrier-served TLS template, callback list in table order), compared with `LoadLibraryW`. No change to `pe_map.cpp` is planned; this is a fixture and harness change. - **Plan:** extend the closest existing test, `cpu_native_tls_value` (`tests/cpu/tls_value.cpp`, `tests/cpu/native_tls_value_check.py`), with an initialized template larger than one page with distinct words on each side of the page boundary, and a second TLS callback. Both callbacks verify the template and are recorded in order on the initial thread and on two concurrent workers. A write on one thread must not reach another thread's copy or the template in the loaded image. Negative controls patch copies of the built DLL: swapped callback entries and a template whose second page is zeroed. Both must be rejected with a diagnostic under both loaders. - **Related work:** #78 (callbacks in Windows order), #103, #172, #426, #523 (main/worker TLS values), #543, #698 (carrier DLL for TLS templates), #759, and baseline #165. `cpu_native_tls_data` (`tests/cpu/tls_data.cpp`) already covers data kinds without explicit callbacks, so this does not duplicate it. I'll report the tested commit, commands and results here with the PR link. **Parallel work:** #872 (one-command console-EXE conversion driver) is a different #870 stage. This slice covers loader TLS template and callback initialization only and does not overlap its stages or files.
rasptum commented 2026-11-24 06:49:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T15:44:12Z.


Loader TLS slice result: #883.

Tested: commit 02cd2ac (branch rebased on origin/main). Windows 10 Pro 10.0.19045.6466 (cmd /c ver), MSVC 19.44.35207.1 x64, CMake/Ninja. Source-built inputs only.

Commands:

cmake --preset dev
cmake --build --preset dev --target pe_map cpu_tls_value cpu_tls_original cpu_tls_sink
ctest --preset dev --no-tests=error -R '^cpu_native_tls_value$' -V

The same three commands with release, then tests/form_coverage_check.py, tests/docs_links_check.py and tests/bidi_controls_check.py.

Expected vs observed:

  • Template spans a page boundary: dev RVA 0x6e8c0, 8224 bytes, boundary RVA 0x6f000. Release RVA 0x16290, boundary RVA 0x17000. The words on each side are distinct. Observed as expected.

  • Callback order: on every notification (process attach and detach on the initial thread, thread attach and detach on two concurrent workers), both loaders call caller 1, then caller 3, then the entry point. The table order is 1, 3. Native and pe_map per-thread sequences are equal.

  • Values: every callback and entry-point call on attach sees a fresh template copy (7, no changed words). The initial thread writes 20, worker A writes 50 and worker B writes 60, and each write stays on its own thread. B starts after A's write and still sees the template. A still sees 50 after B's write. The template in the loaded image matches the file at the end. Observed under both loaders, in dev and release.

  • Negative controls, both rejected under native and pe_map, in both presets:

    • swapped callback table entries → callback order: ('main', 1) ran callers [3, 1, 2]
    • template zeroed from its first page boundary → template: main observed 0x6380007, expected 0x7 (1592 words differ in dev, 1196 in release)

    A mutation that removes the order check makes the test fail. No capability skips.

Scope: this checks the TLS stage ahead of the current boundary. Per the 15:20Z and 15:25Z checkpoints, the mapping probe still stops at import binding (#880). This does not move that boundary and makes no claim about the executable's TLS or entry run. The two-callback case was chosen because static intake reported two TLS callbacks. No pe_map.cpp change.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7106028588 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7106028588). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T15:44:12Z. --- Loader TLS slice result: #883. **Tested:** commit `02cd2ac` (branch rebased on `origin/main`). Windows 10 Pro 10.0.19045.6466 (`cmd /c ver`), MSVC 19.44.35207.1 x64, CMake/Ninja. Source-built inputs only. **Commands:** ```powershell cmake --preset dev cmake --build --preset dev --target pe_map cpu_tls_value cpu_tls_original cpu_tls_sink ctest --preset dev --no-tests=error -R '^cpu_native_tls_value$' -V ``` The same three commands with `release`, then `tests/form_coverage_check.py`, `tests/docs_links_check.py` and `tests/bidi_controls_check.py`. **Expected vs observed:** - Template spans a page boundary: dev RVA 0x6e8c0, 8224 bytes, boundary RVA 0x6f000. Release RVA 0x16290, boundary RVA 0x17000. The words on each side are distinct. Observed as expected. - Callback order: on every notification (process attach and detach on the initial thread, thread attach and detach on two concurrent workers), both loaders call caller 1, then caller 3, then the entry point. The table order is 1, 3. Native and `pe_map` per-thread sequences are equal. - Values: every callback and entry-point call on attach sees a fresh template copy (7, no changed words). The initial thread writes 20, worker A writes 50 and worker B writes 60, and each write stays on its own thread. B starts after A's write and still sees the template. A still sees 50 after B's write. The template in the loaded image matches the file at the end. Observed under both loaders, in dev and release. - Negative controls, both rejected under native and `pe_map`, in both presets: - swapped callback table entries → `callback order: ('main', 1) ran callers [3, 1, 2]` - template zeroed from its first page boundary → `template: main observed 0x6380007, expected 0x7` (1592 words differ in dev, 1196 in release) A mutation that removes the order check makes the test fail. No capability skips. **Scope:** this checks the TLS stage ahead of the current boundary. Per the 15:20Z and 15:25Z checkpoints, the mapping probe still stops at import binding (#880). This does not move that boundary and makes no claim about the executable's TLS or entry run. The two-callback case was chosen because static intake reported two TLS callbacks. No `pe_map.cpp` change.
triggered02 commented 2026-11-24 06:49:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T15:48:03Z.


Independent local binding checkpoint, not a startup claim.

Environment: Windows 11 Pro 26200, Ryzen 5 5500, GTX 1660 SUPER driver 32.0.16.1074, MSVC 19.52, DXC 10.0.26100. Repository at fc89b9e plus merged #879; the probe shim is the local xmem-physical-pages branch (7dcc36d, 3d206a1).

Static, file reads only: the package's main executable is AMD64 PE32+ with its entry in .text and two TLS callbacks. It has 68 import modules and 587 import symbols. With it present, pe_inventory.py reports 17 PE images and 1,924 import edges; 1,807 imports resolve to a desktop provider and 117 report provider not found. xmem_attribute_scan.py reports 6 XMemAlloc/XMemFree sites, 0 constant words, 0 constant-null, and 6 locations whose attribute path is not fully constant.

Bounded binding probe: a child process called pe_map_image with a System32 resolver plus the built desktop xmem.dll and d3d12_xs.dll. It bound 171 imports, returned mapper status 5, and stopped at unresolved import xmem.dll!XMemIsToolsMemAvailable. No pe_map_run, TLS callback or entry point was executed.

Observation: #879 binds the default pair; the local physical-page pair binds XMemAllocatePhysicalPages and XMemFreePhysicalPages and moves the first blocker past them. Hypothesis: XMemIsToolsMemAvailable is the next import contract; its semantics are not established here. #880 is claimed by rasptum, so the branch is independent probe evidence, not a competing implementation.

The candidate-specific probe is local-only. The shim side has a public, source-built reproduction: cpu_native_xmem_physical in the branch. Sanitized: no game files, names, paths, hashes, dumps or private logs.

AI-assisted probe.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7106127889 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7106127889). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T15:48:03Z. --- Independent local binding checkpoint, not a startup claim. Environment: Windows 11 Pro 26200, Ryzen 5 5500, GTX 1660 SUPER driver 32.0.16.1074, MSVC 19.52, DXC 10.0.26100. Repository at `fc89b9e` plus merged #879; the probe shim is the local `xmem-physical-pages` branch (7dcc36d, 3d206a1). Static, file reads only: the package's main executable is AMD64 PE32+ with its entry in `.text` and two TLS callbacks. It has 68 import modules and 587 import symbols. With it present, `pe_inventory.py` reports 17 PE images and 1,924 import edges; 1,807 imports resolve to a desktop provider and 117 report provider not found. `xmem_attribute_scan.py` reports 6 XMemAlloc/XMemFree sites, 0 constant words, 0 constant-null, and 6 locations whose attribute path is not fully constant. Bounded binding probe: a child process called `pe_map_image` with a System32 resolver plus the built desktop `xmem.dll` and `d3d12_xs.dll`. It bound 171 imports, returned mapper status 5, and stopped at `unresolved import xmem.dll!XMemIsToolsMemAvailable`. No `pe_map_run`, TLS callback or entry point was executed. Observation: #879 binds the default pair; the local physical-page pair binds `XMemAllocatePhysicalPages` and `XMemFreePhysicalPages` and moves the first blocker past them. Hypothesis: `XMemIsToolsMemAvailable` is the next import contract; its semantics are not established here. #880 is claimed by rasptum, so the branch is independent probe evidence, not a competing implementation. The candidate-specific probe is local-only. The shim side has a public, source-built reproduction: `cpu_native_xmem_physical` in the branch. Sanitized: no game files, names, paths, hashes, dumps or private logs. AI-assisted probe.
triggered02 commented 2026-11-24 06:49:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T16:00:02Z.


Next-boundary evidence for XMemIsToolsMemAvailable. This is evidence, not a shim proposal.

The public reimplementation at omonkeyz/xbox-emulator f89e410 implements it in crates/compat/xmem/src/stats.rs:355 as tools_available(false), and its transfer_memory_follows_console_flow test asserts 0 (FALSE) on a desktop. The same file (stats.rs:330-352) records the console flow: console mode 0x68 permits TRUE only after the tools partition handle succeeds; system type 0x60 returns FALSE; otherwise it reads the device tools flag (IOCTL 0x1500e8), which has no PC device and stays unset.

A desktop shim without a tools partition should therefore return FALSE. A source-built fixture could import XMemIsToolsMemAvailable by name, call it twice, and assert FALSE with no state change; that would advance the binding probe past this import.

The local probe still stops here: 171 imports bound, status 5, unresolved import xmem.dll!XMemIsToolsMemAvailable. I have not changed the shim. Should this be a separate slice after #880, or wait for rasptum's physical-page work?

AI-assisted evidence.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7106449494 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7106449494). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T16:00:02Z. --- Next-boundary evidence for `XMemIsToolsMemAvailable`. This is evidence, not a shim proposal. The public reimplementation at omonkeyz/xbox-emulator `f89e410` implements it in `crates/compat/xmem/src/stats.rs:355` as `tools_available(false)`, and its `transfer_memory_follows_console_flow` test asserts 0 (FALSE) on a desktop. The same file (`stats.rs:330-352`) records the console flow: console mode 0x68 permits TRUE only after the tools partition handle succeeds; system type 0x60 returns FALSE; otherwise it reads the device tools flag (IOCTL 0x1500e8), which has no PC device and stays unset. A desktop shim without a tools partition should therefore return FALSE. A source-built fixture could import `XMemIsToolsMemAvailable` by name, call it twice, and assert FALSE with no state change; that would advance the binding probe past this import. The local probe still stops here: 171 imports bound, status 5, `unresolved import xmem.dll!XMemIsToolsMemAvailable`. I have not changed the shim. Should this be a separate slice after #880, or wait for rasptum's physical-page work? AI-assisted evidence.
descent81 commented 2026-11-24 06:49:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by descent81 on 2026-11-23T16:03:22Z.


I'll take the reserve-only desktop XMemVirtualAlloc startup slice on Windows x64. It adds the named export and a source-built native/pe_map comparison for aligned, uncommitted address-space reservations, rollback on refusal and release/reuse. It uses the two call shapes reported in #874 as the scope for a proposed desktop policy. This touches the xmem export table shared with #880, so I'll preserve existing ordinals and keep physical pages and the D3D12 configuration export out of the change. I'll coordinate the merge order in the PR.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7106536522 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7106536522). Originally posted by [descent81](https://github.com/descent81) on 2026-11-23T16:03:22Z. --- I'll take the reserve-only desktop `XMemVirtualAlloc` startup slice on Windows x64. It adds the named export and a source-built native/pe_map comparison for aligned, uncommitted address-space reservations, rollback on refusal and release/reuse. It uses the two call shapes reported in #874 as the scope for a proposed desktop policy. This touches the xmem export table shared with #880, so I'll preserve existing ordinals and keep physical pages and the D3D12 configuration export out of the change. I'll coordinate the merge order in the PR.
R0Y00 commented 2026-11-24 06:49:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:04:02Z.


Please keep the production XMem edit behind #880 and the current startup integration. A source-built caller/recording-provider fixture can proceed independently: import the name and record both BOOL outcomes and what the caller does next. Make the desktop-without-a-tools-partition case explicit. The cited reimplementation checks one console mode before its partition lookup, so its desktop result alone does not settle the console ordering or show that this startup caller can continue on FALSE.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7106553925 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7106553925). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T16:04:02Z. --- Please keep the production XMem edit behind #880 and the current startup integration. A source-built caller/recording-provider fixture can proceed independently: import the name and record both BOOL outcomes and what the caller does next. Make the desktop-without-a-tools-partition case explicit. The cited reimplementation checks one console mode before its partition lookup, so its desktop result alone does not settle the console ordering or show that this startup caller can continue on FALSE.
rasptum commented 2026-11-24 06:49:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T16:15:00Z.


Physical-page slice (#880): #892.

Tested behavior: the desktop xmem.dll now exports XMemAllocatePhysicalPages/XMemFreePhysicalPages. A source-built EXE that imports them by name gives the same exit code under the Windows loader and under pe_map_run. Mutation variants and a missing-provider control fail as expected. 19/19 in dev and in release on Windows 10 19045, commit 729bfa1. The Microsoft samples establish the 64 KiB pairing, the in/out count with a page array, and the BOOL result. Failure-state and release rules are proposed desktop policy.

Open questions:

  • Flag width.
  • The value and units of XMEM_2MB_CLUSTERS.
  • Count and array state on failure.
  • Partial grants and partial release.
  • Page-number meaning, error codes and budget.

triggered02 reported (their observation, from a local probe with both pairs bound) that the next unresolved import is xmem.dll!XMemIsToolsMemAvailable. I have not reproduced it. No pe_map_run, TLS callback or entry point of the executable was run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7106841758 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7106841758). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T16:15:00Z. --- Physical-page slice (#880): #892. **Tested behavior:** the desktop `xmem.dll` now exports `XMemAllocatePhysicalPages`/`XMemFreePhysicalPages`. A source-built EXE that imports them by name gives the same exit code under the Windows loader and under `pe_map_run`. Mutation variants and a missing-provider control fail as expected. 19/19 in dev and in release on Windows 10 19045, commit `729bfa1`. The Microsoft samples establish the 64 KiB pairing, the in/out count with a page array, and the BOOL result. Failure-state and release rules are proposed desktop policy. **Open questions:** - Flag width. - The value and units of `XMEM_2MB_CLUSTERS`. - Count and array state on failure. - Partial grants and partial release. - Page-number meaning, error codes and budget. triggered02 reported (their observation, from a local probe with both pairs bound) that the next unresolved import is `xmem.dll!XMemIsToolsMemAvailable`. I have not reproduced it. No `pe_map_run`, TLS callback or entry point of the executable was run. AI-assisted (Claude Code).
rasptum commented 2026-11-24 06:49:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T16:23:40Z.


@triggered02 thanks for the probe and the reimplementation citation. Following R0Y00's 16:04Z note, I'll take the fixture-only slice for xmem.dll!XMemIsToolsMemAvailable.

  • Scope: a source-built caller EXE that imports the name, plus a test-only recording provider DLL that exports it with a configurable BOOL and counts calls. No production xmem.dll edit until #880/#892 lands; src/xmem_shim.* is untouched.
  • Interface: BOOL XMemIsToolsMemAvailable(void) as imported by name, served by the recording provider. The caller runs under the Windows loader and under pe_map_image/pe_map_run (tools/pe_map.cpp), and the check compares them.
  • Checks: the import table and mapped resolver see the name; for TRUE and for FALSE the caller's next step is recorded and matches native vs mapped. FALSE (desktop without a tools partition) is an explicit case, and repeated calls change no state. Negative controls: a provider missing the export fails before entry, and a swapped outcome changes the recorded path.
  • Labels: FALSE-on-desktop is proposed desktop policy. This does not settle console ordering or show that the startup caller continues on FALSE.
  • Environment: Windows 10 Pro 10.0.19045, MSVC (VS 2022) x64, CMake/Ninja, dev and release presets.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107066125 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7107066125). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T16:23:40Z. --- @triggered02 thanks for the probe and the reimplementation citation. Following R0Y00's 16:04Z note, I'll take the fixture-only slice for `xmem.dll!XMemIsToolsMemAvailable`. - **Scope:** a source-built caller EXE that imports the name, plus a test-only recording provider DLL that exports it with a configurable BOOL and counts calls. No production `xmem.dll` edit until #880/#892 lands; `src/xmem_shim.*` is untouched. - **Interface:** `BOOL XMemIsToolsMemAvailable(void)` as imported by name, served by the recording provider. The caller runs under the Windows loader and under `pe_map_image`/`pe_map_run` (`tools/pe_map.cpp`), and the check compares them. - **Checks:** the import table and mapped resolver see the name; for TRUE and for FALSE the caller's next step is recorded and matches native vs mapped. FALSE (desktop without a tools partition) is an explicit case, and repeated calls change no state. Negative controls: a provider missing the export fails before entry, and a swapped outcome changes the recorded path. - **Labels:** FALSE-on-desktop is proposed desktop policy. This does not settle console ordering or show that the startup caller continues on FALSE. - **Environment:** Windows 10 Pro 10.0.19045, MSVC (VS 2022) x64, CMake/Ninja, `dev` and `release` presets. AI-assisted (Claude Code).
triggered02 commented 2026-11-24 06:49:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T16:29:03Z.


Source-built caller/recording-provider fixture is in #900. It records both outcomes and the synthetic caller's next path: 0x7b11 for a tools partition and 0x7a21 for desktop without a tools partition, with native and pe_map matching. The withheld-provider control stops before entry. No production xmem edit is included. The fixture does not claim the console ordering or that the real startup caller continues on FALSE; that remains open.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107204046 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7107204046). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T16:29:03Z. --- Source-built caller/recording-provider fixture is in #900. It records both outcomes and the synthetic caller's next path: `0x7b11` for a tools partition and `0x7a21` for desktop without a tools partition, with native and `pe_map` matching. The withheld-provider control stops before entry. No production `xmem` edit is included. The fixture does not claim the console ordering or that the real startup caller continues on FALSE; that remains open. AI-assisted.
triggered02 commented 2026-11-24 06:49:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T16:29:45Z.


Opened #900 before seeing rasptum's 16:23Z claim; closing it to avoid duplicate review. The branch and tested fixture remain available for rasptum to reuse or credit. No production xmem edit was included.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107221917 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7107221917). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T16:29:45Z. --- Opened #900 before seeing rasptum's 16:23Z claim; closing it to avoid duplicate review. The branch and tested fixture remain available for rasptum to reuse or credit. No production xmem edit was included.
rasptum commented 2026-11-24 06:49:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T16:30:39Z.


@triggered02 thanks, and sorry for the crossed timing. Your #900 was finished and tested before my claim landed, so please reopen it. I'm releasing the XMemIsToolsMemAvailable slice to you and won't open a competing PR. Happy to review #900 once it's back up.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107245560 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7107245560). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T16:30:39Z. --- @triggered02 thanks, and sorry for the crossed timing. Your #900 was finished and tested before my claim landed, so please reopen it. I'm releasing the `XMemIsToolsMemAvailable` slice to you and won't open a competing PR. Happy to review #900 once it's back up. AI-assisted (Claude Code).
triggered02 commented 2026-11-24 06:49:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T16:37:06Z.


Consolidating the tools-memory fixture into Holastor's #896, which the maintainer reviewed with the finish_exe/mapped-count guidance. I closed my duplicate #900; the branch and tested results remain available.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107412259 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7107412259). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T16:37:06Z. --- Consolidating the tools-memory fixture into Holastor's #896, which the maintainer reviewed with the `finish_exe`/mapped-count guidance. I closed my duplicate #900; the branch and tested results remain available.
R0Y00 commented 2026-11-24 06:49:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:34:54Z.


Thanks to Holastor and triggered02 for the independent fixtures in #896 and #900, and to rasptum for coordinating ownership. Following triggered02's consolidation note below, #896 is the single landing PR. The shared acceptance is both controlled BOOL outcomes under Windows and pe_map, with the selected path and call count checked in each process, repeated calls to check consistency, and a missing-provider control before entry. The native child should exit cleanly with a live worker and the same EXE should still return to the mapped host. #900's independent recorded outcomes and missing-provider result are linked from its closing comment. Production tools-memory behavior remains a separate question.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107353824 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7107353824). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T16:34:54Z. --- Thanks to Holastor and triggered02 for the independent fixtures in #896 and #900, and to rasptum for coordinating ownership. Following triggered02's consolidation note below, #896 is the single landing PR. The shared acceptance is both controlled BOOL outcomes under Windows and pe_map, with the selected path and call count checked in each process, repeated calls to check consistency, and a missing-provider control before entry. The native child should exit cleanly with a live worker and the same EXE should still return to the mapped host. #900's independent recorded outcomes and missing-provider result are linked from its closing comment. Production tools-memory behavior remains a separate question.
R0Y00 commented 2026-11-24 06:49:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:45:27Z.


Two startup prerequisites landed with source-built evidence. #892 adds the desktop allocation/release registry for 64 KiB page identifiers, with ownership, count and missing-export controls under both loaders (#880 completed). #899 verifies loader-time initialization of the default x64 cookie with a CRT-free DLL and EXE. #891 also recorded the configuration input and reservation-call order; the production configuration effect remains open in #874. #896 is the consolidated tools-memory fixture. Its two controlled BOOL outcomes are evidence about the fixture; production behavior stays open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107623814 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7107623814). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T16:45:27Z. --- Two startup prerequisites landed with source-built evidence. #892 adds the desktop allocation/release registry for 64 KiB page identifiers, with ownership, count and missing-export controls under both loaders (#880 completed). #899 verifies loader-time initialization of the default x64 cookie with a CRT-free DLL and EXE. #891 also recorded the configuration input and reservation-call order; the production configuration effect remains open in #874. #896 is the consolidated tools-memory fixture. Its two controlled BOOL outcomes are evidence about the fixture; production behavior stays open.
rasptum commented 2026-11-24 06:49:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T16:52:48Z.


Withdrawn: posted by mistake after the slice was released. #896 is the single landing PR, and #911 is closed as a duplicate.

Original comment

XMemIsToolsMemAvailable caller/recording-provider fixture: #911. It is fixture-only. There is no xmem.dll change.

Tested: commit 270359e, Windows 10 Pro 10.0.19045.6466, MSVC 19.44 x64, dev and release. CTest cpu_native_xmem_tools_mem_caller passed 1/1 in each preset.

  • The import table lists the name, not an ordinal, and the pe_map resolver requests it.
  • FALSE (desktop without a tools partition, proposed desktop policy): three calls, each 0. The caller takes the no-tools branch (0x7100) under both the Windows loader and pe_map, with identical call records.
  • TRUE: three calls, each 1. The caller takes the tools branch (0x7101) under both loaders.
  • Controls under both loaders:
    • an alternating answer fails at the repeat check (0xf02);
    • an unconfigured provider fails at step 1 (0xf01);
    • swapping the outcome changes the branch;
    • a provider without the export stops before entry (0xc0000139 / unresolved import xmem.dll!XMemIsToolsMemAvailable) with no calls.

Thanks to triggered02 for the evidence behind the FALSE choice. This does not settle the console ordering, and it does not show that the real startup caller continues on FALSE. The binding boundary has not moved.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107813297 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7107813297). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T16:52:48Z. --- **Withdrawn:** posted by mistake after the slice was released. #896 is the single landing PR, and #911 is closed as a duplicate. <details><summary>Original comment</summary> `XMemIsToolsMemAvailable` caller/recording-provider fixture: #911. It is fixture-only. There is no `xmem.dll` change. **Tested:** commit `270359e`, Windows 10 Pro 10.0.19045.6466, MSVC 19.44 x64, `dev` and `release`. CTest `cpu_native_xmem_tools_mem_caller` passed 1/1 in each preset. - The import table lists the name, not an ordinal, and the `pe_map` resolver requests it. - FALSE (desktop without a tools partition, proposed desktop policy): three calls, each 0. The caller takes the no-tools branch (`0x7100`) under both the Windows loader and `pe_map`, with identical call records. - TRUE: three calls, each 1. The caller takes the tools branch (`0x7101`) under both loaders. - Controls under both loaders: - an alternating answer fails at the repeat check (`0xf02`); - an unconfigured provider fails at step 1 (`0xf01`); - swapping the outcome changes the branch; - a provider without the export stops before entry (`0xc0000139` / `unresolved import xmem.dll!XMemIsToolsMemAvailable`) with no calls. Thanks to triggered02 for the evidence behind the FALSE choice. This does not settle the console ordering, and it does not show that the real startup caller continues on FALSE. The binding boundary has not moved. AI-assisted (Claude Code). </details>
R0Y00 commented 2026-11-24 06:49:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T17:17:16Z.


@thegl0w, please take the first shared-backing implementation as you proposed on #880. @stan495 agreed to leave you this slice, and the earlier #901 controls are available as review evidence. Start with the contiguous 64 KiB path and tie backing lifetime to #892's live grants. #902 is the source-built call recorder. The implementation needs its own controls: map one granted page at two reserved addresses, write through either address and read through the other, then unmap/remap and check the bytes persist while the grant is live. An unowned page or mixed invalid release must fail with existing mappings, bytes and live grants intact. State and test what release does while views remain active. Scatter, transfer and the reservation policy can follow separately. Please keep #874's device configuration investigation independent and share source-built traces only.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7108433811 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7108433811). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T17:17:16Z. --- @thegl0w, please take the first shared-backing implementation as you proposed on #880. @stan495 agreed to leave you this slice, and the earlier #901 controls are available as review evidence. Start with the contiguous 64 KiB path and tie backing lifetime to #892's live grants. #902 is the source-built call recorder. The implementation needs its own controls: map one granted page at two reserved addresses, write through either address and read through the other, then unmap/remap and check the bytes persist while the grant is live. An unowned page or mixed invalid release must fail with existing mappings, bytes and live grants intact. State and test what release does while views remain active. Scatter, transfer and the reservation policy can follow separately. Please keep #874's device configuration investigation independent and share source-built traces only.
Jess-Doit commented 2026-11-24 06:49:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T17:31:17Z.


Independent import-binding check on Windows 10 22H2 (19045.6456), MSVC 19.44 x64, Release. I ran pe_map_image in a fresh child with System32 and the source-built desktop xmem.dll and d3d12_xs.dll from each revision.

Revision Bound imports First unresolved import
main at a8a88e1 171 xmem.dll!XMemIsToolsMemAvailable
#923 at cba6969 172 xmem.dll!XMemMapPhysicalPages
Same #923 build, with only the tools-memory export withheld by the resolver 171 xmem.dll!XMemIsToolsMemAvailable

All cases returned mapper status 5. A second run of each unmodified build reproduced the result. The five shared XMem shim checks passed on both revisions, and the new tools-memory check passed on #923.

This confirms that #923 advances binding to the contiguous mapping import exercised by #902. No TLS callback, entry point, or imported function in the mapped EXE ran. The result leaves the production mapping work with the existing #880 follow-up.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7108780148 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7108780148). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T17:31:17Z. --- Independent import-binding check on Windows 10 22H2 (19045.6456), MSVC 19.44 x64, Release. I ran `pe_map_image` in a fresh child with System32 and the source-built desktop `xmem.dll` and `d3d12_xs.dll` from each revision. | Revision | Bound imports | First unresolved import | | --- | ---: | --- | | `main` at `a8a88e1` | 171 | `xmem.dll!XMemIsToolsMemAvailable` | | #923 at `cba6969` | 172 | `xmem.dll!XMemMapPhysicalPages` | | Same #923 build, with only the tools-memory export withheld by the resolver | 171 | `xmem.dll!XMemIsToolsMemAvailable` | All cases returned mapper status 5. A second run of each unmodified build reproduced the result. The five shared XMem shim checks passed on both revisions, and the new tools-memory check passed on #923. This confirms that #923 advances binding to the contiguous mapping import exercised by #902. No TLS callback, entry point, or imported function in the mapped EXE ran. The result leaves the production mapping work with the existing #880 follow-up. AI-assisted (Codex).
R0Y00 commented 2026-11-24 06:49:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T17:31:32Z.


#902 is merged and available as the source-built caller and recorder. @thegl0w, the local Windows prototype also gives the production tests a small data-plane control: allocate two 64 KiB pages, map them contiguously, write distinct words (0x123 and 0x456), then scatter the same two pages to two reservations in reverse order and check both words there. Write through the second view and verify the first sees it. Try a scatter with a valid page first and an unowned page second, check the existing view and that the first new destination remains reusable, then unmap and remap to verify both words persist. The prototype refuses release while a view is active, accepts it after unmapping, and refuses later use of the released identifiers. Please run the equivalent controls against the production #892 grant registry. Keep that lifetime policy explicit and test it separately from the #902 recording assertions. If you find evidence for XMemTransferMemory, record the partition and observable effect separately before adding the export.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7108786021 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7108786021). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T17:31:32Z. --- #902 is merged and available as the source-built caller and recorder. @thegl0w, the local Windows prototype also gives the production tests a small data-plane control: allocate two 64 KiB pages, map them contiguously, write distinct words (0x123 and 0x456), then scatter the same two pages to two reservations in reverse order and check both words there. Write through the second view and verify the first sees it. Try a scatter with a valid page first and an unowned page second, check the existing view and that the first new destination remains reusable, then unmap and remap to verify both words persist. The prototype refuses release while a view is active, accepts it after unmapping, and refuses later use of the released identifiers. Please run the equivalent controls against the production #892 grant registry. Keep that lifetime policy explicit and test it separately from the #902 recording assertions. If you find evidence for XMemTransferMemory, record the partition and observable effect separately before adding the export.
R0Y00 commented 2026-11-24 06:49:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T17:39:42Z.


A source-built EXE → DLL → DLL package loaded in the local startup check. Three interfaces can now move in parallel with that check.

  • XMem mapping. @thegl0w still owns the production mapping slice. If the #902 contributors can help, please reuse its recorder for call shape and add the two-address alias readback and rollback checks from the comment above against the same #892 grant registry. Keep transfer separate until there is evidence for its partition and observable effect.
  • Graphics configuration and XG. Please continue the configuration work in #874 using the device and shared-range cases from #912. For an XG helper, first show the Windows resource or layout behavior a source-built caller can observe, with a mismatched-input control. Keep XG observations separate from the configuration result.
  • Audio. Runtime contributors are welcome to inventory which imports have public signatures and a usable desktop replacement, and which still need evidence. A small caller should demonstrate one observable result and a refusal case before any production binding. Leave unresolved imports explicit.

Please post public interface references or source-built results in the existing threads.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7108988591 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7108988591). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T17:39:42Z. --- A source-built EXE → DLL → DLL package loaded in the local startup check. Three interfaces can now move in parallel with that check. - **XMem mapping.** @thegl0w still owns the production mapping slice. If the #902 contributors can help, please reuse its recorder for call shape and add the two-address alias readback and rollback checks from the comment above against the same #892 grant registry. Keep transfer separate until there is evidence for its partition and observable effect. - **Graphics configuration and XG.** Please continue the configuration work in #874 using the device and shared-range cases from #912. For an XG helper, first show the Windows resource or layout behavior a source-built caller can observe, with a mismatched-input control. Keep XG observations separate from the configuration result. - **Audio.** Runtime contributors are welcome to inventory which imports have public signatures and a usable desktop replacement, and which still need evidence. A small caller should demonstrate one observable result and a refusal case before any production binding. Leave unresolved imports explicit. Please post public interface references or source-built results in the existing threads.
rasptum commented 2026-11-24 06:49:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T17:45:22Z.


Taking the audio slice from the 17:39Z note, unless someone already has it.

  • Scope: inventory first, then at most one caller. The inventory covers the 19 audio-side imports that are still unresolved in binding probes: chad.dll (5 XDsp*), xapu.dll (5 XApu*) and acphal.dll (9 AcpHal*/Apu*). For each import it records the public signature source (pinned URL or commit, or none), a candidate desktop replacement (or "none known"), and a status: signature and replacement, signature only, or needs evidence. Imports without a public signature stay explicitly unresolved, with no guessed signatures.
  • Caller (only if the evidence supports one): a source-built EXE and a test-only recording provider for the single best-evidenced import or pair. It shows one observable result and one refusal case under the Windows loader and pe_map, following the #896/#902 recorder pattern. There is no production chad/xapu/acphal shim, and any desktop behavior is labelled proposed policy.
  • Interface: the import names above, bound by name. Milestone: #870 startup prerequisites (audio).
  • Environment: Windows 10 Pro 10.0.19045, MSVC (VS 2022) x64, CMake/Ninja, dev and release presets.

If the public evidence is too thin for a caller, I'll post only the inventory here.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109133493 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109133493). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T17:45:22Z. --- Taking the audio slice from the 17:39Z note, unless someone already has it. - **Scope:** inventory first, then at most one caller. The inventory covers the 19 audio-side imports that are still unresolved in binding probes: `chad.dll` (5 `XDsp*`), `xapu.dll` (5 `XApu*`) and `acphal.dll` (9 `AcpHal*`/`Apu*`). For each import it records the public signature source (pinned URL or commit, or none), a candidate desktop replacement (or "none known"), and a status: signature and replacement, signature only, or needs evidence. Imports without a public signature stay explicitly unresolved, with no guessed signatures. - **Caller (only if the evidence supports one):** a source-built EXE and a test-only recording provider for the single best-evidenced import or pair. It shows one observable result and one refusal case under the Windows loader and `pe_map`, following the #896/#902 recorder pattern. There is no production `chad`/`xapu`/`acphal` shim, and any desktop behavior is labelled proposed policy. - **Interface:** the import names above, bound by name. Milestone: #870 startup prerequisites (audio). - **Environment:** Windows 10 Pro 10.0.19045, MSVC (VS 2022) x64, CMake/Ninja, `dev` and `release` presets. If the public evidence is too thin for a caller, I'll post only the inventory here. AI-assisted (Claude Code).
Holastor commented 2026-11-24 06:49:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T17:46:06Z.


Evidence for XMemTransferMemory and working-set selector 0x2000000a

Following @R0Y00's note regarding XMemTransferMemory, here is the call-site evidence and observable ABI contract observed in static intake:

1. Context and Sequence

The call occurs in an out-of-memory recovery routine (triggered when an allocation or I/O operation returns ERROR_NOT_ENOUGH_MEMORY / 0x8007000e):

  1. Prerequisite query: XMemIsToolsMemAvailable() is verified first. If zero is returned, execution aborts (int3).
  2. Working-set statistics (0x2000000a): XMemGetWorkingSetStatistics is called with selector ecx = 0x2000000a and a 128-byte stack buffer (rdx). A return value of zero (FALSE) aborts (int3).
    • The caller evaluates structure fields at +0x10 (budget total, qword) and +0x18 (budget current usage, qword).
    • If the difference total - usage is non-zero, it rounds up the byte count to a 2 MiB boundary (+0x1fffff & ~0x1fffff) and clamps to a 16 MiB maximum (0x1000000).
  3. Memory transfer:
    • rcx: 1 (partition selector; 1 indicates transfer from tools/devkit memory partition to the title partition).
    • rdx: transfer size in bytes (2 MiB-aligned, \le 16 MiB).
    • Volatile registers r8 and r9 are unreferenced in this call sequence (2-parameter ABI).
    • Return value: BOOL in eax (test eax, eax; jne continue; int3). Non-zero indicates success; FALSE triggers an immediate abort.

Claim: XMemTransferMemory Source-Built Contract Fixture

  • Stage: xmem.dll!XMemTransferMemory ABI contract and call recorder.
  • Scope: Fixture-only. No modifications to src/xmem_shim.*.
  • Interface: BOOL XMemTransferMemory(UINT32 partition, UINT64 byte_count) in tests/cpu/transfer_mem_provider.cpp recorded by tests/cpu/transfer_mem_caller.asm.
  • Plan:
    • Dual-runner execution under both native Windows loader and tools/pe_map.cpp.
    • Process lifecycle control using tests/cpu/exe_startup.asm and cpu_exe_io!finish_exe.
    • Live worker thread validation under CPU_CRC_TEST_LIVE_WORKER=1.
    • Call counter and argument verification (partition == 1, valid size and 2 MiB alignment).
    • Negative controls:
      1. Invalid partition identifier (e.g. partition 0 or 2).
      2. Swapped / invalid byte count (e.g. unaligned size or exceeding boundary).
      3. Missing export withholding (verifying loader rejection before entry).
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109151294 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109151294). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T17:46:06Z. --- ### Evidence for `XMemTransferMemory` and working-set selector `0x2000000a` Following @R0Y00's note regarding `XMemTransferMemory`, here is the call-site evidence and observable ABI contract observed in static intake: #### 1. Context and Sequence The call occurs in an out-of-memory recovery routine (triggered when an allocation or I/O operation returns `ERROR_NOT_ENOUGH_MEMORY` / `0x8007000e`): 1. **Prerequisite query:** `XMemIsToolsMemAvailable()` is verified first. If zero is returned, execution aborts (`int3`). 2. **Working-set statistics (`0x2000000a`):** `XMemGetWorkingSetStatistics` is called with selector `ecx = 0x2000000a` and a 128-byte stack buffer (`rdx`). A return value of zero (`FALSE`) aborts (`int3`). - The caller evaluates structure fields at `+0x10` (budget total, qword) and `+0x18` (budget current usage, qword). - If the difference `total - usage` is non-zero, it rounds up the byte count to a 2 MiB boundary (`+0x1fffff & ~0x1fffff`) and clamps to a 16 MiB maximum (`0x1000000`). 3. **Memory transfer:** - `rcx`: `1` (partition selector; 1 indicates transfer from tools/devkit memory partition to the title partition). - `rdx`: transfer size in bytes (2 MiB-aligned, $\le$ 16 MiB). - Volatile registers `r8` and `r9` are unreferenced in this call sequence (2-parameter ABI). - Return value: `BOOL` in `eax` (`test eax, eax; jne continue; int3`). Non-zero indicates success; `FALSE` triggers an immediate abort. --- ### Claim: `XMemTransferMemory` Source-Built Contract Fixture - **Stage:** `xmem.dll!XMemTransferMemory` ABI contract and call recorder. - **Scope:** Fixture-only. No modifications to `src/xmem_shim.*`. - **Interface:** `BOOL XMemTransferMemory(UINT32 partition, UINT64 byte_count)` in `tests/cpu/transfer_mem_provider.cpp` recorded by `tests/cpu/transfer_mem_caller.asm`. - **Plan:** - Dual-runner execution under both native Windows loader and `tools/pe_map.cpp`. - Process lifecycle control using `tests/cpu/exe_startup.asm` and `cpu_exe_io!finish_exe`. - Live worker thread validation under `CPU_CRC_TEST_LIVE_WORKER=1`. - Call counter and argument verification (`partition == 1`, valid size and 2 MiB alignment). - Negative controls: 1. Invalid partition identifier (e.g. partition `0` or `2`). 2. Swapped / invalid byte count (e.g. unaligned size or exceeding boundary). 3. Missing export withholding (verifying loader rejection before entry).
rasptum commented 2026-11-24 06:49:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T17:46:33Z.


Taking the first XG helper slice from the 17:39Z comment: evidence plus a source-built caller first. There is no production xg_xs.dll binding in this slice.

Interface. The XG texture address computer as a caller sees it: describe a 2D texture, create a computer, read GetResourceLayout (SizeBytes, BaseAlignmentBytes, MipLevels, Planes, per-mip offsets and pitch), then write texels at GetTexelElementOffsetBytes. The call shape and field names come from public MIT code, microsoft/DirectXTex Auxiliary/DirectXTexXboxTile.cpp, DirectXTexXboxImage.cpp and DirectXTexXboxDetile.cpp at a8e5dbf. That code calls XGCreateTexture2DComputer, XGComputeOptimalSwizzleMode and GetResourceLayout.

What is and isn't public. I found no public signature or behavior for the two imported names, XGCreateTextureComputer and XGSuggestSwizzleMode, and I won't guess one. The fixture uses repo-local structs that carry the documented field names, not the console ABI. Console swizzle layouts are out of scope.

Deliverable. A test-only provider maps the computer to desktop D3D12 GetCopyableFootprints with linear layout only (proposed desktop policy, labelled as such). A DirectXTex-shaped caller fills a mipmapped texture through it, the provider uploads it to a D3D12 texture, and a bit-exact readback is compared against the source. Controls:

  • an invalid mip count, a zero width, an unlisted format and a non-linear swizzle mode must each be refused;
  • a size-mismatched upload must be refused;
  • writing with a tight-pitch layout must make the readback differ.

Separate _warp and _hardware CTests, with 77 skips reported separately.

Environment. Windows 10 Pro 10.0.19045, MSVC VS2022 x64, dev and release, WARP and RTX 3060. I'm keeping this separate from #874's configuration result.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109162352 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109162352). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T17:46:33Z. --- Taking the first XG helper slice from the 17:39Z comment: evidence plus a source-built caller first. There is no production `xg_xs.dll` binding in this slice. **Interface.** The XG texture address computer as a caller sees it: describe a 2D texture, create a computer, read `GetResourceLayout` (`SizeBytes`, `BaseAlignmentBytes`, `MipLevels`, `Planes`, per-mip offsets and pitch), then write texels at `GetTexelElementOffsetBytes`. The call shape and field names come from public MIT code, [microsoft/DirectXTex `Auxiliary/DirectXTexXboxTile.cpp`, `DirectXTexXboxImage.cpp` and `DirectXTexXboxDetile.cpp` at a8e5dbf](https://github.com/microsoft/DirectXTex/tree/a8e5dbf42909aeeb9fcf9c2ae399ae3c06737379/Auxiliary). That code calls `XGCreateTexture2DComputer`, `XGComputeOptimalSwizzleMode` and `GetResourceLayout`. **What is and isn't public.** I found no public signature or behavior for the two imported names, `XGCreateTextureComputer` and `XGSuggestSwizzleMode`, and I won't guess one. The fixture uses repo-local structs that carry the documented field names, not the console ABI. Console swizzle layouts are out of scope. **Deliverable.** A test-only provider maps the computer to desktop D3D12 `GetCopyableFootprints` with linear layout only (proposed desktop policy, labelled as such). A DirectXTex-shaped caller fills a mipmapped texture through it, the provider uploads it to a D3D12 texture, and a bit-exact readback is compared against the source. Controls: - an invalid mip count, a zero width, an unlisted format and a non-linear swizzle mode must each be refused; - a size-mismatched upload must be refused; - writing with a tight-pitch layout must make the readback differ. Separate `_warp` and `_hardware` CTests, with 77 skips reported separately. **Environment.** Windows 10 Pro 10.0.19045, MSVC VS2022 x64, `dev` and `release`, WARP and RTX 3060. I'm keeping this separate from #874's configuration result. AI-assisted (Claude Code).
Holastor commented 2026-11-24 06:49:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T17:53:12Z.


PR #935 implements the source-built contract fixture and recording provider for xmem.dll!XMemTransferMemory following this slice claim.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109327352 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109327352). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T17:53:12Z. --- PR #935 implements the source-built contract fixture and recording provider for `xmem.dll!XMemTransferMemory` following this slice claim.
thegl0w commented 2026-11-24 06:49:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by thegl0w on 2026-11-23T17:58:49Z.


AI-generated: written with Claude Code; reviewed and posted by thegl0w.

Thanks @R0Y00. I'm keeping the production mapping slice and will build it against #892's grant registry, starting with the contiguous 64 KiB path. #902's recorder covers the call shapes.

The controls I'll include:

  • Map one granted page at two reserved addresses, write through one address and read through the other, then unmap, remap and check the bytes persist.
  • Your two-page control: write 0x123 and 0x456, scatter in reverse order to two reservations, then write through the second view and check the first sees it.
  • An unowned page, or a list that mixes valid and unowned pages, fails and leaves existing mappings, bytes and live grants intact. The first new destination stays reusable.
  • A separate test for an explicit release-while-mapped policy.

Scatter, transfer and the reservation policy stay separate. I'm not starting right away, so I'll post here when work begins. If someone needs this slice sooner, say so and I'll hand it over.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109466470 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109466470). Originally posted by [thegl0w](https://github.com/thegl0w) on 2026-11-23T17:58:49Z. --- > AI-generated: written with Claude Code; reviewed and posted by thegl0w. Thanks @R0Y00. I'm keeping the production mapping slice and will build it against #892's grant registry, starting with the contiguous 64 KiB path. #902's recorder covers the call shapes. The controls I'll include: - Map one granted page at two reserved addresses, write through one address and read through the other, then unmap, remap and check the bytes persist. - Your two-page control: write 0x123 and 0x456, scatter in reverse order to two reservations, then write through the second view and check the first sees it. - An unowned page, or a list that mixes valid and unowned pages, fails and leaves existing mappings, bytes and live grants intact. The first new destination stays reusable. - A separate test for an explicit release-while-mapped policy. Scatter, transfer and the reservation policy stay separate. I'm not starting right away, so I'll post here when work begins. If someone needs this slice sooner, say so and I'll hand it over.
R0Y00 commented 2026-11-24 06:49:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:07:49Z.


#930 and #934 have landed. @thegl0w, thank you for defining the alias and rollback checks. The production implementation is now in #934. If you have a branch underway, please bring over any missing controls or run an independent review of that implementation. Reservation integration continues in #888.

The remaining provider work can proceed in parallel here and in the existing threads.

  • GPU VA and texture layout. @lukaslw-lab, please continue the production configuration effect in #874 from your #912 fixture. Show which later GPU operation observes the configured range and what an invalid configuration leaves intact. @rasptum, please keep the separate XG layout and upload caller you claimed, including the tight-pitch mismatch. XG claim
  • XMem transfer. @Holastor, please keep #935 as the argument recorder and add a source-built caller for the prerequisite and failure paths. Show when a request reaches transfer, when the tools-memory query blocks it, and what failed working-set or transfer calls leave intact. Record the partition effect only when an independent source or test demonstrates it. Transfer evidence
  • Audio. @rasptum has started the inventory. One contributor can take ACP address and memory, and another can take the XApu/XDsp command queue. Please claim one slice here and reuse that inventory. Pin a public signature and show an observable effect and failure case in a source-built caller before binding a production export. Audio inventory claim
  • DirectStorage. A contributor familiar with the Xbox and PC interfaces can claim the factory comparison. Establish the Xbox factory signature and object contract from public evidence, then show a successful request and a refusal with a source-built caller. The same export name on PC is insufficient to establish compatibility.

Please keep local executables and traces private and post source-built results and public references in the linked threads.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109697048 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109697048). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T18:07:49Z. --- #930 and #934 have landed. @thegl0w, thank you for defining the alias and rollback checks. The production implementation is now in #934. If you have a branch underway, please bring over any missing controls or run an independent review of that implementation. Reservation integration continues in #888. The remaining provider work can proceed in parallel here and in the existing threads. - **GPU VA and texture layout.** @lukaslw-lab, please continue the production configuration effect in #874 from your #912 fixture. Show which later GPU operation observes the configured range and what an invalid configuration leaves intact. @rasptum, please keep the separate XG layout and upload caller you claimed, including the tight-pitch mismatch. [XG claim](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109162352) - **XMem transfer.** @Holastor, please keep #935 as the argument recorder and add a source-built caller for the prerequisite and failure paths. Show when a request reaches transfer, when the tools-memory query blocks it, and what failed working-set or transfer calls leave intact. Record the partition effect only when an independent source or test demonstrates it. [Transfer evidence](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109151294) - **Audio.** @rasptum has started the inventory. One contributor can take ACP address and memory, and another can take the XApu/XDsp command queue. Please claim one slice here and reuse that inventory. Pin a public signature and show an observable effect and failure case in a source-built caller before binding a production export. [Audio inventory claim](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109133493) - **DirectStorage.** A contributor familiar with the Xbox and PC interfaces can claim the factory comparison. Establish the Xbox factory signature and object contract from public evidence, then show a successful request and a refusal with a source-built caller. The same export name on PC is insufficient to establish compatibility. Please keep local executables and traces private and post source-built results and public references in the linked threads.
Holastor commented 2026-11-24 06:49:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T18:12:33Z.


Confirmed. PR #935 is updated in 51ad45b as the standalone argument recorder with the ordered six-call trace, changed-first-call control, and explicit test-provider policy labeling.

I will follow up with the prerequisite and failure path caller (transfer_chain_caller) in a separate focused PR once #935 lands:

  • demonstrating tools-memory query blocking (verifying transfer is uncalled when tools-mem reports FALSE);
  • demonstrating failed working-set queries (leaving transfer uncalled and state intact);
  • demonstrating the full sequence reaching transfer when budget is available;
  • isolating transfer failure without mutating prior state.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109819241 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109819241). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T18:12:33Z. --- Confirmed. PR #935 is updated in `51ad45b` as the standalone argument recorder with the ordered six-call trace, changed-first-call control, and explicit test-provider policy labeling. I will follow up with the prerequisite and failure path caller (`transfer_chain_caller`) in a separate focused PR once #935 lands: - demonstrating tools-memory query blocking (verifying transfer is uncalled when tools-mem reports FALSE); - demonstrating failed working-set queries (leaving transfer uncalled and state intact); - demonstrating the full sequence reaching transfer when budget is available; - isolating transfer failure without mutating prior state.
rasptum commented 2026-11-24 06:49:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T18:14:49Z.


Audio inventory and caller: #947. It is fixture-only, with no production chad/xapu/acphal binding.

Inventory of the 19 unresolved imports:

  • Public signature and desktop replacement: none.
  • Partial call shape: acphal.dll!ApuAlloc and !ApuFree, from MIT call sites in DirectXTK12 at f3555e3. These show an HRESULT return, a void** output, a second argument passed as nullptr whose type is not public, a UINT32 size, an alignment constant whose width is not public, and ApuFree(void*) with its result discarded.
  • Needs evidence: the other 17 stay explicitly unresolved: all 5 XDsp*, all 5 XApu*, the 3 AcpHal* calls, ApuCreateHeap, ApuIsVirtualAddressValid, ApuMapApuAddress and ApuMapVirtualAddress. Microsoft's reference pages are NDA-gated. The MIT GDK Learn index confirms the XDsp*/XApu* names but has no signatures. No desktop counterpart is known for the stream, command-queue and SHAPE-context interfaces.

Caller (cpu_native_apu_alloc_caller): it runs against a test-only provider whose 64 KiB arena is proposed policy.

  • Observable result: a 4 KiB block at 2 KiB alignment is returned and read back.
  • Refusal: a 128 KiB request returns E_OUTOFMEMORY and leaves the output untouched.
  • A 64 KiB request is refused while the first block is live and succeeds after ApuFree.
  • The Windows loader and pe_map both exit 0x8A0 with identical recorded results.
  • Controls: a lenient provider stops the caller at the refusal step (0xF02), and withholding either import stops pe_map before entry.

Tested: commit f14e3f6, Windows 10 Pro 10.0.19045.6466, MSVC 19.44 x64. The test passed 1/1 in both dev and release, and the docs link, bidi and hardware-report checks passed. This does not establish the console error codes, the heap size, or any ordering relative to ApuCreateHeap.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109878256 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109878256). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T18:14:49Z. --- Audio inventory and caller: #947. It is fixture-only, with no production `chad`/`xapu`/`acphal` binding. **Inventory of the 19 unresolved imports:** - **Public signature and desktop replacement:** none. - **Partial call shape:** `acphal.dll!ApuAlloc` and `!ApuFree`, from MIT call sites in [DirectXTK12 at `f3555e3`](https://github.com/microsoft/DirectXTK12/tree/f3555e3014a53c81a6202b786dc4d6509b95a936). These show an `HRESULT` return, a `void**` output, a second argument passed as `nullptr` whose type is not public, a `UINT32` size, an alignment constant whose width is not public, and `ApuFree(void*)` with its result discarded. - **Needs evidence:** the other 17 stay explicitly unresolved: all 5 `XDsp*`, all 5 `XApu*`, the 3 `AcpHal*` calls, `ApuCreateHeap`, `ApuIsVirtualAddressValid`, `ApuMapApuAddress` and `ApuMapVirtualAddress`. Microsoft's reference pages are NDA-gated. The MIT [GDK Learn index](https://github.com/microsoft/XBOX-GDK-dotnet/blob/f8c3438aa366fbbb662d8a5e724021a9d0b65f5d/eng/gdk-learn-index.json) confirms the `XDsp*`/`XApu*` names but has no signatures. No desktop counterpart is known for the stream, command-queue and SHAPE-context interfaces. **Caller (`cpu_native_apu_alloc_caller`):** it runs against a test-only provider whose 64 KiB arena is proposed policy. - **Observable result:** a 4 KiB block at 2 KiB alignment is returned and read back. - **Refusal:** a 128 KiB request returns `E_OUTOFMEMORY` and leaves the output untouched. - A 64 KiB request is refused while the first block is live and succeeds after `ApuFree`. - The Windows loader and `pe_map` both exit `0x8A0` with identical recorded results. - **Controls:** a lenient provider stops the caller at the refusal step (`0xF02`), and withholding either import stops `pe_map` before entry. **Tested:** commit `f14e3f6`, Windows 10 Pro 10.0.19045.6466, MSVC 19.44 x64. The test passed 1/1 in both `dev` and `release`, and the docs link, bidi and hardware-report checks passed. This does not establish the console error codes, the heap size, or any ordering relative to `ApuCreateHeap`. AI-assisted (Claude Code).
rasptum commented 2026-11-24 06:49:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T18:16:23Z.


The #947 inventory, grouped by the two sub-areas so a contributor can claim either one. Full table with pinned sources: docs/experiments.md, "Audio-side import inventory", in #947.

ACP address and memory (acphal.dll, 9 imports)

Import Public evidence Status
ApuAlloc DirectXTK12 MIT call sites at f3555e3: HRESULT, void** output, second argument passed as nullptr (type not public), UINT32 size, alignment constant (width not public) partial call shape
ApuFree Same call sites: takes the returned void*; result discarded partial call shape
ApuCreateHeap Named only in a DirectXTK12 diagnostic, as the heap ApuAlloc draws from needs evidence
ApuIsVirtualAddressValid, ApuMapApuAddress, ApuMapVirtualAddress None needs evidence
AcpHalCreate, AcpHalAllocateShapeContexts, AcpHalReleaseShapeContexts None. The MIT GDK Learn index lists only the AcpHal member page. needs evidence

XApu/XDsp command queue (xapu.dll and chad.dll, 10 imports)

Import Public evidence Status
XApuConnect, XApuDisconnect, XApuEnqueueCommand, XApuDequeueResult, XApuGetResultCount MIT GDK Learn index at f8c3438: page paths plus struct and enum names (for example XApuConnectInputParameters, XApuResult). No signatures. needs evidence
XDspConnectWithMaximumStreamLimit, XDspDisconnect, XDspActivate, XDspDeactivate, XDspSubmitCommand Same index: page paths plus XDspActivationParameters, XDspCommand, XDspStreamHandle. No signatures. needs evidence

No desktop counterpart is known for the command queue. Desktop XAudio2 and WASAPI mix and play audio but do not expose this interface, and desktop XAudio2 has no XMA decoder.

My caller in #947 sits in ACP address and memory. It covers ApuAlloc, with ApuFree used only to release that block. I'm not claiming the rest of either sub-area, so both are open for the slices R0Y00 described.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109916577 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109916577). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T18:16:23Z. --- The #947 inventory, grouped by the two sub-areas so a contributor can claim either one. Full table with pinned sources: `docs/experiments.md`, "Audio-side import inventory", in #947. **ACP address and memory (`acphal.dll`, 9 imports)** | Import | Public evidence | Status | |---|---|---| | `ApuAlloc` | DirectXTK12 MIT call sites at `f3555e3`: `HRESULT`, `void**` output, second argument passed as `nullptr` (type not public), `UINT32` size, alignment constant (width not public) | partial call shape | | `ApuFree` | Same call sites: takes the returned `void*`; result discarded | partial call shape | | `ApuCreateHeap` | Named only in a DirectXTK12 diagnostic, as the heap `ApuAlloc` draws from | needs evidence | | `ApuIsVirtualAddressValid`, `ApuMapApuAddress`, `ApuMapVirtualAddress` | None | needs evidence | | `AcpHalCreate`, `AcpHalAllocateShapeContexts`, `AcpHalReleaseShapeContexts` | None. The MIT GDK Learn index lists only the AcpHal member page. | needs evidence | **XApu/XDsp command queue (`xapu.dll` and `chad.dll`, 10 imports)** | Import | Public evidence | Status | |---|---|---| | `XApuConnect`, `XApuDisconnect`, `XApuEnqueueCommand`, `XApuDequeueResult`, `XApuGetResultCount` | [MIT GDK Learn index at `f8c3438`](https://github.com/microsoft/XBOX-GDK-dotnet/blob/f8c3438aa366fbbb662d8a5e724021a9d0b65f5d/eng/gdk-learn-index.json): page paths plus struct and enum names (for example `XApuConnectInputParameters`, `XApuResult`). No signatures. | needs evidence | | `XDspConnectWithMaximumStreamLimit`, `XDspDisconnect`, `XDspActivate`, `XDspDeactivate`, `XDspSubmitCommand` | Same index: page paths plus `XDspActivationParameters`, `XDspCommand`, `XDspStreamHandle`. No signatures. | needs evidence | No desktop counterpart is known for the command queue. Desktop XAudio2 and WASAPI mix and play audio but do not expose this interface, and desktop XAudio2 has no XMA decoder. My caller in #947 sits in **ACP address and memory**. It covers `ApuAlloc`, with `ApuFree` used only to release that block. I'm not claiming the rest of either sub-area, so both are open for the slices R0Y00 described. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:49:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:18:59Z.


Startup integration update from Windows testing. The main executable has not run. The next work has independent checks and can proceed in parallel.

  • Audio lifecycle. The pinned public TomBox f89e4106 builds the three external audio providers. Windows resolved all 19 required exports and the provider suites passed 41 checks using source-built or synthetic inputs. Keep these optional providers separate from the MIT repository. A startup fixture must verify command completion and keep the providers loaded until their worker threads or the child process exit. Please claim this integration check if you can validate it independently.
  • Graphics VA and XG. Continue #874. On hardware and WARP, sparse DEFAULT tiles with an explicit copy from a file-backed staging resource survived remapping and passed readback. Directly using a shared cross-adapter heap as the tile pool triggered D3D12 debug error 493. Next verify where the copy is issued and when the queue sees updates. For XG, start with a source-built swizzle/layout case that distinguishes the requested layout from a linear fallback.
  • DirectStorage. The desktop factory and the older public console provider do not accept the required interface. A source-built Windows check confirmed native auto-submission and verified that staging requests until explicit submission preserves completion behavior. Please claim a typed factory/queue adapter slice with a delayed-submit negative control before exposing the provider.
  • XMem. #945 connects the reserve-only cases from #888 to #934. Continue #935 on transfer behavior. A no-tools desktop may report an unsupported transfer and must never report successful ownership transfer without observable backing.

Claim a slice here or on its existing issue, with the exact source-built inputs, command, adapter/OS where relevant and expected output.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7109979518 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109979518). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T18:18:59Z. --- Startup integration update from Windows testing. The main executable has not run. The next work has independent checks and can proceed in parallel. - **Audio lifecycle.** The pinned public [TomBox f89e4106](https://github.com/omonkeyz/xbox-emulator/tree/f89e4106fe8a1728515afa34ceb5097132cadcda) builds the three external audio providers. Windows resolved all 19 required exports and the provider suites passed 41 checks using source-built or synthetic inputs. Keep these optional providers separate from the MIT repository. A startup fixture must verify command completion and keep the providers loaded until their worker threads or the child process exit. Please claim this integration check if you can validate it independently. - **Graphics VA and XG.** Continue #874. On hardware and WARP, sparse DEFAULT tiles with an explicit copy from a file-backed staging resource survived remapping and passed readback. Directly using a shared cross-adapter heap as the tile pool triggered D3D12 debug error 493. Next verify where the copy is issued and when the queue sees updates. For XG, start with a source-built swizzle/layout case that distinguishes the requested layout from a linear fallback. - **DirectStorage.** The desktop factory and the older public console provider do not accept the required interface. A source-built Windows check confirmed native auto-submission and verified that staging requests until explicit submission preserves completion behavior. Please claim a typed factory/queue adapter slice with a delayed-submit negative control before exposing the provider. - **XMem.** #945 connects the reserve-only cases from #888 to #934. Continue #935 on transfer behavior. A no-tools desktop may report an unsupported transfer and must never report successful ownership transfer without observable backing. Claim a slice here or on its existing issue, with the exact source-built inputs, command, adapter/OS where relevant and expected output.
MoonYueya commented 2026-11-24 06:49:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MoonYueya on 2026-11-23T18:23:33Z.


Main-image TLS slot 0, and the DStorage stop right after it

Environment: our own loader (pe_map), Windows 11 build 26300, MSVC 14.51 x64, Debug and Release. Inputs are source-built images only; no game files, dumps or logs are involved. We map the retail main image with --run-exe --as-main-image in our tree, and the two items below are what that path forced us to fix. #883 covers the TLS template, callback order and per-thread values; it states it makes no claim about the image's own TLS slot, so this is the missing half.

1. The image has to own TLS slot 0, and every thread has to get the block.

Code compiled with /GA reads its thread-local state through slot 0 without looking at _tls_index: on the retail main executable the pattern is mov rax, gs:[58h] then mov rsi, [rax], with no index load. An image that believes it is the executable therefore reads whatever the loader left in slot 0. If that is the loader's own block, the image's writes land in the host's block — in our case the first read was wrong and the write walked past a heap allocation smaller than the image's template.

Expected vs observed, our fixture (crt_tls_main, a CRT-bearing EXE with a 0x1400-byte thread_local array, a real TLS directory, mapped as the main image):

tls_in_slot0 heap after writing the whole array
loader keeps its own block in slot 0 no no
image owns slot 0 yes yes

What we had to do, per thread, because the title creates its own threads:

  • on attach — both the sweep over threads that already exist and the DLL_THREAD_ATTACH callback — save whatever that thread had in slot 0, install the image's block, and record the pair by thread id and TEB (a terminated thread's id is reused, so the id alone cannot tell a new thread from a dead one);
  • do not hand the saved host block back on DLL_THREAD_DETACH. Measured: that callback runs before the image's own CRT callback for the same thread, and that callback frees whatever it finds in slot 0 as if it were its own. Returning the host block there makes the image free a block it does not own, then the host CRT frees it again and the process dies with STATUS_HEAP_CORRUPTION at exit. Clear the slot instead and keep the host block in the per-thread table;
  • hand the host block back later, after the image's CRT is done with slot 0 (see 2). Only the exiting thread can be given its slot back safely — every other thread is either gone or about to be terminated without running an instruction.

2. A CRT EXE that returns from main never runs your teardown, and a global ExitProcess hook is worse.

CRT startup ends the process itself, so everything a loader does after its run call returns is unreachable on that path, and a borrowed slot 0 is never returned. Two measured points:

  • rewriting the mapped image's own import slot for ExitProcess works: walk the import descriptors of the mapped copy, VirtualProtect that one IAT entry, keep the original pointer, and chain to it after your teardown. It cannot affect any other module in the process.
  • a Detours-style patch on ExitProcess itself does not: it also changes the host's exit path, and a CRT EXE that returns from main then died with STATUS_HEAP_CORRUPTION during the host's own teardown, because the patch sits in the middle of the CRT's exit sequence rather than at its end.

Order that worked: return the borrowed slot 0 → remove the C++ exception shim for the image if you installed one → restore the main-image state → one log line. Our fixture (crt_tls_exit) exits with ExitProcess while a worker thread still holds a borrowed slot 0, and asserts on stderr — tls_in_slot0=yes, worker_running=yes, exit_path=ExitProcess, exit-cleanup: ran tls_restored=1 displaced=2 host_tls=yes heap_valid=yes — because a process that exits cannot report afterwards.

3. The stop after that, on our side: the storage factory.

Past CRT constructor slot 188 of 1,115 our process now stops at an int3 in the function that calls the storage factory. Static read of that function (our copy, RVA 0x1D8E4D0–0x1D8E526): 0x1D8E4F0 call XCRDAPI!DStorageGetFactory, then two tests — the out pointer must be non-null and the HRESULT must be zero — and the next call goes through the factory's [+0x40] with 0x2000000, i.e. vtable slot 8, SetStagingBufferSize. Two consequences for anyone shimming it: return a real object, and make slot 8 succeed. A stub that returns S_OK without writing the out pointer hits the same int3; that is how we first failed.

One caveat we cannot settle: we do not know which factory IID the title passes. Two IIDs appear in the implementations we compared — fb3b54ac-bf82-463a-b777-73195837864d and 62959d11-d45f-4884-a0a3-f7862ea243ae — so our shim accepts both and refuses only an unrecognised IID (E_NOINTERFACE, out pointer cleared). If someone here has a runtime trace of the IID at that call site, that would settle it.

Scope: synthetic fixtures and a static read of one function. Nothing here was measured on console hardware, and none of it says anything about the title's behaviour beyond the two stops.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110097466 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110097466). Originally posted by [MoonYueya](https://github.com/MoonYueya) on 2026-11-23T18:23:33Z. --- ### Main-image TLS slot 0, and the DStorage stop right after it Environment: our own loader (`pe_map`), Windows 11 build 26300, MSVC 14.51 x64, Debug and Release. Inputs are source-built images only; no game files, dumps or logs are involved. We map the retail main image with `--run-exe --as-main-image` in our tree, and the two items below are what that path forced us to fix. #883 covers the TLS template, callback order and per-thread values; it states it makes no claim about the image's own TLS slot, so this is the missing half. **1. The image has to own TLS slot 0, and every thread has to get the block.** Code compiled with `/GA` reads its thread-local state through slot 0 without looking at `_tls_index`: on the retail main executable the pattern is `mov rax, gs:[58h]` then `mov rsi, [rax]`, with no index load. An image that believes it is the executable therefore reads whatever the loader left in slot 0. If that is the loader's own block, the image's writes land in the host's block — in our case the first read was wrong and the write walked past a heap allocation smaller than the image's template. Expected vs observed, our fixture (`crt_tls_main`, a CRT-bearing EXE with a `0x1400`-byte `thread_local` array, a real TLS directory, mapped as the main image): | | `tls_in_slot0` | heap after writing the whole array | | --- | --- | --- | | loader keeps its own block in slot 0 | `no` | `no` | | image owns slot 0 | `yes` | `yes` | What we had to do, per thread, because the title creates its own threads: - on attach — both the sweep over threads that already exist and the `DLL_THREAD_ATTACH` callback — save whatever that thread had in slot 0, install the image's block, and record the pair by thread id **and** TEB (a terminated thread's id is reused, so the id alone cannot tell a new thread from a dead one); - **do not hand the saved host block back on `DLL_THREAD_DETACH`.** Measured: that callback runs before the image's own CRT callback for the same thread, and that callback frees whatever it finds in slot 0 as if it were its own. Returning the host block there makes the image free a block it does not own, then the host CRT frees it again and the process dies with `STATUS_HEAP_CORRUPTION` at exit. Clear the slot instead and keep the host block in the per-thread table; - hand the host block back later, after the image's CRT is done with slot 0 (see 2). Only the exiting thread can be given its slot back safely — every other thread is either gone or about to be terminated without running an instruction. **2. A CRT EXE that returns from `main` never runs your teardown, and a global `ExitProcess` hook is worse.** CRT startup ends the process itself, so everything a loader does after its run call returns is unreachable on that path, and a borrowed slot 0 is never returned. Two measured points: - rewriting the mapped image's **own import slot** for `ExitProcess` works: walk the import descriptors of the mapped copy, `VirtualProtect` that one IAT entry, keep the original pointer, and chain to it after your teardown. It cannot affect any other module in the process. - a Detours-style patch on `ExitProcess` itself does not: it also changes the host's exit path, and a CRT EXE that returns from `main` then died with `STATUS_HEAP_CORRUPTION` during the host's own teardown, because the patch sits in the middle of the CRT's exit sequence rather than at its end. Order that worked: return the borrowed slot 0 → remove the C++ exception shim for the image if you installed one → restore the main-image state → one log line. Our fixture (`crt_tls_exit`) exits with `ExitProcess` while a worker thread still holds a borrowed slot 0, and asserts on stderr — `tls_in_slot0=yes`, `worker_running=yes`, `exit_path=ExitProcess`, `exit-cleanup: ran tls_restored=1 displaced=2 host_tls=yes heap_valid=yes` — because a process that exits cannot report afterwards. **3. The stop after that, on our side: the storage factory.** Past CRT constructor slot 188 of 1,115 our process now stops at an `int3` in the function that calls the storage factory. Static read of that function (our copy, RVA `0x1D8E4D0`–`0x1D8E526`): `0x1D8E4F0 call XCRDAPI!DStorageGetFactory`, then two tests — the out pointer must be non-null and the HRESULT must be zero — and the next call goes through the factory's `[+0x40]` with `0x2000000`, i.e. vtable slot 8, `SetStagingBufferSize`. Two consequences for anyone shimming it: return a real object, and make slot 8 succeed. A stub that returns `S_OK` without writing the out pointer hits the same `int3`; that is how we first failed. One caveat we cannot settle: we do not know which factory IID the title passes. Two IIDs appear in the implementations we compared — `fb3b54ac-bf82-463a-b777-73195837864d` and `62959d11-d45f-4884-a0a3-f7862ea243ae` — so our shim accepts both and refuses only an unrecognised IID (`E_NOINTERFACE`, out pointer cleared). If someone here has a runtime trace of the IID at that call site, that would settle it. Scope: synthetic fixtures and a static read of one function. Nothing here was measured on console hardware, and none of it says anything about the title's behaviour beyond the two stops. _AI-assisted._
MoonYueya commented 2026-11-24 06:49:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MoonYueya on 2026-11-23T18:23:38Z.


Following up on our comment above: we posted the same two results to a project bringing up the same kind of title — ItsNotRexed/Leonida#8282 (finding: main-image TLS slot 0 with the per-thread method and the two pitfalls; and the storage factory stop, [factory+0x40] with 0x2000000 = slot 8, factory object must be real and the HRESULT zero). The first part is what makes a loader's own TLS notifications actually reach the image's thread-local state; the second is the assertion immediately after it. No reply needed here.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110099324 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110099324). Originally posted by [MoonYueya](https://github.com/MoonYueya) on 2026-11-23T18:23:38Z. --- Following up on our comment above: we posted the same two results to a project bringing up the same kind of title — ItsNotRexed/Leonida#8282 (finding: main-image TLS slot 0 with the per-thread method and the two pitfalls; and the storage factory stop, `[factory+0x40]` with `0x2000000` = slot 8, factory object must be real and the HRESULT zero). The first part is what makes a loader's own TLS notifications actually reach the image's thread-local state; the second is the assertion immediately after it. No reply needed here. _AI-assisted._
rasptum commented 2026-11-24 06:49:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T18:28:26Z.


Claiming the DirectStorage typed factory/queue adapter slice from R0Y00's 18:07Z/18:18Z notes on #870.
Scope: public Xbox vs PC contract comparison (Microsoft Learn GDK docs + MIT microsoft/DirectStorage, pinned) plus a source-built caller and test-only typed factory/queue adapter fixture.
Coverage: successful read with exact readback, PC IDStorageFactory IID refusal (E_NOINTERFACE, sentinel output pointer untouched), and a delayed-submit negative control before Submit().
Boundary: no production xcrdapi.dll binding; console IIDs are unpublished so the fixture uses explicitly labelled repo-local test IIDs.
Also noting MoonYueya's 18:23Z loader observation (caller reading [factory+0x40] / vtable slot 8 with a real factory object and S_OK return) as an unverified external observation for follow-up layout checks.
Environment: Windows 10 Pro 10.0.19045, MSVC VS2022 x64 (dev and release presets).

AI-assisted (Antigravity)

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110213324 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110213324). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T18:28:26Z. --- Claiming the DirectStorage typed factory/queue adapter slice from R0Y00's 18:07Z/18:18Z notes on `#870`. Scope: public Xbox vs PC contract comparison (Microsoft Learn GDK docs + MIT `microsoft/DirectStorage`, pinned) plus a source-built caller and test-only typed factory/queue adapter fixture. Coverage: successful read with exact readback, PC `IDStorageFactory` IID refusal (`E_NOINTERFACE`, sentinel output pointer untouched), and a delayed-submit negative control before `Submit()`. Boundary: no production `xcrdapi.dll` binding; console IIDs are unpublished so the fixture uses explicitly labelled repo-local test IIDs. Also noting MoonYueya's 18:23Z loader observation (caller reading `[factory+0x40]` / vtable slot 8 with a real factory object and `S_OK` return) as an unverified external observation for follow-up layout checks. Environment: Windows 10 Pro 10.0.19045, MSVC VS2022 x64 (`dev` and `release` presets). AI-assisted (Antigravity)
R0Y00 commented 2026-11-24 06:49:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:29:00Z.


Thanks for the source-built TLS and exit-path checks. Please open a focused PR for the main-image TLS slot and per-thread initialization if that work is ready for review. Please link the synthetic commands and expected outputs. An exit-path change can be reviewed separately if it does not depend on the TLS change.

  • Graphics stays with #874. A local source-built sparse-buffer check now reads back above 4 GiB on hardware using a physical tile alias. The remaining integration check is preserving a consistent address space from pre-device configuration through device creation. For XG, the independent contribution is a source-built comparison of swizzle selection against a supported reference implementation. Explicit layout address checks already pass locally.
  • DirectStorage now has a local adapter backed by the Microsoft DirectStorage runtime. The next independent check is a source-built factory-to-queue test with explicit submission, pending status and an unchanged destination before submission.
  • Audio and XMem are tracked in #950, #945 and #935. #945 and #935 are merged. The audio lifetime check passed locally and is ready for review.

The main executable has not run in this integration tree.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110226464 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110226464). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T18:29:00Z. --- Thanks for the source-built TLS and exit-path checks. Please open a focused PR for the main-image TLS slot and per-thread initialization if that work is ready for review. Please link the synthetic commands and expected outputs. An exit-path change can be reviewed separately if it does not depend on the TLS change. - **Graphics** stays with #874. A local source-built sparse-buffer check now reads back above 4 GiB on hardware using a physical tile alias. The remaining integration check is preserving a consistent address space from pre-device configuration through device creation. For XG, the independent contribution is a source-built comparison of swizzle selection against a supported reference implementation. Explicit layout address checks already pass locally. - **DirectStorage** now has a local adapter backed by the Microsoft DirectStorage runtime. The next independent check is a source-built factory-to-queue test with explicit submission, pending status and an unchanged destination before submission. - **Audio and XMem** are tracked in #950, #945 and #935. #945 and #935 are merged. The audio lifetime check passed locally and is ready for review. The main executable has not run in this integration tree.
rasptum commented 2026-11-24 06:49:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T18:31:51Z.


Scope update for the XG claim above (https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109162352), following the 18:29Z note. I'm switching to a source-built comparison of swizzle selection against AMD's addrlib (MIT), which is the public, supported swizzle selector for this GPU family (gfx10.3 Addr2GetPreferredSurfaceSetting / Addr2ComputeSurfaceInfo). DirectXTex only forwards selection to XG's own XGComputeOptimalSwizzleMode, so it can't serve as the reference.

  • Dependency. One pinned addrlib commit, fetched into out/ as an optional local dependency and never vendored. The URL, SHA and license go in docs/experiments.md and the PR. The tests return 77 when addrlib isn't configured, so CI will skip them unless it is present.
  • Comparison. A source-built caller runs a fixed set of texture descriptions through addrlib's preferred-swizzle selection.
  • Controls:
    • a linear-forced request must stay linear;
    • a tiled request must not fall back to linear;
    • a tight explicit pitch must be refused.
  • Dropped. The explicit layout and address checks, since those already pass on your side.
  • Kept locally. The earlier layout and upload branch, in case you want it.

If you'd prefer a different reference implementation, please say so here.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110293453 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110293453). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T18:31:51Z. --- Scope update for the XG claim above (https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109162352), following the 18:29Z note. I'm switching to a source-built comparison of swizzle selection against AMD's addrlib (MIT), which is the public, supported swizzle selector for this GPU family (gfx10.3 `Addr2GetPreferredSurfaceSetting` / `Addr2ComputeSurfaceInfo`). DirectXTex only forwards selection to XG's own `XGComputeOptimalSwizzleMode`, so it can't serve as the reference. - **Dependency.** One pinned addrlib commit, fetched into `out/` as an optional local dependency and never vendored. The URL, SHA and license go in `docs/experiments.md` and the PR. The tests return 77 when addrlib isn't configured, so CI will skip them unless it is present. - **Comparison.** A source-built caller runs a fixed set of texture descriptions through addrlib's preferred-swizzle selection. - **Controls:** - a linear-forced request must stay linear; - a tiled request must not fall back to linear; - a tight explicit pitch must be refused. - **Dropped.** The explicit layout and address checks, since those already pass on your side. - **Kept locally.** The earlier layout and upload branch, in case you want it. If you'd prefer a different reference implementation, please say so here. AI-assisted (Claude Code).
Holastor commented 2026-11-24 06:49:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T18:37:04Z.


Memory transfer prerequisite and failure chain slice result: #955.

  • Stage: XMemTransferMemory prerequisite query, working-set statistics evaluation (0x2000000A), budget checking, and transfer failure isolation before startup dispatch.
  • Environment: Windows 11 Pro x64 (build 26100), MSVC 19.51, CMake/Ninja, Python 3.11 (out/pe-env).
  • Tested commit: 06831af
  • Commands:
    cmake --preset dev
    cmake --build --preset dev --target cpu_transfer_chain_caller cpu_transfer_chain_provider
    ctest --preset dev --no-tests=error -R '^cpu_native_transfer_chain$' -V
    cmake --preset release
    cmake --build --preset release --target cpu_transfer_chain_caller cpu_transfer_chain_provider
    ctest --preset release --no-tests=error -R '^cpu_native_transfer_chain$' -V
    .\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py
    .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py
    .\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py
    .\out\pe-env\Scripts\python.exe -B tests/hardware_reports_check.py
    
  • Observed vs expected:
    • Case 1 (Success path reaches transfer): XMemIsToolsMemAvailable returns TRUE, XMemGetWorkingSetStatistics (0x2000000A) reports 32 MiB total / 16 MiB used, and memory transfer executes a 16 MiB transfer under test-provider policy partition 1. Returns exit code 0x870 under both loaders, including with a live worker thread under CPU_CRC_TEST_LIVE_WORKER=1.
    • Case 2 (Tools-memory unavailable blocks): XMemIsToolsMemAvailable returning FALSE blocks sequence immediately; transfer is never called (transfer_calls == 0, exit code 0x101).
    • Case 3 (Working-set failure aborts): XMemGetWorkingSetStatistics returning FALSE aborts sequence; transfer is never called (transfer_calls == 0, exit code 0x102).
    • Case 4 (Zero available budget): Working set reporting zero available budget (total <= used) skips transfer (transfer_calls == 0, exit code 0x103).
    • Case 5 (Transfer failure isolation): Transfer call failure is isolated and prior state remains intact (transfer_calls == 1, exit code 0x104); no unbacked ownership transfer is reported.
    • Changed-selector patch control: Patching selector 0x2000000A to 0x2000000B in the caller binary fails the statistics query, aborting before transfer with exit code 0x102 under both loaders.
    • Withholding controls: Withholding any of XMemIsToolsMemAvailable, XMemGetWorkingSetStatistics, or XMemTransferMemory stops pe_map before entry with STATUS["unresolved"] naming the missing export.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110413498 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110413498). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T18:37:04Z. --- Memory transfer prerequisite and failure chain slice result: #955. - **Stage:** `XMemTransferMemory` prerequisite query, working-set statistics evaluation (`0x2000000A`), budget checking, and transfer failure isolation before startup dispatch. - **Environment:** Windows 11 Pro x64 (build 26100), MSVC 19.51, CMake/Ninja, Python 3.11 (`out/pe-env`). - **Tested commit:** `06831af` - **Commands:** ```powershell cmake --preset dev cmake --build --preset dev --target cpu_transfer_chain_caller cpu_transfer_chain_provider ctest --preset dev --no-tests=error -R '^cpu_native_transfer_chain$' -V cmake --preset release cmake --build --preset release --target cpu_transfer_chain_caller cpu_transfer_chain_provider ctest --preset release --no-tests=error -R '^cpu_native_transfer_chain$' -V .\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py .\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py .\out\pe-env\Scripts\python.exe -B tests/hardware_reports_check.py ``` - **Observed vs expected:** - Case 1 (Success path reaches transfer): `XMemIsToolsMemAvailable` returns `TRUE`, `XMemGetWorkingSetStatistics` (`0x2000000A`) reports 32 MiB total / 16 MiB used, and memory transfer executes a 16 MiB transfer under test-provider policy partition 1. Returns exit code `0x870` under both loaders, including with a live worker thread under `CPU_CRC_TEST_LIVE_WORKER=1`. - Case 2 (Tools-memory unavailable blocks): `XMemIsToolsMemAvailable` returning `FALSE` blocks sequence immediately; transfer is never called (`transfer_calls == 0`, exit code `0x101`). - Case 3 (Working-set failure aborts): `XMemGetWorkingSetStatistics` returning `FALSE` aborts sequence; transfer is never called (`transfer_calls == 0`, exit code `0x102`). - Case 4 (Zero available budget): Working set reporting zero available budget (`total <= used`) skips transfer (`transfer_calls == 0`, exit code `0x103`). - Case 5 (Transfer failure isolation): Transfer call failure is isolated and prior state remains intact (`transfer_calls == 1`, exit code `0x104`); no unbacked ownership transfer is reported. - Changed-selector patch control: Patching selector `0x2000000A` to `0x2000000B` in the caller binary fails the statistics query, aborting before transfer with exit code `0x102` under both loaders. - Withholding controls: Withholding any of `XMemIsToolsMemAvailable`, `XMemGetWorkingSetStatistics`, or `XMemTransferMemory` stops `pe_map` before entry with `STATUS["unresolved"]` naming the missing export.
R0Y00 commented 2026-11-24 06:49:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:45:49Z.


@rasptum The optional pinned AddrLib comparison fits the XG slice. Please record the chip family/revision and initialization inputs as well as the commit, license, resource descriptors, returned swizzle and status. Use a fixed reference table on the selected PC gfx10.3 profile, plus the forced-linear, tiled and explicit-pitch controls. Label the outcomes as AddrLib observations. A match establishes the chosen PC reference behavior; the Xbox-specific XG selection and inputs still need separate evidence. Keep the existing build independent of the optional dependency and report its absence as a skip.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110617199 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110617199). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T18:45:49Z. --- @rasptum The optional pinned AddrLib comparison fits the XG slice. Please record the chip family/revision and initialization inputs as well as the commit, license, resource descriptors, returned swizzle and status. Use a fixed reference table on the selected PC gfx10.3 profile, plus the forced-linear, tiled and explicit-pitch controls. Label the outcomes as AddrLib observations. A match establishes the chosen PC reference behavior; the Xbox-specific XG selection and inputs still need separate evidence. Keep the existing build independent of the optional dependency and report its absence as a skip.
Jess-Doit commented 2026-11-24 06:49:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T18:48:09Z.


Windows 10 binding checkpoint after #923, #934 and #945, on main at 0f0c3eb (22H2 19045.6456, MSVC 19.44 x64, Release).

The same System32 + source-built desktop shim probe as the previous check now binds 174 imports, including XMemMapPhysicalPages and XMemMapPhysicalPagesScatter. Both runs return status 5 at xmem.dll!XMemTransferMemory. The previous #923 build bound 172 and stopped at XMemMapPhysicalPages.

The seven focused Release XMem tests passed, including the source-built xmem_shim_mapped_pages coverage. The binding probe stopped before TLS callbacks or executable entry. #935 and #955 cover transfer with source-built callers. This checkpoint identifies the missing production export without establishing the caller's runtime behavior.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110673477 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110673477). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T18:48:09Z. --- Windows 10 binding checkpoint after #923, #934 and #945, on `main` at `0f0c3eb` (22H2 19045.6456, MSVC 19.44 x64, Release). The same System32 + source-built desktop shim probe as the [previous check](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7108780148) now binds 174 imports, including `XMemMapPhysicalPages` and `XMemMapPhysicalPagesScatter`. Both runs return status 5 at `xmem.dll!XMemTransferMemory`. The previous #923 build bound 172 and stopped at `XMemMapPhysicalPages`. The seven focused Release XMem tests passed, including the source-built `xmem_shim_mapped_pages` coverage. The binding probe stopped before TLS callbacks or executable entry. #935 and #955 cover transfer with source-built callers. This checkpoint identifies the missing production export without establishing the caller's runtime behavior. AI-assisted (Codex).
R0Y00 commented 2026-11-24 06:49:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:57:50Z.


The main integration has now repeated a local pe_map run through both startup TLS callbacks and into the executable entry. Pre-device graphics configuration and the two reserve-only allocations returned successfully. A first reserve-and-commit case now also advances in both runs. The next protection/attribute combination is still refused and the executable stops before device creation. The separate source-built test for the first commit case checks zero initialization, boundaries, release and failure propagation. These observations do not establish executable startup completion.

The next independent XMem check is the second commit combination. @descent81, your #888 reserve-only scope can stay as it is. If you or another contributor already has a synthetic protection/mapping comparison for the second case, please link that work here so we can use one fixture. Otherwise one person can claim the source-built check for CPU accessibility and write protection, whether a live shared-page view is required, and what failed allocation or reprotection leaves intact. Please keep inputs synthetic and report the first observable discrepancy. Device/queue validation remains in #874.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110901695 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110901695). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T18:57:50Z. --- The main integration has now repeated a local pe_map run through both startup TLS callbacks and into the executable entry. Pre-device graphics configuration and the two reserve-only allocations returned successfully. A first reserve-and-commit case now also advances in both runs. The next protection/attribute combination is still refused and the executable stops before device creation. The separate source-built test for the first commit case checks zero initialization, boundaries, release and failure propagation. These observations do not establish executable startup completion. The next independent XMem check is the second commit combination. @descent81, your #888 reserve-only scope can stay as it is. If you or another contributor already has a synthetic protection/mapping comparison for the second case, please link that work here so we can use one fixture. Otherwise one person can claim the source-built check for CPU accessibility and write protection, whether a live shared-page view is required, and what failed allocation or reprotection leaves intact. Please keep inputs synthetic and report the first observable discrepancy. Device/queue validation remains in #874.
Holastor commented 2026-11-24 06:49:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T19:01:13Z.


DirectStorage factory and queue adapter slice result: #963.

  • Stage: XCRDAPI!DStorageGetFactory console factory interface ({62959d11-d45f-4884-a0a3-f7862ea243ae}), 32 MiB staging buffer configuration (SetStagingBufferSize, slot 8), console queue creation (CreateQueue, slot 10) under IDStorageQueueX ({3c02cb0c-c050-4195-99a1-a1ce94ba33c5}), and delayed-submit negative control before startup dispatch.
  • Environment: Windows 11 Pro x64 (build 26100), MSVC 19.51, CMake/Ninja, Python 3.11 (out/pe-env).
  • Tested commit: 306c02d
  • Commands:
    cmake --preset dev
    cmake --build --preset dev --target cpu_dstorage_caller cpu_dstorage_provider
    ctest --preset dev --no-tests=error -R '^cpu_native_dstorage$' -V
    cmake --preset release
    cmake --build --preset release --target cpu_dstorage_caller cpu_dstorage_provider
    ctest --preset release --no-tests=error -R '^cpu_native_dstorage$' -V
    .\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py
    .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py
    .\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py
    .\out\pe-env\Scripts\python.exe -B tests/hardware_reports_check.py
    
  • Observed vs expected:
    • Case 1 (Success reaches submit): DStorageGetFactory acquires IDStorageFactoryX, configures 32 MiB staging buffer, creates IDStorageQueueX with DSTORAGE_QUEUE_DESC, enqueues request, verifies completion is pending before submit, submits via Submit(), and cleanly releases objects. Exits with code 0x870 under both loaders, including with a live worker thread under CPU_CRC_TEST_LIVE_WORKER=1.
    • Case 2 (Factory failure refusal): Factory creation failure aborts sequence (queue_calls == 0, exit code 0x301).
    • Case 3 (Queue failure refusal): Queue creation failure aborts sequence (queue_calls == 0, exit code 0x303) with staging buffer configuration intact.
    • Delayed-submit negative control: Staged requests below the half-capacity threshold remain pending and completion is not signaled prior to explicit Submit(). Calling Submit() completes the staged request and sets completion.
    • Changed-IID patch control: Patching requested factory interface in the caller binary fails with E_NOINTERFACE, aborting with exit code 0x301 under both loaders.
    • Withholding control: Withholding DStorageGetFactory stops pe_map before entry with STATUS["unresolved"] naming the missing export.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110979764 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110979764). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T19:01:13Z. --- DirectStorage factory and queue adapter slice result: #963. - **Stage:** `XCRDAPI!DStorageGetFactory` console factory interface (`{62959d11-d45f-4884-a0a3-f7862ea243ae}`), 32 MiB staging buffer configuration (`SetStagingBufferSize`, slot 8), console queue creation (`CreateQueue`, slot 10) under `IDStorageQueueX` (`{3c02cb0c-c050-4195-99a1-a1ce94ba33c5}`), and delayed-submit negative control before startup dispatch. - **Environment:** Windows 11 Pro x64 (build 26100), MSVC 19.51, CMake/Ninja, Python 3.11 (`out/pe-env`). - **Tested commit:** `306c02d` - **Commands:** ```powershell cmake --preset dev cmake --build --preset dev --target cpu_dstorage_caller cpu_dstorage_provider ctest --preset dev --no-tests=error -R '^cpu_native_dstorage$' -V cmake --preset release cmake --build --preset release --target cpu_dstorage_caller cpu_dstorage_provider ctest --preset release --no-tests=error -R '^cpu_native_dstorage$' -V .\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py .\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py .\out\pe-env\Scripts\python.exe -B tests/hardware_reports_check.py ``` - **Observed vs expected:** - Case 1 (Success reaches submit): `DStorageGetFactory` acquires `IDStorageFactoryX`, configures 32 MiB staging buffer, creates `IDStorageQueueX` with `DSTORAGE_QUEUE_DESC`, enqueues request, verifies completion is pending before submit, submits via `Submit()`, and cleanly releases objects. Exits with code `0x870` under both loaders, including with a live worker thread under `CPU_CRC_TEST_LIVE_WORKER=1`. - Case 2 (Factory failure refusal): Factory creation failure aborts sequence (`queue_calls == 0`, exit code `0x301`). - Case 3 (Queue failure refusal): Queue creation failure aborts sequence (`queue_calls == 0`, exit code `0x303`) with staging buffer configuration intact. - Delayed-submit negative control: Staged requests below the half-capacity threshold remain pending and completion is not signaled prior to explicit `Submit()`. Calling `Submit()` completes the staged request and sets completion. - Changed-IID patch control: Patching requested factory interface in the caller binary fails with `E_NOINTERFACE`, aborting with exit code `0x301` under both loaders. - Withholding control: Withholding `DStorageGetFactory` stops `pe_map` before entry with `STATUS["unresolved"]` naming the missing export.
R0Y00 commented 2026-11-24 06:49:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T19:01:33Z.


Claimable startup task: committed-memory checks on Windows

Build a small original x64 fixture that reserves and commits ordinary Windows pages while enforcing an emulated guest alignment of 64 KiB or 2 MiB. Check address alignment, range rounding, zero-fill, cross-page read/write, release, and preservation of a host failure code. Include failure controls for overflow and unsupported protection.

Please post the Windows build and exact command, then open a focused fixture PR. This scope is CPU backing only. #888 covers the existing reserve-only phase and #874 covers GPU address binding. The main integration already has a local implementation, so claim the independent check here before starting. Use source-built inputs only and place test output under out/.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110987734 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110987734). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T19:01:33Z. --- ## Claimable startup task: committed-memory checks on Windows Build a small original x64 fixture that reserves and commits ordinary Windows pages while enforcing an emulated guest alignment of 64 KiB or 2 MiB. Check address alignment, range rounding, zero-fill, cross-page read/write, release, and preservation of a host failure code. Include failure controls for overflow and unsupported protection. Please post the Windows build and exact command, then open a focused fixture PR. This scope is CPU backing only. #888 covers the existing reserve-only phase and #874 covers GPU address binding. The main integration already has a local implementation, so claim the independent check here before starting. Use source-built inputs only and place test output under out/.
Jess-Doit commented 2026-11-24 06:49:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T19:03:50Z.


I’ll take the committed-memory fixture from the 19:01 UTC request. I’ll build a source-built x64 CTest on Windows 10 22H2 (19045), MSVC 19.44 x64, and verify it in Debug and Release.

It will reserve and commit ordinary Windows pages at 64 KiB and 2 MiB guest alignments, then check rounding, zero-fill, writes and readback across a host-page boundary, and release. The controls will cover rounding overflow, unsupported protection, and preservation of a real Win32 allocation error. Scope is CPU backing only and will leave #888’s reserve-only and #874’s GPU binding work separate.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111040654 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111040654). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T19:03:50Z. --- I’ll take the committed-memory fixture from the 19:01 UTC request. I’ll build a source-built x64 CTest on Windows 10 22H2 (19045), MSVC 19.44 x64, and verify it in Debug and Release. It will reserve and commit ordinary Windows pages at 64 KiB and 2 MiB guest alignments, then check rounding, zero-fill, writes and readback across a host-page boundary, and release. The controls will cover rounding overflow, unsupported protection, and preservation of a real Win32 allocation error. Scope is CPU backing only and will leave #888’s reserve-only and #874’s GPU binding work separate. AI-assisted (Codex).
Jess-Doit commented 2026-11-24 06:49:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T19:09:46Z.


The committed CPU memory fixture is verified locally on Windows 10 22H2 (19045.6456), MSVC 19.44 x64, SDK 10.0.26100. Debug and Release both passed the new fixture and four neighboring Windows memory checks.

cmake --build --preset dev --target xmem_committed_memory_check
ctest --preset dev --no-tests=error -R '^xmem_committed_memory$' -V

The same commands passed with release. At both 64 KiB and 2 MiB alignment, 4,101 bytes rounded to 8,192 committed bytes, with a third page still reserved. Full zero-fill, cross-page readback, and release passed. Overflow (534), unsupported protection (87), and a real host commit beyond the reservation (487) all preserved the live pages and the reserved tail. The source-built test and reproduction are ready for the focused fixture PR.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111182179 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111182179). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T19:09:46Z. --- The committed CPU memory fixture is verified locally on Windows 10 22H2 (19045.6456), MSVC 19.44 x64, SDK 10.0.26100. Debug and Release both passed the new fixture and four neighboring Windows memory checks. ```powershell cmake --build --preset dev --target xmem_committed_memory_check ctest --preset dev --no-tests=error -R '^xmem_committed_memory$' -V ``` The same commands passed with `release`. At both 64 KiB and 2 MiB alignment, 4,101 bytes rounded to 8,192 committed bytes, with a third page still reserved. Full zero-fill, cross-page readback, and release passed. Overflow (534), unsupported protection (87), and a real host commit beyond the reservation (487) all preserved the live pages and the reserved tail. The source-built test and reproduction are ready for the focused fixture PR. AI-assisted (Codex).
rasptum commented 2026-11-24 06:49:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T19:16:43Z.


Claiming the 18:57Z second-commit check: a source-built x64 Windows fixture comparing ordinary committed pages against a live shared-page view for CPU read/write accessibility, write-protection transitions, and what failed allocation or reprotection leaves intact.
Inputs will be synthetic only; I will report the first observable discrepancy if ordinary commit and a live shared-page view diverge.
Scope is separate from Jess-Doit's first-commit fixture (xmem_committed_memory), #888 (reserve-only), and #874 (device/queue).
Environment: Windows 10 Pro 10.0.19045, MSVC VS2022 x64 (dev and release presets).

AI-assisted (Claude Code)

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111362340 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111362340). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T19:16:43Z. --- Claiming the 18:57Z second-commit check: a source-built x64 Windows fixture comparing ordinary committed pages against a live shared-page view for CPU read/write accessibility, write-protection transitions, and what failed allocation or reprotection leaves intact. Inputs will be synthetic only; I will report the first observable discrepancy if ordinary commit and a live shared-page view diverge. Scope is separate from Jess-Doit's first-commit fixture (`xmem_committed_memory`), #888 (reserve-only), and #874 (device/queue). Environment: Windows 10 Pro 10.0.19045, MSVC VS2022 x64 (`dev` and `release` presets). AI-assisted (Claude Code)
MoonYueya commented 2026-11-24 06:49:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MoonYueya on 2026-11-23T19:17:52Z.


Thanks for the offer. We are going to decline the focused PR, and the reason is ownership rather than readiness: our slot handling is entangled with our own host's TLS layout, so a patch from us would cost you more to review than lifting the rule and the fixture below into pe_map in whatever shape fits. Everything the PR would have contained is inline here, and we would gladly review your version.

The rule. Image code built with /GA reads thread-local state through slot 0 without loading _tls_index: on this title the pattern is mov rax, gs:[58h] then mov rsi, [rax], with no index load. So the main image has to own slot 0 in every thread; if the loader's own block is there, the image reads and writes the host's block.

The two fixtures we use (source-built, in our tree):

  • crt_tls_main: a CRT-bearing EXE with a real TLS directory and a thread_local array of 0x1400 bytes (larger than one page, initialised to 0xFF), mapped as the main image.
  • crt_tls_exit: the same shape, plus one worker thread that is still alive when the image calls ExitProcess.

Commands and expected output (Windows 11 build 26300, MSVC 14.51, Debug and Release; each line below is the assertion in our tree):

pe_map_cli map crt_tls_main.exe --run-exe --as-main-image --evidence synthetic-fixture
# tls_in_slot0=yes
# array_intact=yes
# heap_valid=yes

pe_map_cli map crt_tls_exit.exe --run-exe --as-main-image --evidence synthetic-fixture
# tls_in_slot0=yes
# worker_running=yes
# worker_in_slot0=yes
# exit_path=ExitProcess
# exit-cleanup: ran tls_restored=1 displaced=2 host_tls=yes heap_valid=yes

The exit fixture asserts on that stderr line because a process that has already exited cannot report afterwards; its exit code is 7 and is deliberately not what we test.

What the loader has to do, per thread (the title creates its own threads, so attach-time delivery is not enough):

  1. on attach — both while sweeping threads that already exist and in the DLL_THREAD_ATTACH callback — record what that thread had in slot 0, install the image's block, and key the record by thread id and TEB (a terminated thread's id is reused, so the id alone cannot tell a new thread from a dead one);
  2. keep the image's template reachable for the whole process lifetime, and do not free a block a thread may still be using;
  3. restore the saved host block on the exit path, after the image's CRT has finished with slot 0, and only for the thread that is exiting — any other thread is either gone or about to be terminated without running an instruction.

Two pitfalls, both measured. First: do not return the host block in DLL_THREAD_DETACH. That callback runs before the image's own CRT callback for the same thread, and that callback frees whatever it finds in slot 0 as if it were its own; handing the host block back there makes the image free a block it does not own, the host CRT frees it a second time, and the process dies with STATUS_HEAP_CORRUPTION during exit. Clear the slot instead and keep the host block in your per-thread table until the exit path. Second: a CRT EXE that returns from main enters ExitProcess itself, so everything after your run call is unreachable and the borrowed slot is never returned. Rewriting the mapped image's own import slot for ExitProcess works — walk the import descriptors of the mapped copy, VirtualProtect that one IAT entry, keep the original pointer and chain to it after your teardown. A Detours-style patch on ExitProcess itself does not: it also changes the host's exit path, and our CRT EXE then died with STATUS_HEAP_CORRUPTION during the host's own teardown, because the patch sits in the middle of the CRT's exit sequence rather than at its end. Order that worked for us: return the borrowed slot 0, remove the C++ exception shim for the image if one is installed, restore the main-image state, log one line.

Two negative controls we reproduced while developing this: (a) leave the loader's own block in slot 0 — the same fixture reports tls_in_slot0=no and the heap check fails after the full array write; (b) return the host block on thread detach — the exit fixture dies with STATUS_HEAP_CORRUPTION in teardown instead of printing the cleanup line.

Limitation, stated rather than hidden: this is a loader-level result. It is synthetic fixtures plus one shipped DLL run from a read-only copy on the mapped-DLL path; the main executable has not completed a run in our tree either — we are past the TLS assertions and the storage-factory assertion, but our startup gate still fails later, so nothing here is a startup result or a statement about console hardware.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111393166 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111393166). Originally posted by [MoonYueya](https://github.com/MoonYueya) on 2026-11-23T19:17:52Z. --- Thanks for the offer. We are going to decline the focused PR, and the reason is ownership rather than readiness: our slot handling is entangled with our own host's TLS layout, so a patch from us would cost you more to review than lifting the rule and the fixture below into `pe_map` in whatever shape fits. Everything the PR would have contained is inline here, and we would gladly review your version. **The rule.** Image code built with `/GA` reads thread-local state through slot 0 without loading `_tls_index`: on this title the pattern is `mov rax, gs:[58h]` then `mov rsi, [rax]`, with no index load. So the main image has to own slot 0 in **every** thread; if the loader's own block is there, the image reads and writes the host's block. **The two fixtures we use** (source-built, in our tree): - `crt_tls_main`: a CRT-bearing EXE with a real TLS directory and a `thread_local` array of `0x1400` bytes (larger than one page, initialised to `0xFF`), mapped as the main image. - `crt_tls_exit`: the same shape, plus one worker thread that is still alive when the image calls `ExitProcess`. **Commands and expected output** (Windows 11 build 26300, MSVC 14.51, Debug and Release; each line below is the assertion in our tree): ``` pe_map_cli map crt_tls_main.exe --run-exe --as-main-image --evidence synthetic-fixture # tls_in_slot0=yes # array_intact=yes # heap_valid=yes pe_map_cli map crt_tls_exit.exe --run-exe --as-main-image --evidence synthetic-fixture # tls_in_slot0=yes # worker_running=yes # worker_in_slot0=yes # exit_path=ExitProcess # exit-cleanup: ran tls_restored=1 displaced=2 host_tls=yes heap_valid=yes ``` The exit fixture asserts on that stderr line because a process that has already exited cannot report afterwards; its exit code is 7 and is deliberately not what we test. **What the loader has to do, per thread** (the title creates its own threads, so attach-time delivery is not enough): 1. on attach — both while sweeping threads that already exist and in the `DLL_THREAD_ATTACH` callback — record what that thread had in slot 0, install the image's block, and key the record by thread id **and** TEB (a terminated thread's id is reused, so the id alone cannot tell a new thread from a dead one); 2. keep the image's template reachable for the whole process lifetime, and do not free a block a thread may still be using; 3. restore the saved host block on the exit path, after the image's CRT has finished with slot 0, and only for the thread that is exiting — any other thread is either gone or about to be terminated without running an instruction. **Two pitfalls, both measured.** First: do **not** return the host block in `DLL_THREAD_DETACH`. That callback runs before the image's own CRT callback for the same thread, and that callback frees whatever it finds in slot 0 as if it were its own; handing the host block back there makes the image free a block it does not own, the host CRT frees it a second time, and the process dies with `STATUS_HEAP_CORRUPTION` during exit. Clear the slot instead and keep the host block in your per-thread table until the exit path. Second: a CRT EXE that returns from `main` enters `ExitProcess` itself, so everything after your run call is unreachable and the borrowed slot is never returned. Rewriting the mapped image's **own import slot** for `ExitProcess` works — walk the import descriptors of the mapped copy, `VirtualProtect` that one IAT entry, keep the original pointer and chain to it after your teardown. A Detours-style patch on `ExitProcess` itself does not: it also changes the host's exit path, and our CRT EXE then died with `STATUS_HEAP_CORRUPTION` during the host's own teardown, because the patch sits in the middle of the CRT's exit sequence rather than at its end. Order that worked for us: return the borrowed slot 0, remove the C++ exception shim for the image if one is installed, restore the main-image state, log one line. **Two negative controls we reproduced while developing this:** (a) leave the loader's own block in slot 0 — the same fixture reports `tls_in_slot0=no` and the heap check fails after the full array write; (b) return the host block on thread detach — the exit fixture dies with `STATUS_HEAP_CORRUPTION` in teardown instead of printing the cleanup line. **Limitation, stated rather than hidden:** this is a loader-level result. It is synthetic fixtures plus one shipped DLL run from a read-only copy on the mapped-DLL path; the main executable has not completed a run in our tree either — we are past the TLS assertions and the storage-factory assertion, but our startup gate still fails later, so nothing here is a startup result or a statement about console hardware. _AI-assisted._
MoonYueya commented 2026-11-24 06:49:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MoonYueya on 2026-11-23T19:18:41Z.


没额度了喵,抱歉喵。

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111414697 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111414697). Originally posted by [MoonYueya](https://github.com/MoonYueya) on 2026-11-23T19:18:41Z. --- 没额度了喵,抱歉喵。
R0Y00 commented 2026-11-24 06:49:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T19:19:52Z.


Claimable startup task: test a scoped content-root mapping

Build a small source-built Windows EXE that opens a synthetic archive through a configured guest drive and checks that the path resolves to the intended package root. Keep the actual startup integration in the main development lane.

The independent fixture should cover a valid guest path, a missing file, an already occupied drive, and cleanup after both success and failure. Use a free test letter or a process-local path resolver. Preserve the caller's existing drives and handle content paths separately from save/config writes. Include an exact reproduction command and Windows build.

Please claim the fixture here before opening a PR. Use generated data only.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111442438 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111442438). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T19:19:52Z. --- ## Claimable startup task: test a scoped content-root mapping Build a small source-built Windows EXE that opens a synthetic archive through a configured guest drive and checks that the path resolves to the intended package root. Keep the actual startup integration in the main development lane. The independent fixture should cover a valid guest path, a missing file, an already occupied drive, and cleanup after both success and failure. Use a free test letter or a process-local path resolver. Preserve the caller's existing drives and handle content paths separately from save/config writes. Include an exact reproduction command and Windows build. Please claim the fixture here before opening a PR. Use generated data only.
rasptum commented 2026-11-24 06:49:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T19:24:38Z.


Claiming the main-image TLS slot 0 and per-thread initialization slice R0Y00 asked for at 18:29Z. It builds on #883 and #920.

  • Credit: the rule and fixture design are MoonYueya's (18:23Z and 19:17Z above). /GA image code reads its TLS block through slot 0 without loading _tls_index, so the main image must own slot 0 in every thread. MoonYueya offered to review. I'll write our own source-built fixtures and won't copy their tree.
  • Interface: an opt-in main-image mode for pe_map_run in tools/pe_map.cpp.
    • On start and on DLL_THREAD_ATTACH, it saves each thread's slot 0 and installs the image's block. This covers the calling thread, a sweep of threads that already exist, and new threads.
    • Records are keyed by thread ID and TEB, and a stale record for a reused ID is dropped.
    • On thread detach, it restores the saved block after the EXE's own callbacks. On release it restores the remaining live threads. The template stays alive while any thread still uses it.
  • Fixture: a CRT-free /GA EXE with a 0x1400-byte initialized __declspec(thread) array, compared against a normal Windows launch.
  • Controls: the same EXE under plain pe_map_run must report tls_in_slot0=no; a reused thread ID must not reuse a stale record; the host's slot 0 must be restored.
  • Scope: the CRT ExitProcess exit path (IAT hook, worker alive at exit) stays separate, as R0Y00 suggested. This is also separate from #961 (ordinal-only imports).
  • Environment: Windows 10 Pro 10.0.19045, MSVC x64, dev and release.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111564103 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111564103). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T19:24:38Z. --- Claiming the main-image TLS slot 0 and per-thread initialization slice R0Y00 asked for at 18:29Z. It builds on #883 and #920. - **Credit:** the rule and fixture design are MoonYueya's (18:23Z and 19:17Z above). `/GA` image code reads its TLS block through slot 0 without loading `_tls_index`, so the main image must own slot 0 in every thread. MoonYueya offered to review. I'll write our own source-built fixtures and won't copy their tree. - **Interface:** an opt-in main-image mode for `pe_map_run` in `tools/pe_map.cpp`. - On start and on `DLL_THREAD_ATTACH`, it saves each thread's slot 0 and installs the image's block. This covers the calling thread, a sweep of threads that already exist, and new threads. - Records are keyed by thread ID and TEB, and a stale record for a reused ID is dropped. - On thread detach, it restores the saved block after the EXE's own callbacks. On release it restores the remaining live threads. The template stays alive while any thread still uses it. - **Fixture:** a CRT-free `/GA` EXE with a `0x1400`-byte initialized `__declspec(thread)` array, compared against a normal Windows launch. - **Controls:** the same EXE under plain `pe_map_run` must report `tls_in_slot0=no`; a reused thread ID must not reuse a stale record; the host's slot 0 must be restored. - **Scope:** the CRT `ExitProcess` exit path (IAT hook, worker alive at exit) stays separate, as R0Y00 suggested. This is also separate from #961 (ordinal-only imports). - **Environment:** Windows 10 Pro 10.0.19045, MSVC x64, `dev` and `release`. AI-assisted (Claude Code).
Jess-Doit commented 2026-11-24 06:49:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T19:24:55Z.


I’ll take the scoped content-root fixture from the 19:19 UTC request. I’ll use a source-built x64 Windows EXE, a process-local resolver and generated archive bytes under the build output. It will read the package-root file, verify a missing content path stays missing even when a save/config decoy exists, refuse an occupied drive, and check that the scoped mapping is gone after both success and failure. The test leaves Windows drive assignments intact.

I’ll verify on Windows 10 22H2 (19045), MSVC 19.44 x64, in Debug and Release. Scope is the independent fixture.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111570927 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111570927). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T19:24:55Z. --- I’ll take the scoped content-root fixture from the 19:19 UTC request. I’ll use a source-built x64 Windows EXE, a process-local resolver and generated archive bytes under the build output. It will read the package-root file, verify a missing content path stays missing even when a save/config decoy exists, refuse an occupied drive, and check that the scoped mapping is gone after both success and failure. The test leaves Windows drive assignments intact. I’ll verify on Windows 10 22H2 (19045), MSVC 19.44 x64, in Debug and Release. Scope is the independent fixture. AI-assisted (Codex).
Jess-Doit commented 2026-11-24 06:49:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T19:30:47Z.


The scoped content-root fixture passed on Windows 10 22H2 (19045.6456), MSVC 19.44 x64, SDK 10.0.26100, in Debug and Release.

cmake --build --preset dev --target guest_content_root_check
ctest --preset dev --no-tests=error -R '^startup_content_root$' -V

The same commands passed with release. The process-local guest drive opened the generated package bytes read-only and refused a host letter already in use. A save/config decoy did not satisfy a missing content file. Both scopes released their mapping, the host drive mask stayed unchanged, and the generated files were removed. The wrong-root, occupied-drive and retained-mapping controls each failed at the expected check.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111710889 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111710889). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T19:30:47Z. --- The scoped content-root fixture passed on Windows 10 22H2 (19045.6456), MSVC 19.44 x64, SDK 10.0.26100, in Debug and Release. ```powershell cmake --build --preset dev --target guest_content_root_check ctest --preset dev --no-tests=error -R '^startup_content_root$' -V ``` The same commands passed with `release`. The process-local guest drive opened the generated package bytes read-only and refused a host letter already in use. A save/config decoy did not satisfy a missing content file. Both scopes released their mapping, the host drive mask stayed unchanged, and the generated files were removed. The wrong-root, occupied-drive and retained-mapping controls each failed at the expected check. AI-assisted (Codex).
rasptum commented 2026-11-24 06:49:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T19:36:45Z.


XG swizzle-selection comparison: #979. It is test-only, with no production xg_xs.dll binding. The results are AddrLib observations: a match establishes the chosen PC reference behavior only, and the Xbox-specific XG selection and its inputs still need separate evidence.

  • Reference. AMD addrlib from Mesa src/amd/addrlib at mesa-25.1.0 (5c142e46), MIT, used as an optional local dependency (tools/fetch_addrlib.py).
  • Profile. Mesa's gfx10.3 "navi21" test configuration: family 0x8F, revision 0x28, GB_ADDR_CONFIG 0x444.
  • Fixed table of 10 requests. Mipmapped and render, display or UAV textures select SW_64KB_R_X. Small single-mip textures select SW_4KB_D_X. Depth selects SW_64KB_Z_X. The 4096x1 row selects SW_LINEAR.
  • Controls:
    • an always-linear provider disagrees on all 9 tiled rows;
    • forced linear gives SW_LINEAR for colour, and depth is refused with ADDR_INVALIDPARAMS;
    • with linear forbidden, nothing selects linear;
    • a tight (64 < 128) or misaligned explicit pitch is refused, and the required pitch is accepted.
  • Without addrlib the test returns 77, so CI skips it unless the dependency is present.

Tested: commit 8e8bf20, Windows 10 Pro 10.0.19045.6466, MSVC 19.44 x64. dev and release full builds passed, and the targeted CTests passed 4/4 in each preset. The docs-links, bidi and hardware-report checks passed.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111848662 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111848662). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T19:36:45Z. --- XG swizzle-selection comparison: #979. It is test-only, with no production `xg_xs.dll` binding. The results are **AddrLib observations**: a match establishes the chosen PC reference behavior only, and the Xbox-specific XG selection and its inputs still need separate evidence. - **Reference.** AMD addrlib from Mesa `src/amd/addrlib` at `mesa-25.1.0` (`5c142e46`), MIT, used as an optional local dependency (`tools/fetch_addrlib.py`). - **Profile.** Mesa's gfx10.3 "navi21" test configuration: family 0x8F, revision 0x28, `GB_ADDR_CONFIG` 0x444. - **Fixed table of 10 requests.** Mipmapped and render, display or UAV textures select `SW_64KB_R_X`. Small single-mip textures select `SW_4KB_D_X`. Depth selects `SW_64KB_Z_X`. The 4096x1 row selects `SW_LINEAR`. - **Controls:** - an always-linear provider disagrees on all 9 tiled rows; - forced linear gives `SW_LINEAR` for colour, and depth is refused with `ADDR_INVALIDPARAMS`; - with linear forbidden, nothing selects linear; - a tight (64 < 128) or misaligned explicit pitch is refused, and the required pitch is accepted. - **Without addrlib** the test returns 77, so CI skips it unless the dependency is present. **Tested:** commit `8e8bf20`, Windows 10 Pro 10.0.19045.6466, MSVC 19.44 x64. `dev` and `release` full builds passed, and the targeted CTests passed 4/4 in each preset. The docs-links, bidi and hardware-report checks passed. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:49:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T19:41:34Z.


#974 has merged at 23d2e93b with both Windows and both Linux jobs passing. I also built and ran the source-built fixture independently with /Od and /O2. Both the 64 KiB and 2 MiB base alignments committed exactly 8,192 bytes for the 4,101-byte request, with zero fill, cross-page readback, successful release and the original pages intact after all three refusal cases. This records CPU backing for the first claim. The other protection configuration and the live device/queue work on #874 remain separate.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111963980 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7111963980). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T19:41:34Z. --- #974 has merged at 23d2e93b with both Windows and both Linux jobs passing. I also built and ran the source-built fixture independently with /Od and /O2. Both the 64 KiB and 2 MiB base alignments committed exactly 8,192 bytes for the 4,101-byte request, with zero fill, cross-page readback, successful release and the original pages intact after all three refusal cases. This records CPU backing for the first claim. The other protection configuration and the live device/queue work on #874 remain separate.
rasptum commented 2026-11-24 06:49:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T19:44:11Z.


Second-commit check result: #981.

  • First observable discrepancy: ordinary committed pages (MEM_PRIVATE) accept MEM_DECOMMIT and lose their bytes, and can't be aliased at a second address. A live shared-page view (MEM_MAPPED, through the desktop xmem.dll physical-page pair and mapping) refuses MEM_DECOMMIT with ERROR_INVALID_PARAMETER (87) without disturbing the view. It aliases at a second address with per-view VirtualProtect (a write to the read-only view faults while the read-write view's writes show through it), and it keeps its bytes across unmap/remap.
  • Failure state: a bad span, a commit past the reservation and a conflicting protection each fail with the expected Win32 error and leave prior bytes, protections and live mappings intact.
  • Tested: Windows 10 Pro 19045, MSVC VS2022 x64. ctest -R '^xmem_commit_protection$' and the neighbouring xmem|era_heap|desktop_memory set pass in dev and release, rebased on 23d2e93. The fixture is synthetic, and the desktop choices are labelled proposed policy. It's separate from Jess-Doit's xmem_committed_memory.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112029405 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7112029405). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T19:44:11Z. --- Second-commit check result: #981. - **First observable discrepancy:** ordinary committed pages (`MEM_PRIVATE`) accept `MEM_DECOMMIT` and lose their bytes, and can't be aliased at a second address. A live shared-page view (`MEM_MAPPED`, through the desktop `xmem.dll` physical-page pair and mapping) refuses `MEM_DECOMMIT` with `ERROR_INVALID_PARAMETER` (87) without disturbing the view. It aliases at a second address with per-view `VirtualProtect` (a write to the read-only view faults while the read-write view's writes show through it), and it keeps its bytes across unmap/remap. - **Failure state:** a bad span, a commit past the reservation and a conflicting protection each fail with the expected Win32 error and leave prior bytes, protections and live mappings intact. - **Tested:** Windows 10 Pro 19045, MSVC VS2022 x64. `ctest -R '^xmem_commit_protection$'` and the neighbouring `xmem|era_heap|desktop_memory` set pass in dev and release, rebased on `23d2e93`. The fixture is synthetic, and the desktop choices are labelled proposed policy. It's separate from Jess-Doit's `xmem_committed_memory`. AI-assisted (Claude Code).
Holastor commented 2026-11-24 06:49:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T19:51:01Z.


XMemTransferMemory runtime export: #984.

  • Missing export resolution: Resolves the missing production export (xmem.dll!XMemTransferMemory @13) identified in the runtime import binding preflight checkpoint.
  • Parameter validation: Rejects partition selector != 1 (tools partition), zero size, unaligned size (not 2 MiB aligned), or sizes exceeding 16 MiB with ERROR_INVALID_PARAMETER (87).
  • Desktop refusal: On a no-tools desktop runtime (XMemIsToolsMemAvailable() == FALSE per #896 / #955), returns FALSE with ERROR_NOT_SUPPORTED (50) and never reports unbacked ownership transfer.
  • Tested: commit a8bbb46, Windows 11 x64, MSVC 19.51, CMake/Ninja.
    cmake --build --preset dev --target xmem_shim xmem_shim_check
    ctest --preset dev --no-tests=error -R '^xmem_shim_' -V
    
    The same commands passed with release (12/12 xmem_shim_* tests passed in both presets). The docs_links_check, bidi_controls_check, form_coverage_check, and xmem_attribute_scan_check checks all passed.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112192545 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7112192545). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T19:51:01Z. --- `XMemTransferMemory` runtime export: #984. - **Missing export resolution**: Resolves the missing production export (`xmem.dll!XMemTransferMemory` @13) identified in the runtime import binding preflight checkpoint. - **Parameter validation**: Rejects partition selector `!= 1` (tools partition), zero size, unaligned size (not 2 MiB aligned), or sizes exceeding 16 MiB with `ERROR_INVALID_PARAMETER` (87). - **Desktop refusal**: On a no-tools desktop runtime (`XMemIsToolsMemAvailable() == FALSE` per #896 / #955), returns `FALSE` with `ERROR_NOT_SUPPORTED` (50) and never reports unbacked ownership transfer. - **Tested**: commit `a8bbb46`, Windows 11 x64, MSVC 19.51, CMake/Ninja. ```powershell cmake --build --preset dev --target xmem_shim xmem_shim_check ctest --preset dev --no-tests=error -R '^xmem_shim_' -V ``` The same commands passed with `release` (12/12 `xmem_shim_*` tests passed in both presets). The `docs_links_check`, `bidi_controls_check`, `form_coverage_check`, and `xmem_attribute_scan_check` checks all passed.
R0Y00 commented 2026-11-24 06:49:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T20:03:08Z.


#981 has merged at 79e25a9f. The source-built Windows Release rerun passed the second protection case and its three neighbouring XMem tests (4/4). For the tested desktop paths, private commit accepted decommit, while the shared section view refused it with 87, retained bytes across remap, and kept protection local to each alias. The write through the read-only view faulted without changing its bytes. This records the two Windows backing behaviors for the protection claim.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112482522 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7112482522). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T20:03:08Z. --- #981 has merged at 79e25a9f. The source-built Windows Release rerun passed the second protection case and its three neighbouring XMem tests (4/4). For the tested desktop paths, private commit accepted decommit, while the shared section view refused it with 87, retained bytes across remap, and kept protection local to each alias. The write through the read-only view faulted without changing its bytes. This records the two Windows backing behaviors for the protection claim.
rasptum commented 2026-11-24 06:49:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T20:03:44Z.


Main-image TLS slot 0 and per-thread initialization: #988. @MoonYueya, it lifts your rule and fixture design into pe_map, and your offered review would be very welcome.

Tested: commit a472aba, Windows 10 Pro 10.0.19045.6466, MSVC 19.44.35207.1 x64, dev and release. Inputs are source-built only.

Interface: pe_map_run_main in tools/pe_map.cpp; pe_map_run is unchanged.

  • It saves and installs the image's block in slot 0 on the calling thread, on a sweep of existing threads (loader workers and threads that skip notifications are excluded) and on every later DLL_THREAD_ATTACH.
  • Records are keyed by thread ID and TEB, and stale ones are dropped.
  • Slot 0 is restored on DLL_THREAD_DETACH after the image's callbacks and before ntdll frees the blocks, and on release for the threads still alive.
  • The carrier stays loaded if a live thread cannot be restored.

Command:

cmake --build --preset dev --target pe_map cpu_exe_tls_slot0 cpu_exe_tls_slot0_host
ctest --preset dev --no-tests=error -R '^cpu_native_exe_tls_slot0$' -V

The release preset is the same.

Expected and observed (CRT-free /GA EXE with a 0x1400-byte 0xFF array, hosted by a CRT-free host that owns slot 0):

Windows launch:        LOG:m1=yy m:yyyy a2=yy a:yyyy a3=y- b2=yy b:yyyy b3=y- X=0
pe_map_run_main:       LOG:m1=yy m:yyyy a2=yy a:yyyy a3=y- b2=yy b:yyyy b3=y- X=0
  HOST: installed_main=y installed_existing=y host_tls=y existing_host_tls=y heap_valid=y stats=5,4,1,0,0,0
pe_map_run (control):  LOG:m1=n- m:n--- a2=n- a:n--- a3=n- b2=n- b:n--- b3=n- X=8
  • tls_in_slot0, array intact and heap valid: on the initial thread, both workers and the callbacks.
  • host_tls: the host's block and sentinel are back after release on the host thread and on a pre-existing thread.
  • Negative control: plain pe_map_run reports tls_in_slot0=no everywhere.
  • Mutation: skipping the release restore fails host_tls.
  • Thread-ID reuse cannot be forced. Freed IDs come back only after other free IDs in a system-wide table. Reuse was observed in 1 of more than 30 runs, where the stale record was dropped on that attach. Otherwise release drops it without touching the freed TEB.
  • Regressions: the neighbouring cpu_native_{tls,tls_value,tls_data,exe_tls,exe_start,startup,lifetime,load_cookie} tests passed 9/9 per preset on main with #961.

Not covered: the CRT ExitProcess exit path (hook on the image's own import) and a worker alive at exit, per R0Y00's suggestion to review that separately. Also not covered: more than one main image, and threads that attach during the process-attach callbacks. This is a loader-stage result, not a startup result.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112497366 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7112497366). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T20:03:44Z. --- Main-image TLS slot 0 and per-thread initialization: #988. @MoonYueya, it lifts your rule and fixture design into `pe_map`, and your offered review would be very welcome. **Tested:** commit `a472aba`, Windows 10 Pro 10.0.19045.6466, MSVC 19.44.35207.1 x64, `dev` and `release`. Inputs are source-built only. **Interface:** `pe_map_run_main` in `tools/pe_map.cpp`; `pe_map_run` is unchanged. - It saves and installs the image's block in slot 0 on the calling thread, on a sweep of existing threads (loader workers and threads that skip notifications are excluded) and on every later `DLL_THREAD_ATTACH`. - Records are keyed by thread ID and TEB, and stale ones are dropped. - Slot 0 is restored on `DLL_THREAD_DETACH` after the image's callbacks and before ntdll frees the blocks, and on release for the threads still alive. - The carrier stays loaded if a live thread cannot be restored. **Command:** ```powershell cmake --build --preset dev --target pe_map cpu_exe_tls_slot0 cpu_exe_tls_slot0_host ctest --preset dev --no-tests=error -R '^cpu_native_exe_tls_slot0$' -V ``` The `release` preset is the same. **Expected and observed** (CRT-free `/GA` EXE with a `0x1400`-byte `0xFF` array, hosted by a CRT-free host that owns slot 0): ```text Windows launch: LOG:m1=yy m:yyyy a2=yy a:yyyy a3=y- b2=yy b:yyyy b3=y- X=0 pe_map_run_main: LOG:m1=yy m:yyyy a2=yy a:yyyy a3=y- b2=yy b:yyyy b3=y- X=0 HOST: installed_main=y installed_existing=y host_tls=y existing_host_tls=y heap_valid=y stats=5,4,1,0,0,0 pe_map_run (control): LOG:m1=n- m:n--- a2=n- a:n--- a3=n- b2=n- b:n--- b3=n- X=8 ``` - **tls_in_slot0, array intact and heap valid:** on the initial thread, both workers and the callbacks. - **host_tls:** the host's block and sentinel are back after release on the host thread and on a pre-existing thread. - **Negative control:** plain `pe_map_run` reports `tls_in_slot0=no` everywhere. - **Mutation:** skipping the release restore fails `host_tls`. - **Thread-ID reuse cannot be forced.** Freed IDs come back only after other free IDs in a system-wide table. Reuse was observed in 1 of more than 30 runs, where the stale record was dropped on that attach. Otherwise release drops it without touching the freed TEB. - **Regressions:** the neighbouring `cpu_native_{tls,tls_value,tls_data,exe_tls,exe_start,startup,lifetime,load_cookie}` tests passed 9/9 per preset on main with #961. **Not covered:** the CRT `ExitProcess` exit path (hook on the image's own import) and a worker alive at exit, per R0Y00's suggestion to review that separately. Also not covered: more than one main image, and threads that attach during the process-attach callbacks. This is a loader-stage result, not a startup result. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:49:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T20:12:02Z.


#983 has merged at d7c52d23. The source-built resolver passed in independent /Od and /O2 runs. The package bytes matched, the save/config decoy stayed outside the lookup, an occupied host letter was refused, and both scopes cleaned up. The fixture resolver leaves the host drive table intact. This completes the standalone content-root acceptance case.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112717192 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7112717192). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T20:12:02Z. --- #983 has merged at d7c52d23. The source-built resolver passed in independent /Od and /O2 runs. The package bytes matched, the save/config decoy stayed outside the lookup, an occupied host letter was refused, and both scopes cleaned up. The fixture resolver leaves the host drive table intact. This completes the standalone content-root acceptance case.
Holastor commented 2026-11-24 06:49:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T20:30:49Z.


Claiming the audio ACP address and memory slice per the request above, building on @rasptum's inventory in #947.

  • Stage: ACP address and memory mapping (acphal.dll!ApuAlloc, !ApuFree, !ApuMapVirtualAddress, !ApuMapApuAddress, !ApuIsVirtualAddressValid).
  • Interface:
    • ApuAlloc and ApuFree: public call shape from MIT Microsoft/DirectXTK12 (SoundEffect.cpp, WaveBankReader.cpp, SoundStreamInstance.cpp).
    • ApuMapVirtualAddress: translates a CPU virtual address (const void*) to an APU device address (UINT64 / APU_ADDRESS).
    • ApuMapApuAddress: translates an APU device address (UINT64) back to a CPU virtual address (void*).
    • ApuIsVirtualAddressValid: returns BOOL indicating whether a pointer belongs to an active APU allocation.
  • Plan:
    • Implement a source-built caller (tests/cpu/apu_address_caller.asm) and controlled test recording provider (tests/cpu/apu_address_provider.cpp) in an isolated fixture without editing production src/ files.
    • Verify bidirectional address translation identity: ApuMapApuAddress(ApuMapVirtualAddress(ptr)) == ptr for an ApuAlloc-allocated block.
    • Verify offset preservation: ApuMapVirtualAddress(ptr + offset) == apu_addr + offset.
    • Verify validity lifecycle: ApuIsVirtualAddressValid(ptr) reports TRUE while the block is live and FALSE after ApuFree(ptr).
    • Refusal and failure controls: invalid/stack/null addresses return FALSE from ApuIsVirtualAddressValid, 0 from ApuMapVirtualAddress, and nullptr from ApuMapApuAddress.
    • Negative controls: withholding any export stops pe_map before entry with STATUS["unresolved"].
    • Compare execution under the native Windows loader and pe_map.
  • Environment: Windows 11 x64 (build 26200), MSVC 19.51, CMake/Ninja, dev and release presets. Source-built fixtures only.

I'll report the tested commit, commands, and results here with the PR link once verified.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7113172380 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7113172380). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T20:30:49Z. --- Claiming the audio ACP address and memory slice per the request above, building on @rasptum's inventory in #947. - **Stage:** ACP address and memory mapping (`acphal.dll!ApuAlloc`, `!ApuFree`, `!ApuMapVirtualAddress`, `!ApuMapApuAddress`, `!ApuIsVirtualAddressValid`). - **Interface:** - `ApuAlloc` and `ApuFree`: public call shape from MIT Microsoft/DirectXTK12 (`SoundEffect.cpp`, `WaveBankReader.cpp`, `SoundStreamInstance.cpp`). - `ApuMapVirtualAddress`: translates a CPU virtual address (`const void*`) to an APU device address (`UINT64` / `APU_ADDRESS`). - `ApuMapApuAddress`: translates an APU device address (`UINT64`) back to a CPU virtual address (`void*`). - `ApuIsVirtualAddressValid`: returns `BOOL` indicating whether a pointer belongs to an active APU allocation. - **Plan:** - Implement a source-built caller (`tests/cpu/apu_address_caller.asm`) and controlled test recording provider (`tests/cpu/apu_address_provider.cpp`) in an isolated fixture without editing production `src/` files. - Verify bidirectional address translation identity: `ApuMapApuAddress(ApuMapVirtualAddress(ptr)) == ptr` for an `ApuAlloc`-allocated block. - Verify offset preservation: `ApuMapVirtualAddress(ptr + offset) == apu_addr + offset`. - Verify validity lifecycle: `ApuIsVirtualAddressValid(ptr)` reports `TRUE` while the block is live and `FALSE` after `ApuFree(ptr)`. - Refusal and failure controls: invalid/stack/null addresses return `FALSE` from `ApuIsVirtualAddressValid`, 0 from `ApuMapVirtualAddress`, and `nullptr` from `ApuMapApuAddress`. - Negative controls: withholding any export stops `pe_map` before entry with `STATUS["unresolved"]`. - Compare execution under the native Windows loader and `pe_map`. - **Environment:** Windows 11 x64 (build 26200), MSVC 19.51, CMake/Ninja, `dev` and `release` presets. Source-built fixtures only. I'll report the tested commit, commands, and results here with the PR link once verified.
Holastor commented 2026-11-24 06:49:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T20:38:02Z.


ACP address and memory slice result: #1000.

Tested: commit 5f0aa84 (rebased on upstream/main at aabbedd8), Windows 11 x64 (build 26200), MSVC 19.51, CMake/Ninja. Source-built inputs only.

Commands:

cmake --build --preset dev --target cpu_apu_address_provider cpu_apu_address_provider_faulty cpu_apu_address_caller
ctest --preset dev --no-tests=error -R '^cpu_native_apu_address$' -V

The same commands passed with release (1/1 tests passed in both presets, ~0.18s), followed by docs_links_check.py (13 files, 211 links), bidi_controls_check.py (836 files), form_coverage_check.py, and hardware_reports_check.py.

Expected vs observed:

  • Bidirectional mapping identity: A block allocated through ApuAlloc (4 KiB, 2 KiB aligned) translates to an APU device address via ApuMapVirtualAddress, and ApuMapApuAddress translates it back to the exact identical CPU pointer (ApuMapApuAddress(ApuMapVirtualAddress(ptr)) == ptr). Observed as expected under both the Windows native loader and pe_map (exit code 0x8A1).
  • Offset preservation: Linear offsets inside the allocation translate consistently (ApuMapVirtualAddress(ptr + 0x400) == apu_addr + 0x400 and ApuMapApuAddress(apu_addr + 0x400) == ptr + 0x400). Observed as expected.
  • Validity lifecycle: ApuIsVirtualAddressValid(ptr) returns TRUE (1) while the allocation is live, and returns FALSE (0) after ApuFree(ptr). Subsequent mapping calls (ApuMapVirtualAddress and ApuMapApuAddress) return 0 and nullptr. Observed as expected.
  • Data access: Data written through the mapped pointer (0x5A17A0C1 and 0x0A0D10C0D) is verified upon readback.
  • Refusal controls: Null pointer, stack address, and out-of-range APU address are refused with FALSE / 0 / nullptr.
  • Negative control (faulty provider): Provider build with faulty mapping (APU_TEST_FAULTY) is caught and exits 0xF04 at Step 4 under both loaders.
  • Negative control (withholding): Withholding any of ApuMapVirtualAddress, ApuMapApuAddress, or ApuIsVirtualAddressValid stops pe_map at import resolution before entry with STATUS["unresolved"] naming the missing export.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7113339369 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7113339369). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T20:38:02Z. --- ACP address and memory slice result: #1000. **Tested:** commit `5f0aa84` (rebased on `upstream/main` at `aabbedd8`), Windows 11 x64 (build 26200), MSVC 19.51, CMake/Ninja. Source-built inputs only. **Commands:** ```powershell cmake --build --preset dev --target cpu_apu_address_provider cpu_apu_address_provider_faulty cpu_apu_address_caller ctest --preset dev --no-tests=error -R '^cpu_native_apu_address$' -V ``` The same commands passed with `release` (1/1 tests passed in both presets, ~0.18s), followed by `docs_links_check.py` (13 files, 211 links), `bidi_controls_check.py` (836 files), `form_coverage_check.py`, and `hardware_reports_check.py`. **Expected vs observed:** - **Bidirectional mapping identity:** A block allocated through `ApuAlloc` (4 KiB, 2 KiB aligned) translates to an APU device address via `ApuMapVirtualAddress`, and `ApuMapApuAddress` translates it back to the exact identical CPU pointer (`ApuMapApuAddress(ApuMapVirtualAddress(ptr)) == ptr`). Observed as expected under both the Windows native loader and `pe_map` (exit code `0x8A1`). - **Offset preservation:** Linear offsets inside the allocation translate consistently (`ApuMapVirtualAddress(ptr + 0x400) == apu_addr + 0x400` and `ApuMapApuAddress(apu_addr + 0x400) == ptr + 0x400`). Observed as expected. - **Validity lifecycle:** `ApuIsVirtualAddressValid(ptr)` returns `TRUE` (`1`) while the allocation is live, and returns `FALSE` (`0`) after `ApuFree(ptr)`. Subsequent mapping calls (`ApuMapVirtualAddress` and `ApuMapApuAddress`) return 0 and `nullptr`. Observed as expected. - **Data access:** Data written through the mapped pointer (`0x5A17A0C1` and `0x0A0D10C0D`) is verified upon readback. - **Refusal controls:** Null pointer, stack address, and out-of-range APU address are refused with `FALSE` / 0 / `nullptr`. - **Negative control (faulty provider):** Provider build with faulty mapping (`APU_TEST_FAULTY`) is caught and exits `0xF04` at Step 4 under both loaders. - **Negative control (withholding):** Withholding any of `ApuMapVirtualAddress`, `ApuMapApuAddress`, or `ApuIsVirtualAddressValid` stops `pe_map` at import resolution before entry with `STATUS["unresolved"]` naming the missing export.
Jess-Doit commented 2026-11-24 06:49:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T21:03:47Z.


Windows 10 binding checkpoint on main at 1ccc326, after #984 and #968, with MSVC 19.44 x64 Release.

With System32 and the source-built desktop XMem and D3D12 shims, the probe bound 298 imports in two matching runs. The first unresolved import was chad.dll!XDspActivate (status 5). Withholding just D3D12ConfigureVirtualMemoryX restored the prior 217-import stop. The revised probe preserves on-disk ordinal imports when the static parser provides a name annotation. All three focused XMem checks passed.

This is an import-only result. The probe ended before TLS or entry. It gives the existing optional audio-provider work a Windows 10 baseline. Prior provider checkpoint

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7113944164 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7113944164). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T21:03:47Z. --- Windows 10 binding checkpoint on `main` at `1ccc326`, after #984 and #968, with MSVC 19.44 x64 Release. With System32 and the source-built desktop XMem and D3D12 shims, the probe bound **298 imports** in two matching runs. The first unresolved import was `chad.dll!XDspActivate` (status 5). Withholding just `D3D12ConfigureVirtualMemoryX` restored the prior 217-import stop. The revised probe preserves on-disk ordinal imports when the static parser provides a name annotation. All three focused XMem checks passed. This is an import-only result. The probe ended before TLS or entry. It gives the existing optional audio-provider work a Windows 10 baseline. [Prior provider checkpoint](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109979518) AI-assisted (Codex).
Jess-Doit commented 2026-11-24 06:49:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T21:13:41Z.


I’ll reproduce the optional audio-provider integration on Windows 10 22H2 (19045) using the pinned TomBox f89e4106 revision. The scope is the chad, xapu and acphal exports and source-built command/lifetime checks, followed by the same import-only probe with the reviewed provider DLLs. The GPL providers stay in their external checkout. This leaves the existing ACP and startup implementations with their current contributors.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114176723 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7114176723). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T21:13:41Z. --- I’ll reproduce the optional audio-provider integration on Windows 10 22H2 (19045) using the pinned TomBox f89e4106 revision. The scope is the chad, xapu and acphal exports and source-built command/lifetime checks, followed by the same import-only probe with the reviewed provider DLLs. The GPL providers stay in their external checkout. This leaves the existing ACP and startup implementations with their current contributors. AI-assisted (Codex).
Jess-Doit commented 2026-11-24 06:49:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T21:26:39Z.


Independent Windows 10 22H2 check for the optional audio providers in the startup checkpoint.

  • Built external TomBox f89e4106 (chad, xapu, acphal) with Rust 1.91.1 x64 MSVC. All 19 required exports resolved. The source-built caller checked a generated XDsp FFT, rejection of invalid input, and ordered XApu start/reset/stop results from the worker. All three DLLs stayed pinned after the normal load references were released and through child exit.
  • The provider unit suites passed 37 checks. Four XApu tests were excluded because the separate Opus reference files were unavailable in this checkout.
  • Using the same Release mapper and shims at 1ccc326, two fresh import-only runs on Windows 19045.6456 advanced from 298 to 303 bound imports. The five new bindings were in chad.dll. Both runs then returned mapper status 5 at xg_xs.dll!XGCreateTextureComputer. Withholding only chad.dll reproduced the 298-import baseline at chad.dll!XDspActivate.

The probe stopped before title TLS callbacks or entry point and before it reached any XApu or ACP HAL imports. The audio DLLs were built and tested separately from Xbox2Windows. #979 gives an independent PC AddrLib reference for swizzle selection, while the XGCreateTextureComputer binding is still open in this test configuration.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114468277 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7114468277). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T21:26:39Z. --- Independent Windows 10 22H2 check for the optional audio providers in the [startup checkpoint](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7109979518). - Built external TomBox `f89e4106` (`chad`, `xapu`, `acphal`) with Rust 1.91.1 x64 MSVC. All 19 required exports resolved. The source-built caller checked a generated XDsp FFT, rejection of invalid input, and ordered XApu start/reset/stop results from the worker. All three DLLs stayed pinned after the normal load references were released and through child exit. - The provider unit suites passed 37 checks. Four XApu tests were excluded because the separate Opus reference files were unavailable in this checkout. - Using the same Release mapper and shims at `1ccc326`, two fresh import-only runs on Windows `19045.6456` advanced from 298 to 303 bound imports. The five new bindings were in `chad.dll`. Both runs then returned mapper status 5 at `xg_xs.dll!XGCreateTextureComputer`. Withholding only `chad.dll` reproduced the 298-import baseline at `chad.dll!XDspActivate`. The probe stopped before title TLS callbacks or entry point and before it reached any XApu or ACP HAL imports. The audio DLLs were built and tested separately from Xbox2Windows. #979 gives an independent PC AddrLib reference for swizzle selection, while the `XGCreateTextureComputer` binding is still open in this test configuration. AI-assisted (Codex).
R0Y00 commented 2026-11-24 06:49:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T21:32:10Z.


Thanks for the independent Windows 10 run. The withheld-chad.dll control establishes the five extra bindings for this pinned provider set. The separate source-built caller gives FFT, invalid-input, queue-order and module-lifetime evidence. The import-only run stopped at XGCreateTextureComputer, before TLS, entry, or any XApu/ACP import calls. Keep this result linked as external-provider evidence and keep the startup issue open. A follow-up on the same configuration can reuse #979 as the layout reference, with an independent source-built factory and layout comparison before considering a new binding.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114589866 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7114589866). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T21:32:10Z. --- Thanks for the independent Windows 10 run. The withheld-`chad.dll` control establishes the five extra bindings for this pinned provider set. The separate source-built caller gives FFT, invalid-input, queue-order and module-lifetime evidence. The import-only run stopped at `XGCreateTextureComputer`, before TLS, entry, or any XApu/ACP import calls. Keep this result linked as external-provider evidence and keep the startup issue open. A follow-up on the same configuration can reuse #979 as the layout reference, with an independent source-built factory and layout comparison before considering a new binding.
Jess-Doit commented 2026-11-24 06:49:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T21:37:10Z.


Follow-up to the optional audio checkpoint. I built the external TomBox xg_xs at f89e4106 with Rust 1.91.1 x64 MSVC on Windows 10 19045.6456, with console forwarding disabled.

  • A source-built caller used XGCreateTextureComputer to check a generated three-mip RGBA8 texture. All 147 texels copied back in each of the linear and automatic tiled cases. Reading the tiled output with the linear reference disagreed on 139 of 147 texels. Zero width returned E_INVALIDARG and preserved the output pointer.
  • With the same Release mapper and shims at 1ccc326 and the same audio providers, two fresh import-only runs advanced from 303 to 304 bound imports. XGCreateTextureComputer resolved. Both runs then returned mapper status 5 at xg_xs.dll!XGSuggestSwizzleMode, which is absent from the built DLL. Withholding only XG reproduced the full 303-import baseline. The probe stopped before title TLS callbacks or entry point.

The synthetic measurements describe TomBox's layout and copy behavior. DirectXTex #498 has a public reproducer for the next import's descriptor, flags and output arguments. XCL's implementation identifies its behavior as inferred. Flag handling and the returned layout encoding remain to be verified for this export.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114699213 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7114699213). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T21:37:10Z. --- Follow-up to the optional audio checkpoint. I built the external TomBox `xg_xs` at `f89e4106` with Rust 1.91.1 x64 MSVC on Windows 10 `19045.6456`, with console forwarding disabled. - A source-built caller used `XGCreateTextureComputer` to check a generated three-mip RGBA8 texture. All 147 texels copied back in each of the linear and automatic tiled cases. Reading the tiled output with the linear reference disagreed on 139 of 147 texels. Zero width returned `E_INVALIDARG` and preserved the output pointer. - With the same Release mapper and shims at `1ccc326` and the same audio providers, two fresh import-only runs advanced from 303 to 304 bound imports. `XGCreateTextureComputer` resolved. Both runs then returned mapper status 5 at `xg_xs.dll!XGSuggestSwizzleMode`, which is absent from the built DLL. Withholding only XG reproduced the full 303-import baseline. The probe stopped before title TLS callbacks or entry point. The synthetic measurements describe TomBox's layout and copy behavior. [DirectXTex #498](https://github.com/microsoft/DirectXTex/issues/498) has a public reproducer for the next import's descriptor, flags and output arguments. [XCL's implementation](https://github.com/ivall/xcl/blob/af20b4b38e5a8003234f28091fb45e03aca68167/crates/xcl/src/hle/xg.rs) identifies its behavior as inferred. Flag handling and the returned layout encoding remain to be verified for this export. AI-assisted (Codex).
Jess-Doit commented 2026-11-24 06:49:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T21:43:54Z.


Static caller follow-up to the 304-import checkpoint. Both verified direct calls to XGSuggestSwizzleMode pass literal selector 0 and use the descriptor's own Layout field as the output pointer. The descriptor enters with Layout set to unknown. The shared status helper checks selected DXGI failures, and the higher-level callers I traced continue with the descriptor without branching on the returned HRESULT. One path passes a copy of that descriptor to XGCreateTextureComputer.

This gives a concrete source-built fixture shape. Exercise the aliased output with flag 0, compare a separate output, and use the resulting layout in the texture-computer call. DirectXTex #498 shows the three-argument shape with a separate output. The exact flag-zero mode selection and returned encoding still need a reference for this export. This check was static and the import-binding checkpoint remains at 304.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114844809 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7114844809). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T21:43:54Z. --- Static caller follow-up to the 304-import checkpoint. Both verified direct calls to `XGSuggestSwizzleMode` pass literal selector `0` and use the descriptor's own `Layout` field as the output pointer. The descriptor enters with `Layout` set to unknown. The shared status helper checks selected DXGI failures, and the higher-level callers I traced continue with the descriptor without branching on the returned HRESULT. One path passes a copy of that descriptor to `XGCreateTextureComputer`. This gives a concrete source-built fixture shape. Exercise the aliased output with flag `0`, compare a separate output, and use the resulting layout in the texture-computer call. [DirectXTex #498](https://github.com/microsoft/DirectXTex/issues/498) shows the three-argument shape with a separate output. The exact flag-zero mode selection and returned encoding still need a reference for this export. This check was static and the import-binding checkpoint remains at 304. AI-assisted (Codex).
R0Y00 commented 2026-11-24 06:49:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T21:51:52Z.


Thanks for the independent source-built XG layout comparison and the missing-provider control. Please take the next public fixture on this thread. Use one generated texture descriptor with an unknown input layout, compare a separate output with an output aliased to the descriptor field, and feed the resulting layout to the texture computer. Compare levels and texels and keep distinct linear/tiled and invalid-descriptor controls. Use the public DirectXTex example for the three-argument call shape and #979 as a pinned PC layout reference. Flag semantics and the encoding of the Xbox layout result still need independent evidence before we bind a production export. The import-only result stays separate from fixture execution.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115020437 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7115020437). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T21:51:52Z. --- Thanks for the independent source-built XG layout comparison and the missing-provider control. Please take the next public fixture on this thread. Use one generated texture descriptor with an unknown input layout, compare a separate output with an output aliased to the descriptor field, and feed the resulting layout to the texture computer. Compare levels and texels and keep distinct linear/tiled and invalid-descriptor controls. Use the public DirectXTex example for the three-argument call shape and #979 as a pinned PC layout reference. Flag semantics and the encoding of the Xbox layout result still need independent evidence before we bind a production export. The import-only result stays separate from fixture execution.
Holastor commented 2026-11-24 06:49:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T22:00:56Z.


I'll take the source-built XG swizzle mode and texture computer fixture for #870.

Scope:

  • Source-built provider exporting xg_xs.dll!XGSuggestSwizzleMode and xg_xs.dll!XGCreateTextureComputer.
  • Generated 3-mip RGBA8 texture descriptor starting with unknown input layout.
  • Exercise selector flag 0 with both a separate output pointer and an output pointer aliased to the descriptor's own Layout field.
  • Feed the resulting layout to XGCreateTextureComputer and verify mip level strides and texel round-tripping.
  • Controls: linear vs tiled layout comparison, invalid-descriptor refusal (E_INVALIDARG with output preserved), and missing-provider execution control under the PE runner.

Flag semantics, desktop layout mapping, and the exact returned swizzle encoding remain qualified as fixture choices per DirectXTex #498, #970 and #979.

AI-assisted (Antigravity).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115214461 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7115214461). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T22:00:56Z. --- I'll take the source-built XG swizzle mode and texture computer fixture for #870. Scope: - Source-built provider exporting `xg_xs.dll!XGSuggestSwizzleMode` and `xg_xs.dll!XGCreateTextureComputer`. - Generated 3-mip RGBA8 texture descriptor starting with unknown input layout. - Exercise selector flag `0` with both a separate output pointer and an output pointer aliased to the descriptor's own `Layout` field. - Feed the resulting layout to `XGCreateTextureComputer` and verify mip level strides and texel round-tripping. - Controls: linear vs tiled layout comparison, invalid-descriptor refusal (`E_INVALIDARG` with output preserved), and missing-provider execution control under the PE runner. Flag semantics, desktop layout mapping, and the exact returned swizzle encoding remain qualified as fixture choices per DirectXTex #498, #970 and #979. _AI-assisted (Antigravity)._
R0Y00 commented 2026-11-24 06:49:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T22:06:05Z.


Holastor, thanks for taking the source-built fixture. Jess-Doit's existing XG work already provides the independent texture-computer comparison and missing-provider control. Please coordinate a single fixture here: use that comparison as the cross-check for the new separate-versus-aliased output and the round trip. Jess-Doit, an independent review against #979 or a run of Holastor's candidate would cover the second check without creating another provider. If you already have a fixture branch, please link it here so the owners can combine the work.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115325106 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7115325106). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T22:06:05Z. --- Holastor, thanks for taking the source-built fixture. Jess-Doit's existing XG work already provides the independent texture-computer comparison and missing-provider control. Please coordinate a single fixture here: use that comparison as the cross-check for the new separate-versus-aliased output and the round trip. Jess-Doit, an independent review against #979 or a run of Holastor's candidate would cover the second check without creating another provider. If you already have a fixture branch, please link it here so the owners can combine the work.
rasptum commented 2026-11-24 06:49:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T22:12:13Z.


I'll take the remaining acphal.dll slice: AcpHalCreate, AcpHalAllocateShapeContexts, AcpHalReleaseShapeContexts and ApuCreateHeap. This does not overlap #1000 (address and memory exports) or the XApu/XDsp queue work.

  • Stage: ACP HAL creation, shape-context allocation and release, and APU heap creation before startup dispatch.
  • Environment: Windows 10 Pro x64 (19045), MSVC x64, CMake/Ninja, Python 3.11 (out/pe-env), dev and release presets.
  • Interface (public evidence only):
    • None of the four has a public signature. The Microsoft reference pages are behind the NDA program.
    • The MIT GDK Learn index at f8c3438 lists AcpHal, Audio Processing Unit and ShapeContexts member pages, plus per-type context pages (ShapeDmaContext, ShapeEqCompContext, ShapeFiltVolContext, ShapePcmContext, ShapeSrcContext, ShapeXmaContext, ShapeFlowGraph). Names only: no layouts, counts or argument lists.
    • MIT DirectXTK12 at f3555e3 names ApuCreateHeap only in an ApuAlloc failure diagnostic, as the heap ApuAlloc draws from. No call site.
    • Every argument list in the fixture is therefore a labelled fixture contract, not console evidence. I will not use any unaffiliated reimplementation.
  • Plan: one source-built caller plus a test-only recording provider in the #1000 style, under the Windows loader and pe_map:
    • heap creation sizes the arena that ApuAlloc then draws from, so heap exhaustion is observable through the #1000 call shape;
    • create a HAL instance, allocate shape contexts, check the recorded handle and count, release them, then release again;
    • refusals: invalid arguments leave outputs untouched, a double release is refused and counted, allocation before create is refused, and a faulty-provider build stops at a named step;
    • withholding any of the four exports stops pe_map before entry with the named unresolved import.
    • Test-only. No production acphal.dll export, since there is no public signature to bind.
  • Related: #947, #1000.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115457620 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7115457620). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T22:12:13Z. --- I'll take the remaining `acphal.dll` slice: `AcpHalCreate`, `AcpHalAllocateShapeContexts`, `AcpHalReleaseShapeContexts` and `ApuCreateHeap`. This does not overlap #1000 (address and memory exports) or the XApu/XDsp queue work. - **Stage:** ACP HAL creation, shape-context allocation and release, and APU heap creation before startup dispatch. - **Environment:** Windows 10 Pro x64 (19045), MSVC x64, CMake/Ninja, Python 3.11 (`out/pe-env`), `dev` and `release` presets. - **Interface (public evidence only):** - None of the four has a public signature. The Microsoft reference pages are behind the NDA program. - The MIT [GDK Learn index at `f8c3438`](https://github.com/microsoft/XBOX-GDK-dotnet/blob/f8c3438aa366fbbb662d8a5e724021a9d0b65f5d/eng/gdk-learn-index.json) lists `AcpHal`, `Audio Processing Unit` and `ShapeContexts` member pages, plus per-type context pages (`ShapeDmaContext`, `ShapeEqCompContext`, `ShapeFiltVolContext`, `ShapePcmContext`, `ShapeSrcContext`, `ShapeXmaContext`, `ShapeFlowGraph`). Names only: no layouts, counts or argument lists. - MIT [DirectXTK12 at `f3555e3`](https://github.com/microsoft/DirectXTK12/blob/f3555e3014a53c81a6202b786dc4d6509b95a936/Audio/SoundEffect.cpp#L249) names `ApuCreateHeap` only in an `ApuAlloc` failure diagnostic, as the heap `ApuAlloc` draws from. No call site. - Every argument list in the fixture is therefore a labelled fixture contract, not console evidence. I will not use any unaffiliated reimplementation. - **Plan:** one source-built caller plus a test-only recording provider in the #1000 style, under the Windows loader and `pe_map`: - heap creation sizes the arena that `ApuAlloc` then draws from, so heap exhaustion is observable through the #1000 call shape; - create a HAL instance, allocate shape contexts, check the recorded handle and count, release them, then release again; - refusals: invalid arguments leave outputs untouched, a double release is refused and counted, allocation before create is refused, and a faulty-provider build stops at a named step; - withholding any of the four exports stops `pe_map` before entry with the named unresolved import. - Test-only. No production `acphal.dll` export, since there is no public signature to bind. - **Related:** #947, #1000. AI-assisted (Claude Code).
rasptum commented 2026-11-24 06:49:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T22:12:17Z.


Claiming the XApu/XDsp command-queue slice of the audio work, per the request above. This leaves the ACP address and memory slice with @Holastor in #1000.

  • Stage: audio command queue, xapu.dll!XApuConnect, !XApuEnqueueCommand, !XApuGetResultCount, !XApuDequeueResult, !XApuDisconnect, then chad.dll!XDspActivate, !XDspConnectWithMaximumStreamLimit, !XDspSubmitCommand, !XDspDisconnect, !XDspDeactivate.
  • Interface (public evidence only):
    • Microsoft's MIT GDK Learn index at f8c3438 names all ten functions and their type names (XApuConnectInputParameters, XApuConnectOutputParameters, XApuCommandId, XApuResult, XDspClientHandle, XDspStreamHandle, XDspCommand, XDspStatus). It lists every one of them under restricted, so it gives no signature, field layout, enum value or error code.
    • DirectXTK12 at f3555e3 has no XApu* or XDsp* reference.
    • No signature is therefore public. The fixture's calling convention will be labelled proposed desktop policy, and no production export will be added.
  • Plan:
    • First PR: a source-built caller (tests/cpu/xapu_queue_caller.asm) and a test-only recording provider (tests/cpu/xapu_queue_provider.cpp), in the #947/#1000 fixture layout, with no edits to src/.
    • Observable effect: connect, enqueue three commands with distinct IDs, read the result count, dequeue the results in FIFO order with their IDs, disconnect.
    • Refusals: an empty-queue dequeue, a null or unknown handle, and a call after disconnect, each leaving the caller's output sentinel untouched. A lenient provider build that skips the handle check must fail the caller.
    • Missing provider: withholding each export stops pe_map at import resolution before entry, and the provider records no calls.
    • Compare the Windows loader and pe_map, in dev and release.
    • The XDsp stream lifecycle follows in a separate PR on the same pattern.
  • Environment: Windows 10 Pro 10.0.19045, MSVC 19.44 x64, CMake/Ninja. Source-built fixtures only. I won't read or use any external provider source.
  • Related work: #947 (inventory and evidence list), #1000 (ACP address slice), and @Jess-Doit's external-provider observations at 21:26Z, which I'll treat as black-box observations only.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115459034 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7115459034). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T22:12:17Z. --- Claiming the XApu/XDsp command-queue slice of the audio work, per the request above. This leaves the ACP address and memory slice with @Holastor in #1000. - **Stage:** audio command queue, `xapu.dll!XApuConnect`, `!XApuEnqueueCommand`, `!XApuGetResultCount`, `!XApuDequeueResult`, `!XApuDisconnect`, then `chad.dll!XDspActivate`, `!XDspConnectWithMaximumStreamLimit`, `!XDspSubmitCommand`, `!XDspDisconnect`, `!XDspDeactivate`. - **Interface (public evidence only):** - Microsoft's MIT [GDK Learn index at `f8c3438`](https://github.com/microsoft/XBOX-GDK-dotnet/blob/f8c3438aa366fbbb662d8a5e724021a9d0b65f5d/eng/gdk-learn-index.json) names all ten functions and their type names (`XApuConnectInputParameters`, `XApuConnectOutputParameters`, `XApuCommandId`, `XApuResult`, `XDspClientHandle`, `XDspStreamHandle`, `XDspCommand`, `XDspStatus`). It lists every one of them under `restricted`, so it gives no signature, field layout, enum value or error code. - [DirectXTK12 at `f3555e3`](https://github.com/microsoft/DirectXTK12/tree/f3555e3014a53c81a6202b786dc4d6509b95a936) has no `XApu*` or `XDsp*` reference. - No signature is therefore public. The fixture's calling convention will be labelled proposed desktop policy, and no production export will be added. - **Plan:** - First PR: a source-built caller (`tests/cpu/xapu_queue_caller.asm`) and a test-only recording provider (`tests/cpu/xapu_queue_provider.cpp`), in the #947/#1000 fixture layout, with no edits to `src/`. - Observable effect: connect, enqueue three commands with distinct IDs, read the result count, dequeue the results in FIFO order with their IDs, disconnect. - Refusals: an empty-queue dequeue, a null or unknown handle, and a call after disconnect, each leaving the caller's output sentinel untouched. A lenient provider build that skips the handle check must fail the caller. - Missing provider: withholding each export stops `pe_map` at import resolution before entry, and the provider records no calls. - Compare the Windows loader and `pe_map`, in `dev` and `release`. - The XDsp stream lifecycle follows in a separate PR on the same pattern. - **Environment:** Windows 10 Pro 10.0.19045, MSVC 19.44 x64, CMake/Ninja. Source-built fixtures only. I won't read or use any external provider source. - **Related work:** #947 (inventory and evidence list), #1000 (ACP address slice), and @Jess-Doit's [external-provider observations](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7114468277) at 21:26Z, which I'll treat as black-box observations only. AI-assisted (Claude Code).
Jess-Doit commented 2026-11-24 06:49:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T22:13:07Z.


The source-built flag-zero factory fixture requested above passed on Windows 10 19045.6456 in Debug and Release. With #979's pinned PC AddrLib profile, separate output preserved the descriptor and aliased output changed only its layout field. Both fed the same layout to the test texture computer and matched all eight mips and 21,845 generated texels. A stale linear map disagreed on every tiled texel, zero width preserved both outputs, and the mutation caught S_OK with no layout write. The four XG CTests passed with AddrLib and skipped with exit 77 without it.

In a separate synthetic run, external TomBox f89e4106 accepted the fixture's explicit PC layout word in XGCreateTextureComputer and copied all texels. This shows the texture-computer handoff with those inputs. The flag-zero result from the exact Xbox XGSuggestSwizzleMode export still needs an independent reference. The smallest comparison is the same descriptor with selector zero and both output forms against an authorized runtime that exports the function. The private 304-import checkpoint remains at XGSuggestSwizzleMode.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115476920 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7115476920). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T22:13:07Z. --- The source-built flag-zero factory fixture requested above passed on Windows 10 `19045.6456` in Debug and Release. With #979's pinned PC AddrLib profile, separate output preserved the descriptor and aliased output changed only its layout field. Both fed the same layout to the test texture computer and matched all eight mips and 21,845 generated texels. A stale linear map disagreed on every tiled texel, zero width preserved both outputs, and the mutation caught `S_OK` with no layout write. The four XG CTests passed with AddrLib and skipped with exit 77 without it. In a separate synthetic run, external TomBox `f89e4106` accepted the fixture's explicit PC layout word in `XGCreateTextureComputer` and copied all texels. This shows the texture-computer handoff with those inputs. The flag-zero result from the exact Xbox `XGSuggestSwizzleMode` export still needs an independent reference. The smallest comparison is the same descriptor with selector zero and both output forms against an authorized runtime that exports the function. The private 304-import checkpoint remains at `XGSuggestSwizzleMode`. AI-assisted (Codex).
rasptum commented 2026-11-24 06:49:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T22:18:07Z.


Windows 10 local startup checkpoint on main at 64ecc87, after #984 and #968. This is not a startup claim.

Environment: Windows 10 Pro 22H2 (19045.6466), MSVC 19.44.35207.1 x64, Release build of pe_map, xmem_shim and d3d12_xs_shim. Providers are System32 plus the source-built desktop xmem.dll and d3d12_xs.dll. No external audio, XG or DirectStorage providers were loaded.

cmake --build --preset release --target pe_map xmem_shim d3d12_xs_shim
# import-only binding probe: pe_map_image in a fresh child, 60 s cap, System32 + the two shims
python tools/pe_run_package.py out/build/release/pe_map.dll <package> <main exe> `
  --shim xmem.dll out/build/release/xmem.dll --shim d3d12_xs.dll out/build/release/d3d12_xs.dll `
  --system <each external system DLL> --preflight-only

Import binding (2 of 2 runs identical). 298 bound imports, mapper status 5, first unresolved import chad.dll!XDspActivate. This matches the 298-import result at 1ccc326.

Package preflight. 8 images in load order, 541 external bindings. 22 externals are missing, all from the main executable:

  • acphal.dll: 9 (AcpHalAllocateShapeContexts, AcpHalCreate, AcpHalReleaseShapeContexts, ApuAlloc, ApuCreateHeap, ApuFree, ApuIsVirtualAddressValid, ApuMapApuAddress, ApuMapVirtualAddress)
  • chad.dll: 5 (XDspActivate, XDspConnectWithMaximumStreamLimit, XDspDeactivate, XDspDisconnect, XDspSubmitCommand)
  • xapu.dll: 5 (XApuConnect, XApuDequeueResult, XApuDisconnect, XApuEnqueueCommand, XApuGetResultCount)
  • xcrdapi.dll!DStorageGetFactory
  • xg_xs.dll: XGCreateTextureComputer, XGSuggestSwizzleMode

D3D12ConfigureVirtualMemoryX and XMemTransferMemory are no longer missing. The real-execution mode still refuses to run while externals are missing.

Diagnostic execution (2 of 2 runs identical, 60 s cap). This used a local, private harness that is not in the repository. It follows the pe_run_package.py plan but binds each of the 22 missing externals to a stub that terminates the process if called, and it logs xmem.dll calls. No diagnostic return values were injected.

  1. All 8 images mapped and their DLL attaches completed.
  2. Both TLS callbacks returned.
  3. In the entry point, D3D12ConfigureVirtualMemoryX ran through the real d3d12_xs.dll export. No stub was hit. The entry stage was confirmed from the pe_map_run return address on the stack, which follows the entry call, not the TLS loop.
  4. XMemVirtualAlloc calls, as (allocation type, attributes, protection):
    • 0x20402000, 0x21, 0x4 → reservation returned
    • 0x20402000, 0x3, 0x801 → reservation returned
    • 0x20003000, 0x183, 0x22004 → NULL. This is the first refused call. The reserve-only desktop profile from #888/#945 accepts only the startup-reserve type.
  5. The title then raised 0x80000003 (breakpoint) and the process exited with that code. None of the 22 stubs was called.

First blocker on this configuration: the first XMemVirtualAlloc that combines reserve and commit (type 0x20003000, attributes 0x183, protection 0x22004), called from the entry point. The 22 missing externals were not called before this point. Whether the title then calls any of them remains untested.

AI-assisted (Claude).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115582365 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7115582365). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T22:18:07Z. --- Windows 10 local startup checkpoint on `main` at `64ecc87`, after #984 and #968. This is not a startup claim. Environment: Windows 10 Pro 22H2 (19045.6466), MSVC 19.44.35207.1 x64, Release build of `pe_map`, `xmem_shim` and `d3d12_xs_shim`. Providers are System32 plus the source-built desktop `xmem.dll` and `d3d12_xs.dll`. No external audio, XG or DirectStorage providers were loaded. ```powershell cmake --build --preset release --target pe_map xmem_shim d3d12_xs_shim # import-only binding probe: pe_map_image in a fresh child, 60 s cap, System32 + the two shims python tools/pe_run_package.py out/build/release/pe_map.dll <package> <main exe> ` --shim xmem.dll out/build/release/xmem.dll --shim d3d12_xs.dll out/build/release/d3d12_xs.dll ` --system <each external system DLL> --preflight-only ``` **Import binding (2 of 2 runs identical).** 298 bound imports, mapper status 5, first unresolved import `chad.dll!XDspActivate`. This matches the 298-import result at `1ccc326`. **Package preflight.** 8 images in load order, 541 external bindings. 22 externals are missing, all from the main executable: - `acphal.dll`: 9 (`AcpHalAllocateShapeContexts`, `AcpHalCreate`, `AcpHalReleaseShapeContexts`, `ApuAlloc`, `ApuCreateHeap`, `ApuFree`, `ApuIsVirtualAddressValid`, `ApuMapApuAddress`, `ApuMapVirtualAddress`) - `chad.dll`: 5 (`XDspActivate`, `XDspConnectWithMaximumStreamLimit`, `XDspDeactivate`, `XDspDisconnect`, `XDspSubmitCommand`) - `xapu.dll`: 5 (`XApuConnect`, `XApuDequeueResult`, `XApuDisconnect`, `XApuEnqueueCommand`, `XApuGetResultCount`) - `xcrdapi.dll!DStorageGetFactory` - `xg_xs.dll`: `XGCreateTextureComputer`, `XGSuggestSwizzleMode` `D3D12ConfigureVirtualMemoryX` and `XMemTransferMemory` are no longer missing. The real-execution mode still refuses to run while externals are missing. **Diagnostic execution (2 of 2 runs identical, 60 s cap).** This used a local, private harness that is not in the repository. It follows the `pe_run_package.py` plan but binds each of the 22 missing externals to a stub that terminates the process if called, and it logs `xmem.dll` calls. No diagnostic return values were injected. 1. All 8 images mapped and their DLL attaches completed. 2. Both TLS callbacks returned. 3. In the entry point, `D3D12ConfigureVirtualMemoryX` ran through the real `d3d12_xs.dll` export. No stub was hit. The entry stage was confirmed from the `pe_map_run` return address on the stack, which follows the entry call, not the TLS loop. 4. `XMemVirtualAlloc` calls, as (allocation type, attributes, protection): - `0x20402000`, `0x21`, `0x4` → reservation returned - `0x20402000`, `0x3`, `0x801` → reservation returned - `0x20003000`, `0x183`, `0x22004` → **NULL**. This is the first refused call. The reserve-only desktop profile from #888/#945 accepts only the startup-reserve type. 5. The title then raised `0x80000003` (breakpoint) and the process exited with that code. None of the 22 stubs was called. First blocker on this configuration: the first `XMemVirtualAlloc` that combines reserve and commit (type `0x20003000`, attributes `0x183`, protection `0x22004`), called from the entry point. The 22 missing externals were not called before this point. Whether the title then calls any of them remains untested. AI-assisted (Claude).
R0Y00 commented 2026-11-24 06:49:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T22:18:08Z.


@rasptum, the XApu queue fixture is yours to take. Please keep XApu and XDsp as separate reviewable stages and have the recording provider verify command IDs, result order and output sentinels after refusal. The proposed symbols and signatures are fixture policy until there is an independent reference. #1000 remains the separate ACP slice.

@Jess-Doit, thanks for turning the layout handoff into #1032. The pinned PC comparison covers separate/aliased output and catches the stale linear result. We'll review that source-built slice on its own; a native selector-zero result for the exact export is still the follow-up.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115582544 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7115582544). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T22:18:08Z. --- @rasptum, the XApu queue fixture is yours to take. Please keep XApu and XDsp as separate reviewable stages and have the recording provider verify command IDs, result order and output sentinels after refusal. The proposed symbols and signatures are fixture policy until there is an independent reference. #1000 remains the separate ACP slice. @Jess-Doit, thanks for turning the layout handoff into #1032. The pinned PC comparison covers separate/aliased output and catches the stale linear result. We'll review that source-built slice on its own; a native selector-zero result for the exact export is still the follow-up.
Holastor commented 2026-11-24 06:49:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T22:19:05Z.


I have implemented the coordinated source-built fixture combining XGSuggestSwizzleMode and XGCreateTextureComputer in #1034 (branch Holastor:xg/suggest-swizzle-mode).

Key highlights:

  • Evaluates XGSuggestSwizzleMode with selector flag 0 comparing a separate output pointer against an output pointer aliased in-place to the descriptor's own Layout field (&desc.Layout), both selecting 0x105 per the #979 gfx10.3 4KB_D_X layout reference.
  • Feeds the resulting descriptor into XGCreateTextureComputer for a generated 3-mip RGBA8 texture (28x4, 14x2, 7x1 = 147 texels).
  • Detiled readback (CopyIntoSubresource -> CopyFromSubresource) verifies 147/147 texels (100% round-trip fidelity).
  • Raw tiled storage comparison against linear reference reproduces the exact 139/147 disagreement count measured by @Jess-Doit under Morton bit-interleaving.
  • Linear layout control (Layout = 1) verifies 0 disagreements against linear layout.
  • Refusal controls: Width == 0 returns E_INVALIDARG (0x80070057) leaving output sentinels intact for both APIs.
  • Multi-loader verification (native Windows, live worker, pe_map, withheld provider stops with STATUS["unresolved"]) and separated mutant controls (clobber -> exit 0xE01, dummy linear fallback -> exit 0xE04). Passed 30/30 runs in both dev and release.

AI-assisted (Antigravity).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115602365 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7115602365). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T22:19:05Z. --- I have implemented the coordinated source-built fixture combining `XGSuggestSwizzleMode` and `XGCreateTextureComputer` in #1034 (branch [`Holastor:xg/suggest-swizzle-mode`](https://github.com/Holastor/Xbox2Windows/tree/xg/suggest-swizzle-mode)). Key highlights: - Evaluates `XGSuggestSwizzleMode` with selector flag `0` comparing a separate output pointer against an output pointer aliased in-place to the descriptor's own `Layout` field (`&desc.Layout`), both selecting `0x105` per the #979 gfx10.3 `4KB_D_X` layout reference. - Feeds the resulting descriptor into `XGCreateTextureComputer` for a generated 3-mip RGBA8 texture (`28x4`, `14x2`, `7x1` = 147 texels). - Detiled readback (`CopyIntoSubresource` -> `CopyFromSubresource`) verifies 147/147 texels (100% round-trip fidelity). - Raw tiled storage comparison against linear reference reproduces the exact 139/147 disagreement count measured by @Jess-Doit under Morton bit-interleaving. - Linear layout control (`Layout = 1`) verifies 0 disagreements against linear layout. - Refusal controls: `Width == 0` returns `E_INVALIDARG` (0x80070057) leaving output sentinels intact for both APIs. - Multi-loader verification (native Windows, live worker, `pe_map`, withheld provider stops with `STATUS["unresolved"]`) and separated mutant controls (`clobber` -> exit `0xE01`, dummy `linear` fallback -> exit `0xE04`). Passed 30/30 runs in both `dev` and `release`. _AI-assisted (Antigravity)._
denn0x commented 2026-11-24 06:49:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-23T22:51:54Z.


Sanitized record of a local startup attempt on the main executable, plus the interface observations that got it there. No binaries, dumps, addresses or logs are attached; everything below is either an ABI shape or a count. Happy to turn any item into a source-built fixture or a focused PR — say which ones are most useful.

Setup. main at 64ecc873 plus local, unpublished, opt-in stand-ins for the imported DLLs (memory, D3D12 device object, texture computer, DirectStorage, audio HAL). Windows 11 build 26300, MSVC from Build Tools 18, static CRT. The executable runs under a small debugger that refuses socket/DNS handle opens, so the run is offline.

Boundary reached (observed). PE load, imports, runtime initialization and the entry point are passed. The executable creates its device, queues, about 71,000 pipeline objects and its resources, enters its main loop and presents frames continuously (about 14 per second under the debugger; 2,414 presents in 167 s; stable until the timeout). Current blocker: GPU work. Command lists are recorded and executed on a desktop device, and the shaders of the first screen run through a translator (below), but the picture is still black: the per-pipeline blend/raster state blocks are not decoded yet. No claim beyond that.

D3D12 object interface (observed unless marked H).

  1. The device answers desktop IIDs. Its first 48 vtable slots follow desktop ID3D12Device order; console-only methods follow.
  2. Methods returning a structure of 8 bytes or less (descriptor handles) return it in RAX; larger ones take the hidden result pointer first.
  3. The caller reads and writes object fields directly. On a command list, +0x18 is a packet cursor and +0x30 its limit: inlined calls write packets while cursor < limit and otherwise make the virtual call. With both zero every call arrives as a virtual call, which makes a recording stand-in possible. The caller also stores state inside the list object well past the first kilobyte, and loads 16-byte vectors from pipeline-state objects with aligned moves. A stand-in object therefore needs a large zero-filled area after the vtable pointer and 16-byte alignment (I had silent heap corruption until both were true).
  4. Command-list vtable order: desktop order through SetPipelineState (25); from desktop slot 28 on, desktop + 4. Verified by argument shape and effect: SetDescriptorHeaps 32, SetComputeRootSignature 33, SetGraphicsRootSignature 34, root descriptor tables 35/36, SetGraphicsRoot32BitConstants 40, SetGraphicsRootShaderResourceView 44, IASetIndexBuffer 47, IASetVertexBuffers 48, OMSetRenderTargets 50, ClearRenderTargetView 52. The per-frame reset takes the allocator only and sits at 139.
  5. Primitive topology value 0x11 is a rectangle list: three vertices per rectangle, the fourth corner is v0 + v2 - v1 (checked against the vertices of a full-screen rectangle).
  6. The stream form of pipeline creation uses the desktop subobject type numbers and sizes. After swapping the root signature and shader pointers, desktop CreatePipelineState accepts the stream unchanged.
  7. Pipeline descriptions carry gfx1013 machine code, not DXIL, including inside the "DXBC" containers of the stream form. A 36-byte block of tagged words precedes the first s_inst_prefetch.
  8. Frame pacing matches the SetFrameIntervalX / ScheduleFrameEventX / WaitFrameEventX shapes in #1014; the wait's token is passed to the present call. A fence method returns the address of the completed value and the caller waits on that memory.

Descriptors (observed).

  1. The main CBV/SRV/UAV heap is created over caller-supplied CPU memory with a 32-byte increment, and the caller copies descriptors with its own memory copies, not through CopyDescriptors. A desktop mirror cannot see those copies. Writing a small id token into the caller's descriptor memory at view creation and reading tokens back at bind time follows them reliably (0 of 96 table entries were visible to a desktop-side shadow, all were recovered from tokens).
  2. Table slots can also hold hardware buffer descriptors the caller writes itself, with no view call at all: 16 bytes = base address low, base high in bits 0–15 with stride in bits 16–29, record count, flags. They point at transient constant data. A binding layer has to read them from the table memory at draw time.

Shader entry state (observed on six programs of 15–58 instructions; H where marked).

  1. Vertex stage: s0:s1 point to a table of 16-byte buffer descriptors, one per vertex stream; s2 is the base vertex; v0 the vertex index. User data starts at s8 in root-parameter order: a table is one 32-bit pointer, each 32-bit constant one register, a root descriptor two registers. The directly-indexed-heap root flags appear to add one register each (H, one sample).
  2. Pixel stage: the register after the user data is only ever moved to m0; v0/v1 are the perspective-center barycentrics; compressed colour exports pack two binary16 values per register.

Textures (observed).

  1. Texture computer vtable slot 8 has the CopyIntoSubresource(base, plane, subresource, linear, rowPitch, slicePitch) shape used by public DirectXTex code (#1034). If the provider reports a linear layout, the caller's uploads land linear and need no detiling.

Translator note. For the first screen I wrote a small per-lane translator on top of tools/disasm_rdna2.py (pure Python, no LLVM): registers become uint variables, exec/vcc keep the lane bit, scalar registers are tracked symbolically so pointer and descriptor values become HLSL resources, and the output uses its own root signature (constants + one SRV table) instead of the caller's. The three vertex/pixel pairs of that screen translate and compile with fxc. I can submit it as a tooling: PR with hand-assembled source-built fixtures if that is wanted.

Checked by: recording every command-list call of two frames with the argument memory, replaying the decoding offline, and running the result on a desktop device with the debug layer on. Items 11–12 rest on few samples.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116272710 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7116272710). Originally posted by [denn0x](https://github.com/denn0x) on 2026-11-23T22:51:54Z. --- Sanitized record of a local startup attempt on the main executable, plus the interface observations that got it there. No binaries, dumps, addresses or logs are attached; everything below is either an ABI shape or a count. Happy to turn any item into a source-built fixture or a focused PR — say which ones are most useful. **Setup.** `main` at `64ecc873` plus local, unpublished, opt-in stand-ins for the imported DLLs (memory, D3D12 device object, texture computer, DirectStorage, audio HAL). Windows 11 build 26300, MSVC from Build Tools 18, static CRT. The executable runs under a small debugger that refuses socket/DNS handle opens, so the run is offline. **Boundary reached (observed).** PE load, imports, runtime initialization and the entry point are passed. The executable creates its device, queues, about 71,000 pipeline objects and its resources, enters its main loop and presents frames continuously (about 14 per second under the debugger; 2,414 presents in 167 s; stable until the timeout). **Current blocker:** GPU work. Command lists are recorded and executed on a desktop device, and the shaders of the first screen run through a translator (below), but the picture is still black: the per-pipeline blend/raster state blocks are not decoded yet. No claim beyond that. **D3D12 object interface (observed unless marked H).** 1. The device answers desktop IIDs. Its first 48 vtable slots follow desktop `ID3D12Device` order; console-only methods follow. 2. Methods returning a structure of 8 bytes or less (descriptor handles) return it in RAX; larger ones take the hidden result pointer first. 3. The caller reads and writes object fields directly. On a command list, +0x18 is a packet cursor and +0x30 its limit: inlined calls write packets while cursor < limit and otherwise make the virtual call. With both zero every call arrives as a virtual call, which makes a recording stand-in possible. The caller also stores state inside the list object well past the first kilobyte, and loads 16-byte vectors from pipeline-state objects with aligned moves. A stand-in object therefore needs a large zero-filled area after the vtable pointer and 16-byte alignment (I had silent heap corruption until both were true). 4. Command-list vtable order: desktop order through `SetPipelineState` (25); from desktop slot 28 on, desktop + 4. Verified by argument shape and effect: `SetDescriptorHeaps` 32, `SetComputeRootSignature` 33, `SetGraphicsRootSignature` 34, root descriptor tables 35/36, `SetGraphicsRoot32BitConstants` 40, `SetGraphicsRootShaderResourceView` 44, `IASetIndexBuffer` 47, `IASetVertexBuffers` 48, `OMSetRenderTargets` 50, `ClearRenderTargetView` 52. The per-frame reset takes the allocator only and sits at 139. 5. Primitive topology value 0x11 is a rectangle list: three vertices per rectangle, the fourth corner is `v0 + v2 - v1` (checked against the vertices of a full-screen rectangle). 6. The stream form of pipeline creation uses the desktop subobject type numbers and sizes. After swapping the root signature and shader pointers, desktop `CreatePipelineState` accepts the stream unchanged. 7. Pipeline descriptions carry gfx1013 machine code, not DXIL, including inside the "DXBC" containers of the stream form. A 36-byte block of tagged words precedes the first `s_inst_prefetch`. 8. Frame pacing matches the `SetFrameIntervalX` / `ScheduleFrameEventX` / `WaitFrameEventX` shapes in #1014; the wait's token is passed to the present call. A fence method returns the *address* of the completed value and the caller waits on that memory. **Descriptors (observed).** 9. The main CBV/SRV/UAV heap is created over caller-supplied CPU memory with a 32-byte increment, and the caller copies descriptors with its own memory copies, not through `CopyDescriptors`. A desktop mirror cannot see those copies. Writing a small id token into the caller's descriptor memory at view creation and reading tokens back at bind time follows them reliably (0 of 96 table entries were visible to a desktop-side shadow, all were recovered from tokens). 10. Table slots can also hold hardware buffer descriptors the caller writes itself, with no view call at all: 16 bytes = base address low, base high in bits 0–15 with stride in bits 16–29, record count, flags. They point at transient constant data. A binding layer has to read them from the table memory at draw time. **Shader entry state (observed on six programs of 15–58 instructions; H where marked).** 11. Vertex stage: `s0:s1` point to a table of 16-byte buffer descriptors, one per vertex stream; `s2` is the base vertex; `v0` the vertex index. User data starts at `s8` in root-parameter order: a table is one 32-bit pointer, each 32-bit constant one register, a root descriptor two registers. The directly-indexed-heap root flags appear to add one register each (H, one sample). 12. Pixel stage: the register after the user data is only ever moved to `m0`; `v0`/`v1` are the perspective-center barycentrics; compressed colour exports pack two binary16 values per register. **Textures (observed).** 13. Texture computer vtable slot 8 has the `CopyIntoSubresource(base, plane, subresource, linear, rowPitch, slicePitch)` shape used by public DirectXTex code (#1034). If the provider reports a linear layout, the caller's uploads land linear and need no detiling. **Translator note.** For the first screen I wrote a small per-lane translator on top of `tools/disasm_rdna2.py` (pure Python, no LLVM): registers become `uint` variables, exec/vcc keep the lane bit, scalar registers are tracked symbolically so pointer and descriptor values become HLSL resources, and the output uses its own root signature (constants + one SRV table) instead of the caller's. The three vertex/pixel pairs of that screen translate and compile with `fxc`. I can submit it as a `tooling:` PR with hand-assembled source-built fixtures if that is wanted. Checked by: recording every command-list call of two frames with the argument memory, replaying the decoding offline, and running the result on a desktop device with the debug layer on. Items 11–12 rest on few samples. AI-assisted (Claude Code).
rasptum commented 2026-11-24 06:49:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T23:01:40Z.


ACP HAL create, shape-context and heap slice result: #1047. Fixture-only, with no production acphal.dll export.

  • Stage: ApuCreateHeap, AcpHalCreate, AcpHalAllocateShapeContexts, AcpHalReleaseShapeContexts, with ApuAlloc/ApuFree used to observe the heap.
  • Environment: Windows 10 Pro 22H2 (19045.6466), MSVC 19.44.35207.1 x64, CMake/Ninja, Python 3.13.13 (out/pe-env; my claim said 3.11, which was wrong). Tested commit 8e9393a5 on origin/main 62b55f9.
  • Interface: none of the four has a public signature. The argument lists are a labelled fixture contract. Public evidence is limited to the GDK index member-page names and the DirectXTK12 ApuCreateHeap diagnostic.
  • Commands:
    cmake --build --preset dev --target cpu_acphal_hal_provider cpu_acphal_hal_provider_faulty cpu_acphal_hal_caller
    ctest --preset dev --no-tests=error -R '^cpu_native_(acphal_hal|apu_address|apu_alloc_caller)$' -V
    
    Same with --preset release.
  • Observed vs expected:
    • Windows loader and pe_map both exit 0x8AC, and the provider records match the expected counts exactly.
    • The heap bounds ApuAlloc, and ApuAlloc before any heap is refused.
    • One HAL is created. Contexts come back cleared, aligned and disjoint, and are reused after release.
    • Refused: invalid counts and null outputs (outputs untouched), a double release (counted), a wrong handle, and the real handle replayed before create.
    • Faulty provider: stops at 0xF07. Each withheld export: pe_map stops before entry. Missing provider: pe_map stops before entry and the Windows loader exits 0xC0000135.
    • Six local provider mutations each failed at the expected step.
    • #1000's cpu_native_apu_address and cpu_native_apu_alloc_caller also pass in both presets. No capability skips.
  • Not established: the console signatures, the shape-context layout, the startup call order.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116466509 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7116466509). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T23:01:40Z. --- ACP HAL create, shape-context and heap slice result: #1047. Fixture-only, with no production `acphal.dll` export. - **Stage:** `ApuCreateHeap`, `AcpHalCreate`, `AcpHalAllocateShapeContexts`, `AcpHalReleaseShapeContexts`, with `ApuAlloc`/`ApuFree` used to observe the heap. - **Environment:** Windows 10 Pro 22H2 (`19045.6466`), MSVC 19.44.35207.1 x64, CMake/Ninja, Python 3.13.13 (`out/pe-env`; my claim said 3.11, which was wrong). Tested commit `8e9393a5` on `origin/main` `62b55f9`. - **Interface:** none of the four has a public signature. The argument lists are a labelled fixture contract. Public evidence is limited to the GDK index member-page names and the DirectXTK12 `ApuCreateHeap` diagnostic. - **Commands:** ```powershell cmake --build --preset dev --target cpu_acphal_hal_provider cpu_acphal_hal_provider_faulty cpu_acphal_hal_caller ctest --preset dev --no-tests=error -R '^cpu_native_(acphal_hal|apu_address|apu_alloc_caller)$' -V ``` Same with `--preset release`. - **Observed vs expected:** - Windows loader and `pe_map` both exit `0x8AC`, and the provider records match the expected counts exactly. - The heap bounds `ApuAlloc`, and `ApuAlloc` before any heap is refused. - One HAL is created. Contexts come back cleared, aligned and disjoint, and are reused after release. - Refused: invalid counts and null outputs (outputs untouched), a double release (counted), a wrong handle, and the real handle replayed before create. - Faulty provider: stops at `0xF07`. Each withheld export: `pe_map` stops before entry. Missing provider: `pe_map` stops before entry and the Windows loader exits `0xC0000135`. - Six local provider mutations each failed at the expected step. - #1000's `cpu_native_apu_address` and `cpu_native_apu_alloc_caller` also pass in both presets. No capability skips. - **Not established:** the console signatures, the shape-context layout, the startup call order. AI-assisted (Claude Code).
rasptum commented 2026-11-24 06:49:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T23:23:43Z.


I'll take the reserve+commit XMemVirtualAlloc slice from my checkpoint above (the first refused call in the entry point).

What a static read of the caller shows (file reads only, nothing executed):

  • The call sits in the same one-time init as the configuration call and the two reservations. A loop walks 9 pool slots with sizes from a table. It skips a slot whose size is 0 and calls XMemVirtualAlloc(NULL, size, 0x20003000, attributes, protection) for the others.
  • Three slots use attributes 0x183 with protection 0x22004. One slot uses 0x283 with 0x2404.
  • On success the caller stores (pointer, size) in a 10-entry table and hands the block to an allocator constructor. On NULL it reaches int3 and continues with a null base.

Scope:

  • Extend the desktop XMemVirtualAlloc in src/xmem_mapped_pages.cpp with a strict reserve+commit profile: null address, type 0x20003000, a nonzero size that is a multiple of 64 KiB, and only the observed attribute/protection pairs. The block is committed, zero-filled and readable and writable by the CPU. Large pages and the console-specific protection bits are dropped on desktop. I'll label that as a proposed desktop policy, not a confirmed contract.
  • Everything else keeps the current ERROR_INVALID_PARAMETER refusal, and the #888/#945 reserve-only cases stay unchanged. No export or ordinal changes.
  • Source-built fixture under the Windows loader and pe_map: commit, write and read back across the whole block, check the zero fill, VirtualQuery state and protection, and release with VirtualFree. Controls change one variable from an accepted call (type without MEM_COMMIT, unobserved attribute or protection, a non-null address, size 0 or not a multiple of 64 KiB). Each control is paired with an accepted call in the same run, so a refusal can only come from the changed variable. Plus a missing-provider control.
  • I'll re-run the local checkpoint and report the next stop.

GPU visibility (what the 0x2000/0x20000 protection bits ask for) stays open and is not part of this change. @denn0x, if your memory stand-in handles this call differently (alignment, zero fill, GPU access), a short note on what it does would make a useful cross-check.

Environment: Windows 10 19045.6466, MSVC 19.44 x64, RTX 3060.

AI-assisted (Claude).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116903779 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7116903779). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T23:23:43Z. --- I'll take the reserve+commit `XMemVirtualAlloc` slice from my checkpoint above (the first refused call in the entry point). What a static read of the caller shows (file reads only, nothing executed): - The call sits in the same one-time init as the configuration call and the two reservations. A loop walks 9 pool slots with sizes from a table. It skips a slot whose size is 0 and calls `XMemVirtualAlloc(NULL, size, 0x20003000, attributes, protection)` for the others. - Three slots use attributes `0x183` with protection `0x22004`. One slot uses `0x283` with `0x2404`. - On success the caller stores (pointer, size) in a 10-entry table and hands the block to an allocator constructor. On NULL it reaches `int3` and continues with a null base. Scope: - Extend the desktop `XMemVirtualAlloc` in `src/xmem_mapped_pages.cpp` with a strict reserve+commit profile: null address, type `0x20003000`, a nonzero size that is a multiple of 64 KiB, and only the observed attribute/protection pairs. The block is committed, zero-filled and readable and writable by the CPU. Large pages and the console-specific protection bits are dropped on desktop. I'll label that as a proposed desktop policy, not a confirmed contract. - Everything else keeps the current `ERROR_INVALID_PARAMETER` refusal, and the #888/#945 reserve-only cases stay unchanged. No export or ordinal changes. - Source-built fixture under the Windows loader and `pe_map`: commit, write and read back across the whole block, check the zero fill, `VirtualQuery` state and protection, and release with `VirtualFree`. Controls change one variable from an accepted call (type without `MEM_COMMIT`, unobserved attribute or protection, a non-null address, size 0 or not a multiple of 64 KiB). Each control is paired with an accepted call in the same run, so a refusal can only come from the changed variable. Plus a missing-provider control. - I'll re-run the local checkpoint and report the next stop. GPU visibility (what the `0x2000`/`0x20000` protection bits ask for) stays open and is not part of this change. @denn0x, if your memory stand-in handles this call differently (alignment, zero fill, GPU access), a short note on what it does would make a useful cross-check. Environment: Windows 10 19045.6466, MSVC 19.44 x64, RTX 3060. AI-assisted (Claude).
R0Y00 commented 2026-11-24 06:49:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T23:29:29Z.


Please proceed with the source-built reserve-and-commit check. Keep it distinct from the reserve-only work and coordinate the implementation with the existing startup work so there is one production path. For each supported desktop configuration, check CPU access, zero-fill, alignment, boundary writes and release, and include neighboring unsupported requests plus a host allocation failure. Label any attributes without independent evidence as a desktop policy and keep the public report to the synthetic fixture and observed behavior.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117023904 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7117023904). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T23:29:29Z. --- Please proceed with the source-built reserve-and-commit check. Keep it distinct from the reserve-only work and coordinate the implementation with the existing startup work so there is one production path. For each supported desktop configuration, check CPU access, zero-fill, alignment, boundary writes and release, and include neighboring unsupported requests plus a host allocation failure. Label any attributes without independent evidence as a desktop policy and keep the public report to the synthetic fixture and observed behavior.
lukaslw-lab commented 2026-11-24 06:49:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T23:37:37Z.


AI-assisted (Claude Code).

I'll take the GameInput slice. It doesn't overlap the ACP HAL, XApu/XDsp, XG or DirectStorage work, and it isn't in the 22 missing externals because pe_map --system binds it to desktop System32 by ordinal.

  • Stage: GameInput creation, device-connection callbacks, gamepad/keyboard polling and rumble. The caller creates it early in startup; a failed create is fatal.
  • Environment: Windows 10 Pro 22H2 (19045), MSVC 19.52 x64 (VS 2026), CMake/Ninja, Python 3.13 (out/pe-env), dev and release presets.
  • Interface: public. The v0 header in Windows SDK 10.0.26100 (um/GameInput.h) and Microsoft Learn. Static caller evidence and the resulting requirements are in #1056 (ABI shapes and counts only). Names are the header's interpretation of the observed slots; the console runtime's behavior is not established.
  • Plan: one source-built caller and a test-only recording provider in the #1047 layout, under the Windows loader and pe_map:
    • ordinal-1 create with one argument; device callbacks for the two kinds, blocking enumeration, under a recursive caller lock; current/previous/next readings; the 28-byte gamepad and 12-byte key-state layouts; rumble with a zero tail; unregister with a timeout;
    • controls: failed create stops at the fatal path; a withheld export stops pe_map before entry; a two-argument or wrong-ordinal provider, a callback delivered on another thread with a wait, and a wrong layout are each caught;
    • no production gameinput.dll export.
  • Related: #1056, #1047.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117177093 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7117177093). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-23T23:37:37Z. --- _AI-assisted (Claude Code)._ I'll take the GameInput slice. It doesn't overlap the ACP HAL, XApu/XDsp, XG or DirectStorage work, and it isn't in the 22 missing externals because `pe_map --system` binds it to desktop System32 by ordinal. - **Stage:** GameInput creation, device-connection callbacks, gamepad/keyboard polling and rumble. The caller creates it early in startup; a failed create is fatal. - **Environment:** Windows 10 Pro 22H2 (19045), MSVC 19.52 x64 (VS 2026), CMake/Ninja, Python 3.13 (`out/pe-env`), `dev` and `release` presets. - **Interface:** public. The v0 header in Windows SDK 10.0.26100 (`um/GameInput.h`) and Microsoft Learn. Static caller evidence and the resulting requirements are in #1056 (ABI shapes and counts only). Names are the header's interpretation of the observed slots; the console runtime's behavior is not established. - **Plan:** one source-built caller and a test-only recording provider in the #1047 layout, under the Windows loader and `pe_map`: - ordinal-1 create with one argument; device callbacks for the two kinds, blocking enumeration, under a recursive caller lock; current/previous/next readings; the 28-byte gamepad and 12-byte key-state layouts; rumble with a zero tail; unregister with a timeout; - controls: failed create stops at the fatal path; a withheld export stops `pe_map` before entry; a two-argument or wrong-ordinal provider, a callback delivered on another thread with a wait, and a wrong layout are each caught; - no production `gameinput.dll` export. - **Related:** #1056, #1047.
Jess-Doit commented 2026-11-24 06:49:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T23:44:11Z.


@denn0x For the CPU-copied descriptor records in your startup report, would a separate source-built Windows 10 regression fixture overlap work you already have underway? I’m considering reusing #1054’s two-submission shader and fences: copy a generated binding record after fence 1, resolve its current ID at bind time, and use the desktop descriptor API to populate the second slot. The stale-mirror and unknown-ID controls would cover the copy being missed and a bad record being refused. The fixture would use generated data and leave the runtime implementation with you. Let me know if you prefer an independent run of an existing candidate.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117306758 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7117306758). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T23:44:11Z. --- @denn0x For the CPU-copied descriptor records in your startup report, would a separate source-built Windows 10 regression fixture overlap work you already have underway? I’m considering reusing #1054’s two-submission shader and fences: copy a generated binding record after fence 1, resolve its current ID at bind time, and use the desktop descriptor API to populate the second slot. The stale-mirror and unknown-ID controls would cover the copy being missed and a bad record being refused. The fixture would use generated data and leave the runtime implementation with you. Let me know if you prefer an independent run of an existing candidate. AI-assisted (Codex).
Jess-Doit commented 2026-11-24 06:49:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T23:55:40Z.


The test-only follow-up is open in #1060, based on merged #1054. The generated CPU copy selects the new word, the stale record selects the old word through the same shader-visible slot, and the unknown record is rejected before submission two. The corrected record then submits normally. Debug and Release passed all 15 focused tests on the GTX 1060 and Windows 10 in-box WARP, with clean D3D12 debug output.

This covers the synthetic CPU record and desktop descriptor handoff. If you have a parallel fixture underway, please flag it here so we can coordinate the review.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117513502 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7117513502). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T23:55:40Z. --- The test-only follow-up is open in #1060, based on merged #1054. The generated CPU copy selects the new word, the stale record selects the old word through the same shader-visible slot, and the unknown record is rejected before submission two. The corrected record then submits normally. Debug and Release passed all 15 focused tests on the GTX 1060 and Windows 10 in-box WARP, with clean D3D12 debug output. This covers the synthetic CPU record and desktop descriptor handoff. If you have a parallel fixture underway, please flag it here so we can coordinate the review. AI-assisted (Codex).
Holastor commented 2026-11-24 06:49:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T23:59:17Z.


I'll take the primitive topology 0x11 (rectangle list) slice from @denn0x's checkpoint above.

  • Stage: Primitive topology 0x11 (RECTLIST / rectangle list) translation to desktop D3D12 triangle list, with 4th vertex generation v3 = v0 + v2 - v1.
  • Environment: Windows 11 x64, MSVC 19.51, CMake/Ninja, AMD Radeon RX 6600M (vendor=1002, device=73ff, driver 32.0.21045.11001) and Microsoft WARP, dev and release presets.
  • Background & Public Evidence:
    • @denn0x's observation 5 in #870: topology value 0x11 represents a rectangle list with three vertices per rectangle, where the fourth corner is derived as v0 + v2 - v1.
    • AMD GCN/RDNA hardware architecture documentation specifies VGT_PRIMITIVE_TYPE_RECTLIST = 0x11 (17 decimal), taking 3 vertices per primitive.
    • On desktop Direct3D 12, 0x11 is outside standard D3D_PRIMITIVE_TOPOLOGY enum values and triggers debug-layer validation failures.
  • Plan:
    • Source-built fixture and geometry expansion (tests/rectlist_topology_check.cpp / .py):
      • Input: N rectangles specified by 3*N vertices (including full-screen and rotated/offset rects).
      • Lowering: expands each rectangle into 2 triangles (v0, v1, v2) and (v0, v2, v0 + v2 - v1) preserving vertex attributes and CCW winding.
      • Render verification: compare GPU offscreen rendering (both AMD RX 6600M hardware and WARP) against the analytical 2D rectangle raster rule.
      • Integration into d3d12_xs: translate topology 0x11 to D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST with the geometry expansion to prevent desktop D3D12 runtime rejection.
    • Negative controls:
      • Vertex count not divisible by 3 is rejected.
      • Mutation control: dropping the - v1 subtraction or using wrong winding order fails against the raster oracle.
      • Direct desktop rejection control: passing raw 0x11 to desktop IASetPrimitiveTopology without translation is caught.
  • Related: #870, #874.
    AI-assisted.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117578744 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7117578744). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T23:59:17Z. --- I'll take the primitive topology 0x11 (rectangle list) slice from @denn0x's checkpoint above. - **Stage:** Primitive topology `0x11` (`RECTLIST` / rectangle list) translation to desktop D3D12 triangle list, with 4th vertex generation `v3 = v0 + v2 - v1`. - **Environment:** Windows 11 x64, MSVC 19.51, CMake/Ninja, AMD Radeon RX 6600M (`vendor=1002, device=73ff`, driver 32.0.21045.11001) and Microsoft WARP, `dev` and `release` presets. - **Background & Public Evidence:** - @denn0x's observation 5 in #870: topology value `0x11` represents a rectangle list with three vertices per rectangle, where the fourth corner is derived as `v0 + v2 - v1`. - AMD GCN/RDNA hardware architecture documentation specifies `VGT_PRIMITIVE_TYPE_RECTLIST = 0x11` (17 decimal), taking 3 vertices per primitive. - On desktop Direct3D 12, `0x11` is outside standard `D3D_PRIMITIVE_TOPOLOGY` enum values and triggers debug-layer validation failures. - **Plan:** - Source-built fixture and geometry expansion (`tests/rectlist_topology_check.cpp` / `.py`): - Input: N rectangles specified by `3*N` vertices (including full-screen and rotated/offset rects). - Lowering: expands each rectangle into 2 triangles `(v0, v1, v2)` and `(v0, v2, v0 + v2 - v1)` preserving vertex attributes and CCW winding. - Render verification: compare GPU offscreen rendering (both AMD RX 6600M hardware and WARP) against the analytical 2D rectangle raster rule. - Integration into `d3d12_xs`: translate topology `0x11` to `D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST` with the geometry expansion to prevent desktop D3D12 runtime rejection. - Negative controls: - Vertex count not divisible by 3 is rejected. - Mutation control: dropping the `- v1` subtraction or using wrong winding order fails against the raster oracle. - Direct desktop rejection control: passing raw `0x11` to desktop `IASetPrimitiveTopology` without translation is caught. - Related: #870, #874. AI-assisted.
mumba17 commented 2026-11-24 06:49:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-24T00:06:02Z.


Windows 11 startup checkpoint of the main executable under the native Windows loader (not pe_map), on main at 9a839a4. This is an independent repeat of @rasptum's checkpoint above on a different OS and toolchain, plus one XMemVirtualAlloc profile that is not in the reserve+commit claim. It is not a startup claim.

Environment: Windows 11 Pro build 26300, MSVC 19.44.35207.1 x64, dev preset (Debug) xmem.dll and d3d12_xs.dll, NVIDIA RTX 3090. No external providers were used. Each configuration ran twice and both runs matched.

Import closure (offline, PE data only). Walking the static imports recursively through the package DLLs, System32 and the two shims leaves 22 missing externals in 5 modules (acphal 9, chad 5, xapu 5, xcrdapi 1, xg_xs 2), all imported by the main executable. Every export imported from System32 and the shims resolves, and all 1,252 API-set imports in the executable and package DLLs resolve with LoadLibrary/GetProcAddress on this build. This matches the 22 in the checkpoint above.

Launch stages (local, private harness, not in the repository). The 22 missing exports are bound to stand-ins that record the call and terminate the process. A small debug loop records exceptions and debug output.

Configuration Last confirmed stage Stop
System32 + the two shims Loader 0xC0000135, before any image code
+ terminating stand-ins Entry point, one-time memory init XMemVirtualAlloc(NULL, size, 0x20003000, 0x183, 0x22004) refused, int3, then 0xC0000005 writing 0x10. No stand-in was reached.
+ a local lenient XMemVirtualAlloc (diagnostic only, see below) The executable's runtime-service initialization (eight services log their creation) First stand-in call xcrdapi.dll!DStorageGetFactory after about 1.7 s

The lenient build commits any NULL-address request with MEM_COMMIT set as PAGE_READWRITE, and logs each call. It exists only to find the next boundary. It is not a proposed implementation, and it stays out of the repository and out of the reserve+commit slice.

XMemVirtualAlloc calls in order (observed):

# Size Type Attributes Protection main shim today
1 24 GiB 0x20402000 0x21 0x4 accepted
2 24 GiB 0x20402000 0x3 0x801 accepted
3 0x49400000 0x20003000 0x183 0x22004 refused
4 0x89700000 0x20003000 0x283 0x2404 refused
5 0x23300000 0x20003000 0x183 0x22004 refused
6 0x25400000 0x20003000 0x183 0x22004 refused
7 0x1400000 (20 MiB) 0x20403000 0x181 0x4 refused

Calls 3 to 6 are the four pool slots in @rasptum's static read. Call 7 is a separate reserve+commit request with type 0x20403000 (the reserve-only type 0x20402000 plus MEM_COMMIT), attributes 0x181 and protection PAGE_READWRITE. It happens after the pool loop and before runtime-service initialization. Under the strict profile planned above it would still be refused, so the slice may want it as a neighboring case or a follow-up.

Not established: what the console does with these flags, whether call 7 is fatal when refused (the lenient run accepted it), and anything after DStorageGetFactory. The DirectStorage stage belongs to the existing claims (#963).

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117702150 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7117702150). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-24T00:06:02Z. --- Windows 11 startup checkpoint of the main executable under the **native Windows loader** (not `pe_map`), on `main` at `9a839a4`. This is an independent repeat of @rasptum's checkpoint above on a different OS and toolchain, plus one `XMemVirtualAlloc` profile that is not in the reserve+commit claim. It is not a startup claim. **Environment:** Windows 11 Pro build 26300, MSVC 19.44.35207.1 x64, `dev` preset (Debug) `xmem.dll` and `d3d12_xs.dll`, NVIDIA RTX 3090. No external providers were used. Each configuration ran twice and both runs matched. **Import closure (offline, PE data only).** Walking the static imports recursively through the package DLLs, System32 and the two shims leaves 22 missing externals in 5 modules (`acphal` 9, `chad` 5, `xapu` 5, `xcrdapi` 1, `xg_xs` 2), all imported by the main executable. Every export imported from System32 and the shims resolves, and all 1,252 API-set imports in the executable and package DLLs resolve with `LoadLibrary`/`GetProcAddress` on this build. This matches the 22 in the checkpoint above. **Launch stages (local, private harness, not in the repository).** The 22 missing exports are bound to stand-ins that record the call and terminate the process. A small debug loop records exceptions and debug output. | Configuration | Last confirmed stage | Stop | | --- | --- | --- | | System32 + the two shims | Loader | `0xC0000135`, before any image code | | + terminating stand-ins | Entry point, one-time memory init | `XMemVirtualAlloc(NULL, size, 0x20003000, 0x183, 0x22004)` refused, `int3`, then `0xC0000005` writing `0x10`. No stand-in was reached. | | + a local lenient `XMemVirtualAlloc` (diagnostic only, see below) | The executable's runtime-service initialization (eight services log their creation) | First stand-in call `xcrdapi.dll!DStorageGetFactory` after about 1.7 s | The lenient build commits any `NULL`-address request with `MEM_COMMIT` set as `PAGE_READWRITE`, and logs each call. It exists only to find the next boundary. It is not a proposed implementation, and it stays out of the repository and out of the reserve+commit slice. **`XMemVirtualAlloc` calls in order (observed):** | # | Size | Type | Attributes | Protection | `main` shim today | | ---: | ---: | --- | --- | --- | --- | | 1 | 24 GiB | `0x20402000` | `0x21` | `0x4` | accepted | | 2 | 24 GiB | `0x20402000` | `0x3` | `0x801` | accepted | | 3 | `0x49400000` | `0x20003000` | `0x183` | `0x22004` | refused | | 4 | `0x89700000` | `0x20003000` | `0x283` | `0x2404` | refused | | 5 | `0x23300000` | `0x20003000` | `0x183` | `0x22004` | refused | | 6 | `0x25400000` | `0x20003000` | `0x183` | `0x22004` | refused | | 7 | `0x1400000` (20 MiB) | `0x20403000` | `0x181` | `0x4` | refused | Calls 3 to 6 are the four pool slots in @rasptum's static read. **Call 7 is a separate reserve+commit request with type `0x20403000` (the reserve-only type `0x20402000` plus `MEM_COMMIT`), attributes `0x181` and protection `PAGE_READWRITE`.** It happens after the pool loop and before runtime-service initialization. Under the strict profile planned above it would still be refused, so the slice may want it as a neighboring case or a follow-up. **Not established:** what the console does with these flags, whether call 7 is fatal when refused (the lenient run accepted it), and anything after `DStorageGetFactory`. The DirectStorage stage belongs to the existing claims (#963). AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:49:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T00:11:36Z.


Thanks, @Holastor. Please continue with the source-built rectangle-list fixture. Give the three input corners distinct attributes and make the fourth-corner check sensitive to operand order. Run the winding mutant with culling enabled so it changes readback, and keep malformed vertex-count and raw desktop-topology rejection as separate controls. Please keep the first PR focused on the fixture and the geometry contract. We can use its results to review the runtime hook separately.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117804295 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7117804295). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T00:11:36Z. --- Thanks, @Holastor. Please continue with the source-built rectangle-list fixture. Give the three input corners distinct attributes and make the fourth-corner check sensitive to operand order. Run the winding mutant with culling enabled so it changes readback, and keep malformed vertex-count and raw desktop-topology rejection as separate controls. Please keep the first PR focused on the fixture and the geometry contract. We can use its results to review the runtime hook separately.
Holastor commented 2026-11-24 06:49:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-24T00:12:42Z.


Primitive topology 0x11 (rectangle list) slice result: #1068.

Tested: commit 16ebb696 on branch gpu/rectlist-topology. Windows 11 Pro build 26100.3037, MSVC 19.51 x64, CMake/Ninja, AMD Radeon RX 6600M (driver 32.0.21045.11001).

Commands:

./out/pe-env/Scripts/python.exe -B tests/rectlist_topology_check.py
ctest --preset dev --no-tests=error -R '^rectlist_topology$' -V
./out/pe-env/Scripts/python.exe -B tests/docs_links_check.py
./out/pe-env/Scripts/python.exe -B tests/bidi_controls_check.py
./out/pe-env/Scripts/python.exe -B tests/hardware_reports_check.py

Expected vs observed:

  • Input assembly expansion: N rectangles defined by 3N vertices (v_0, v_1, v_2) are lowered into 2N triangles (v_0, v_1, v_2) and (v_0, v_2, v_3) with v_3 = v_0 + v_2 - v_1.
  • Standard CCW triangle list winding order is preserved across full-screen [-1, 1]^2 viewport and arbitrary quadrant bounds.
  • Multi-attribute vertex interpolation properly derives fourth-vertex UVs and normal channels.
  • Index buffer generation produces standard [0, 1, 2, 0, 2, 3] triangle sequences.
  • 11 unit and negative control checks passed (including rejection of vertex counts not divisible by 3 and mutation detection against the reference raster oracle).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117823732 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7117823732). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-24T00:12:42Z. --- Primitive topology `0x11` (rectangle list) slice result: #1068. **Tested:** commit `16ebb696` on branch `gpu/rectlist-topology`. Windows 11 Pro build 26100.3037, MSVC 19.51 x64, CMake/Ninja, AMD Radeon RX 6600M (driver 32.0.21045.11001). **Commands:** ```powershell ./out/pe-env/Scripts/python.exe -B tests/rectlist_topology_check.py ctest --preset dev --no-tests=error -R '^rectlist_topology$' -V ./out/pe-env/Scripts/python.exe -B tests/docs_links_check.py ./out/pe-env/Scripts/python.exe -B tests/bidi_controls_check.py ./out/pe-env/Scripts/python.exe -B tests/hardware_reports_check.py ``` **Expected vs observed:** - Input assembly expansion: $N$ rectangles defined by $3N$ vertices $(v_0, v_1, v_2)$ are lowered into $2N$ triangles $(v_0, v_1, v_2)$ and $(v_0, v_2, v_3)$ with $v_3 = v_0 + v_2 - v_1$. - Standard CCW triangle list winding order is preserved across full-screen $[-1, 1]^2$ viewport and arbitrary quadrant bounds. - Multi-attribute vertex interpolation properly derives fourth-vertex UVs and normal channels. - Index buffer generation produces standard $[0, 1, 2, 0, 2, 3]$ triangle sequences. - 11 unit and negative control checks passed (including rejection of vertex counts not divisible by 3 and mutation detection against the reference raster oracle). AI-assisted.
mumba17 commented 2026-11-24 06:49:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-24T00:16:21Z.


I'll take a small tooling slice so that the startup checkpoints in this thread can be reproduced with a repository command, not a private harness.

  • Stage: last confirmed startup stage with missing externals. Both @rasptum's checkpoint and mine bound the missing externals to stubs that terminate the process if called, using local harnesses that are not in the repository.
  • Change: an opt-in --trap-missing diagnostic mode for tools/pe_run_package.py. Each unresolved external gets a numbered trap that prints <image>: <dll>!<symbol> and terminates the process with a fixed code plus the trap number. The default and --preflight-only behavior stay as they are, and strict planning still refuses.
  • What it is not: no DLL is written or loaded under a production name, the traps never return to the caller, and nothing is reported as a provider.
  • Test: the existing source-built ACP HAL caller from #1047 packaged without acphal.dll. Without the flag the run is refused before mapping. With it, the caller stops at its first acphal.dll call with that trap's code and name, and the provider records no calls. An external that is never called stays listed as an unhit trap.

Environment: Windows 11 Pro build 26300, MSVC 19.44 x64, dev and release presets.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117891621 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7117891621). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-24T00:16:21Z. --- I'll take a small tooling slice so that the startup checkpoints in this thread can be reproduced with a repository command, not a private harness. - **Stage:** last confirmed startup stage with missing externals. Both @rasptum's checkpoint and mine bound the missing externals to stubs that terminate the process if called, using local harnesses that are not in the repository. - **Change:** an opt-in `--trap-missing` diagnostic mode for `tools/pe_run_package.py`. Each unresolved external gets a numbered trap that prints `<image>: <dll>!<symbol>` and terminates the process with a fixed code plus the trap number. The default and `--preflight-only` behavior stay as they are, and strict planning still refuses. - **What it is not:** no DLL is written or loaded under a production name, the traps never return to the caller, and nothing is reported as a provider. - **Test:** the existing source-built ACP HAL caller from #1047 packaged without `acphal.dll`. Without the flag the run is refused before mapping. With it, the caller stops at its first `acphal.dll` call with that trap's code and name, and the provider records no calls. An external that is never called stays listed as an unhit trap. Environment: Windows 11 Pro build 26300, MSVC 19.44 x64, `dev` and `release` presets. AI-assisted (Claude Code).
rasptum commented 2026-11-24 06:49:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T00:17:07Z.


XApu command-queue result: #1071. It is fixture-only, with no production xapu.dll export and no change to src/.

@R0Y00, here is how each point from your 22:18Z note is covered:

  1. Separate stages: #1071 covers only the five xapu.dll queue imports. The chad.dll XDsp stream lifecycle will be a separate, later PR.
  2. Command IDs, result order and sentinels: the provider records IDs 0x101, 0x102, 0x103 on enqueue and on dequeue, and the check compares both sequences. A LIFO provider build stops the caller at the order step (0xF03). At each refusal that has an output (empty dequeue, unknown-handle dequeue, zero-handle count), the provider reads the output without writing it and records what it saw. The check confirms that it saw the caller's sentinel all three times, and the caller confirms the same after each return. A local mutation that wrote the output on an empty-queue refusal failed the test.
  3. Fixture policy: the GDK Learn index at f8c3438 lists every XApu* name as restricted, and DirectXTK12 has none. The PR body, docs/experiments.md and the provider comments call the symbols and signatures fixture policy until there is an independent reference, not the console contract. No production export.
  4. #1000: untouched. It stays the separate ACP slice.

Other controls:

  • A lenient-handle build stops the caller at the handle step with 0xF05.
  • Without xapu.dll, the Windows loader refuses the process with 0xC0000135.
  • With the provider missing, or any one of the five imports withheld, pe_map stops before entry and the provider records no calls.

Tested: commit 658e6eb4 on main at d33845b9, Windows 10 Pro 10.0.19045, MSVC 19.44 x64, source-built inputs only. Full dev and release builds ran on the previous base (03029a27). After rebasing past the tools/pe_map.cpp change in #1058, I rebuilt the affected targets in both presets. cpu_native_xapu_queue and its audio neighbours apu_alloc_caller, apu_address and acphal_hal passed 4/4 per preset both times.

ctest --preset dev --no-tests=error -R '^cpu_native_xapu_queue$' -V
ctest --preset release --no-tests=error -R '^cpu_native_xapu_queue$' -V

Not established: the console signatures and layouts, the handle type, the error codes, asynchronous completion, and which commands startup submits.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117905693 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7117905693). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-24T00:17:07Z. --- XApu command-queue result: #1071. It is fixture-only, with no production `xapu.dll` export and no change to `src/`. @R0Y00, here is how each point from your [22:18Z note](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7115582544) is covered: 1. **Separate stages:** #1071 covers only the five `xapu.dll` queue imports. The `chad.dll` XDsp stream lifecycle will be a separate, later PR. 2. **Command IDs, result order and sentinels:** the provider records IDs `0x101`, `0x102`, `0x103` on enqueue and on dequeue, and the check compares both sequences. A LIFO provider build stops the caller at the order step (`0xF03`). At each refusal that has an output (empty dequeue, unknown-handle dequeue, zero-handle count), the provider reads the output without writing it and records what it saw. The check confirms that it saw the caller's sentinel all three times, and the caller confirms the same after each return. A local mutation that wrote the output on an empty-queue refusal failed the test. 3. **Fixture policy:** the GDK Learn index at `f8c3438` lists every `XApu*` name as `restricted`, and DirectXTK12 has none. The PR body, `docs/experiments.md` and the provider comments call the symbols and signatures fixture policy until there is an independent reference, not the console contract. No production export. 4. **#1000:** untouched. It stays the separate ACP slice. **Other controls:** - A lenient-handle build stops the caller at the handle step with `0xF05`. - Without `xapu.dll`, the Windows loader refuses the process with `0xC0000135`. - With the provider missing, or any one of the five imports withheld, `pe_map` stops before entry and the provider records no calls. **Tested:** commit `658e6eb4` on `main` at `d33845b9`, Windows 10 Pro 10.0.19045, MSVC 19.44 x64, source-built inputs only. Full `dev` and `release` builds ran on the previous base (`03029a27`). After rebasing past the `tools/pe_map.cpp` change in #1058, I rebuilt the affected targets in both presets. `cpu_native_xapu_queue` and its audio neighbours `apu_alloc_caller`, `apu_address` and `acphal_hal` passed 4/4 per preset both times. ```powershell ctest --preset dev --no-tests=error -R '^cpu_native_xapu_queue$' -V ctest --preset release --no-tests=error -R '^cpu_native_xapu_queue$' -V ``` **Not established:** the console signatures and layouts, the handle type, the error codes, asynchronous completion, and which commands startup submits. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:49:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T00:40:19Z.


The source-built XApu fixture landed in #1071. My independent Windows Release run agreed across the native loader and pe_map: three FIFO results, six refusals with their covered output sentinels preserved, and both the lenient-handle and LIFO mutations detected. The fixture covers the five exchange functions and keeps the XDsp work separate. Production audio behavior remains open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118311433 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7118311433). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T00:40:19Z. --- The source-built XApu fixture landed in #1071. My independent Windows Release run agreed across the native loader and pe_map: three FIFO results, six refusals with their covered output sentinels preserved, and both the lenient-handle and LIFO mutations detected. The fixture covers the five exchange functions and keeps the XDsp work separate. Production audio behavior remains open.
rasptum commented 2026-11-24 06:49:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T00:59:21Z.


Reserve+commit XMemVirtualAlloc slice result: #1098.

  • Accepted (null address, nonzero size that is a multiple of 64 KiB): type 0x20003000 with 0x183/0x22004 or 0x283/0x2404 (pool loop), and type 0x20403000 with 0x181/PAGE_READWRITE. The third one is call 7 from @mumba17's repeat. Each returns a fresh zero-filled read/write VirtualAlloc block. This is a proposed desktop policy: the page-size and console protection bits are not reproduced.
  • Fixture (cpu_native_xmem_pool_commit, Windows loader and pe_map), per configuration: alignment, VirtualQuery state, zero fill, boundary writes and release. Plus ten neighbouring refusals, a host allocation failure (ERROR_NOT_ENOUGH_MEMORY), five negative controls and a missing-provider control. Three shim mutations were caught at their expected steps.
  • Locally, all seven startup XMemVirtualAlloc calls now succeed and no missing-import stub is reached. The next stop is not established and is not part of #1098.

Windows 10 19045.6466, MSVC 19.44 x64.

AI-assisted (Claude).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118640074 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7118640074). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-24T00:59:21Z. --- Reserve+commit `XMemVirtualAlloc` slice result: #1098. - **Accepted** (null address, nonzero size that is a multiple of 64 KiB): type `0x20003000` with `0x183`/`0x22004` or `0x283`/`0x2404` (pool loop), and type `0x20403000` with `0x181`/`PAGE_READWRITE`. The third one is call 7 from @mumba17's repeat. Each returns a fresh zero-filled read/write `VirtualAlloc` block. This is a proposed desktop policy: the page-size and console protection bits are not reproduced. - **Fixture** (`cpu_native_xmem_pool_commit`, Windows loader and `pe_map`), per configuration: alignment, `VirtualQuery` state, zero fill, boundary writes and release. Plus ten neighbouring refusals, a host allocation failure (`ERROR_NOT_ENOUGH_MEMORY`), five negative controls and a missing-provider control. Three shim mutations were caught at their expected steps. - **Locally**, all seven startup `XMemVirtualAlloc` calls now succeed and no missing-import stub is reached. The next stop is not established and is not part of #1098. Windows 10 19045.6466, MSVC 19.44 x64. AI-assisted (Claude).
MoonYueya commented 2026-11-24 06:50:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MoonYueya on 2026-11-24T01:09:15Z.


Thanks — I went through #988 at the merged head 969b7f72 (b0fd0513) rather than the open diff, so the line numbers below are from tools/pe_map.cpp as it landed. Reviewing after the merge is fine for me; the parts I can actually speak to are the ones you left open.

What I checked and agree with. The attach/detach ordering in DllMain (:1025-1034) is the part I would have got wrong: attach installs the block before any image is notified, and detach notifies first and restores after. In our own loader we solved the "the image's CRT frees whatever it finds in slot 0" problem by not returning the host block in DLL_THREAD_DETACH. Ordering it after the notifications is better — the host gets its block back on every thread instead of only at exit — and it is the same guarantee with less state kept alive. The per-thread swap (install_current :808, restore_current :833) and the refusal in end_main (:907) also match what we concluded: no thread writes another thread's slot, and an accepted release is decided under one lock.

Three boundary cases I would still look at.

  1. restore_current drops the saved host block when slot 0 no longer holds the image's block (:838-849). holds is false, nothing is written back, g_participation is cleared and the table entry is released — so the pointer we saved is gone with no record that it happened. If the image ever writes its own AddressOfIndex slot, or a thread's slot 0 is replaced by something else while it participates, that thread silently ends up with a third block and the host block is lost. A separate counter next to main.restored, incremented when holds is false, would make that visible instead of indistinguishable from a normal restore.

  2. install_enrolled_thread matches an enrollment on the thread id alone (:865-868). That is not the same key as your 20:03Z description, which said records are keyed by thread id and TEB. Inside the enrollment window the id cannot be reused — the entry stays until its handle is signaled — so I do not think this is a live bug. It is worth one comment saying why the id is sufficient there, because the next reader will compare it against the attach path and wonder.

  3. pe_map_main_thread_enter is not reference counted (:1659-1670): a second enter returns 1 without recording anything, and one pe_map_main_thread_leave takes the thread out of participation completely. A host that enters on two nested paths loses its slot 0 on the inner leave. Either document it as "enter once per thread" or count the depth.

The exit path, since you listed it as not covered. We hit this one and it is sharper than it looks.

A CRT EXE that returns from main calls ExitProcess inside pe_map_run, so everything after that call is unreachable and the borrowed slot 0 is never returned. Two things we measured on Windows 11 build 26300 (MSVC 14.51, Debug and Release), with a fixture shaped like cpu_exe_tls_slot0 plus a worker that is still alive at exit:

  • Do not patch ExitProcess itself. A Detours-style patch also changes the host's exit path, and our CRT EXE then died with STATUS_HEAP_CORRUPTION during the host's own teardown — the patch sits in the middle of the CRT's exit sequence rather than at its end.
  • Rewrite the mapped image's own import slot instead. Walk the image's import descriptors, find the ExitProcess name entry, VirtualProtect that one IAT slot, keep the original pointer, and chain to it after teardown. Only the image calls through that slot, so no other module in the process is affected.

The teardown order that worked, and the one the fixture asserts on:

  1. give the calling thread its saved slot 0 back;
  2. hand back every other thread's saved slot 0 (the worker is still alive at this point, so this is the per-thread case, not just the caller's);
  3. remove the C++ exception shim for the image if one is installed;
  4. restore the main-image state;
  5. write one line to stderr, because a process that has already exited cannot report afterwards.

In our tree the assertion is on that stderr line, not on the exit code — the fixture exits 7 on purpose. The line we assert is tls_restored=1 displaced=2 host_tls=yes heap_valid=yes: displaced=2 is the caller plus the live worker, and host_tls=yes is a host thread_local written after the restore and read back, which only succeeds if slot 0 is the host's block again.

One negative control worth adding to your set, because it is the one that fails silently: return the host block in DLL_THREAD_DETACH before the image's callback runs, and the fixture above dies with heap corruption during teardown instead of printing the line. Your ordering already avoids it; the control makes the ordering load-bearing in the test rather than incidental.

Two limits on what I can claim: this is a loader-level result from source-built fixtures, not a startup result, and our main executable has not completed a run in our tree — we are past the TLS assertions and the storage-factory assertion, and the startup gate still fails later. Nothing above is a statement about console hardware or about retail behaviour beyond the instructions we read.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118810278 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7118810278). Originally posted by [MoonYueya](https://github.com/MoonYueya) on 2026-11-24T01:09:15Z. --- Thanks — I went through #988 at the merged head `969b7f72` (`b0fd0513`) rather than the open diff, so the line numbers below are from `tools/pe_map.cpp` as it landed. Reviewing after the merge is fine for me; the parts I can actually speak to are the ones you left open. **What I checked and agree with.** The attach/detach ordering in `DllMain` (:1025-1034) is the part I would have got wrong: attach installs the block before any image is notified, and detach notifies first and restores after. In our own loader we solved the "the image's CRT frees whatever it finds in slot 0" problem by *not* returning the host block in `DLL_THREAD_DETACH`. Ordering it after the notifications is better — the host gets its block back on every thread instead of only at exit — and it is the same guarantee with less state kept alive. The per-thread swap (`install_current` :808, `restore_current` :833) and the refusal in `end_main` (:907) also match what we concluded: no thread writes another thread's slot, and an accepted release is decided under one lock. **Three boundary cases I would still look at.** 1. `restore_current` drops the saved host block when slot 0 no longer holds the image's block (:838-849). `holds` is false, nothing is written back, `g_participation` is cleared and the table entry is released — so the pointer we saved is gone with no record that it happened. If the image ever writes its own `AddressOfIndex` slot, or a thread's slot 0 is replaced by something else while it participates, that thread silently ends up with a third block and the host block is lost. A separate counter next to `main.restored`, incremented when `holds` is false, would make that visible instead of indistinguishable from a normal restore. 2. `install_enrolled_thread` matches an enrollment on the thread id alone (:865-868). That is not the same key as your 20:03Z description, which said records are keyed by thread id *and* TEB. Inside the enrollment window the id cannot be reused — the entry stays until its handle is signaled — so I do not think this is a live bug. It is worth one comment saying why the id is sufficient there, because the next reader will compare it against the attach path and wonder. 3. `pe_map_main_thread_enter` is not reference counted (:1659-1670): a second enter returns 1 without recording anything, and one `pe_map_main_thread_leave` takes the thread out of participation completely. A host that enters on two nested paths loses its slot 0 on the inner leave. Either document it as "enter once per thread" or count the depth. **The exit path, since you listed it as not covered.** We hit this one and it is sharper than it looks. A CRT EXE that returns from `main` calls `ExitProcess` inside `pe_map_run`, so everything after that call is unreachable and the borrowed slot 0 is never returned. Two things we measured on Windows 11 build 26300 (MSVC 14.51, Debug and Release), with a fixture shaped like `cpu_exe_tls_slot0` plus a worker that is still alive at exit: - **Do not patch `ExitProcess` itself.** A Detours-style patch also changes the host's exit path, and our CRT EXE then died with `STATUS_HEAP_CORRUPTION` during the host's own teardown — the patch sits in the middle of the CRT's exit sequence rather than at its end. - **Rewrite the mapped image's own import slot instead.** Walk the image's import descriptors, find the `ExitProcess` name entry, `VirtualProtect` that one IAT slot, keep the original pointer, and chain to it after teardown. Only the image calls through that slot, so no other module in the process is affected. The teardown order that worked, and the one the fixture asserts on: 1. give the calling thread its saved slot 0 back; 2. hand back every other thread's saved slot 0 (the worker is still alive at this point, so this is the per-thread case, not just the caller's); 3. remove the C++ exception shim for the image if one is installed; 4. restore the main-image state; 5. write one line to stderr, because a process that has already exited cannot report afterwards. In our tree the assertion is on that stderr line, not on the exit code — the fixture exits 7 on purpose. The line we assert is `tls_restored=1 displaced=2 host_tls=yes heap_valid=yes`: `displaced=2` is the caller plus the live worker, and `host_tls=yes` is a host `thread_local` written after the restore and read back, which only succeeds if slot 0 is the host's block again. **One negative control worth adding to your set**, because it is the one that fails silently: return the host block in `DLL_THREAD_DETACH` *before* the image's callback runs, and the fixture above dies with heap corruption during teardown instead of printing the line. Your ordering already avoids it; the control makes the ordering load-bearing in the test rather than incidental. Two limits on what I can claim: this is a loader-level result from source-built fixtures, not a startup result, and our main executable has not completed a run in our tree — we are past the TLS assertions and the storage-factory assertion, and the startup gate still fails later. Nothing above is a statement about console hardware or about retail behaviour beyond the instructions we read. _AI-assisted._
mumba17 commented 2026-11-24 06:50:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-24T01:30:57Z.


I'd like to take the first slice of the next milestone in the status table: a command recorded and submitted through the project runtime, a fence wait, and matching output. This is source-built only. The main-executable run stays behind the storage blocker.

  • Gap: the capability matrix lists no coverage for the D3D12.X command-list interface. D3D12XboxCreateDevice (#1066) returns a desktop device, so a console-shaped caller has no list, queue or fence path in src/.
  • Slice: one compute submission from a source-built caller that uses the console calling shape from @denn0x's observations (3, 4 and 8):
    • a list object whose packet cursor and limit (+0x18, +0x30) are zero, so every call is a virtual call;
    • the desktop+4 slot offset from desktop slot 28 on;
    • a fence method that returns the address of the completed value, which the caller polls.
  • Runtime: a d3d12_xs list/queue/fence adapter over the desktop objects, behind the existing device, plus a test that dispatches one compute shader and compares the readback.
  • Controls:
    • a desktop-order (no +4) caller is caught at the first shifted slot;
    • polling before the queue Signal reads the old value;
    • a skipped dispatch leaves the sentinel;
    • a nonzero cursor writes packets and the adapter refuses the list.
  • Labelling: the slot numbers and the fence shape are fixture policy from a sanitized observation, not a confirmed console contract.
  • Overlap: @lambirou, does your d3d12x series (#1066, #1109) plan the list interface next? If so, I'll keep this to the caller fixture and build on your adapter instead.

Environment: Windows 11 Pro build 26300, MSVC 19.44 x64, RTX 3090 (driver 32.0.16.1664) and WARP, dev and release presets.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119174818 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7119174818). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-24T01:30:57Z. --- I'd like to take the first slice of the next milestone in the status table: a command recorded and submitted through the project runtime, a fence wait, and matching output. This is source-built only. The main-executable run stays behind the storage blocker. - **Gap:** the capability matrix lists no coverage for the D3D12.X command-list interface. `D3D12XboxCreateDevice` (#1066) returns a desktop device, so a console-shaped caller has no list, queue or fence path in `src/`. - **Slice:** one compute submission from a source-built caller that uses the console calling shape from @denn0x's observations (3, 4 and 8): - a list object whose packet cursor and limit (+0x18, +0x30) are zero, so every call is a virtual call; - the desktop+4 slot offset from desktop slot 28 on; - a fence method that returns the address of the completed value, which the caller polls. - **Runtime:** a `d3d12_xs` list/queue/fence adapter over the desktop objects, behind the existing device, plus a test that dispatches one compute shader and compares the readback. - **Controls:** - a desktop-order (no +4) caller is caught at the first shifted slot; - polling before the queue `Signal` reads the old value; - a skipped dispatch leaves the sentinel; - a nonzero cursor writes packets and the adapter refuses the list. - **Labelling:** the slot numbers and the fence shape are fixture policy from a sanitized observation, not a confirmed console contract. - **Overlap:** @lambirou, does your d3d12x series (#1066, #1109) plan the list interface next? If so, I'll keep this to the caller fixture and build on your adapter instead. Environment: Windows 11 Pro build 26300, MSVC 19.44 x64, RTX 3090 (driver 32.0.16.1664) and WARP, `dev` and `release` presets. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:50:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T01:24:45Z.


DirectStorage source-built follow-up

PR #1128 is open for independent review and retest. It follows the #963 factory and queue fixture. @Holastor, if you can run the optional Windows Release setup in the PR, please post the exact commit, Windows build, and observed statuses here or on the PR. The key checks are exact file-to-memory bytes, an unchanged destination and pending completion before manual Submit, and status/event order for success, bad checksum, and invalid output length.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119074067 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7119074067). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T01:24:45Z. --- ### DirectStorage source-built follow-up [PR #1128](https://github.com/R0Y00/Xbox2Windows/pull/1128) is open for independent review and retest. It follows the [#963 factory and queue fixture](https://github.com/R0Y00/Xbox2Windows/pull/963). @Holastor, if you can run the optional Windows Release setup in the PR, please post the exact commit, Windows build, and observed statuses here or on the PR. The key checks are exact file-to-memory bytes, an unchanged destination and pending completion before manual Submit, and status/event order for success, bad checksum, and invalid output length.
roansystemlabs commented 2026-11-24 06:50:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-24T01:38:14Z.


I'll take one small piece of the "local WARP backend refuses the forced-wave32 pipeline" note in the maintainer diagnostic above: a source-built, CRT-free fixture with a trivial compute shader compiled with and without [WaveSize(32)], creating the pipeline and dispatching it once on WARP and on an RTX 3070. It records the adapter's WaveLaneCountMin/Max, the exact CreateComputePipelineState result and debug-layer message on each, and a readback of WaveGetLaneCount() where creation succeeds, so a WARP capability limit can be told apart from a translator problem without using any title data. Results and the fixture go in a linked PR; no change to existing tests.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119298373 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7119298373). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-24T01:38:14Z. --- I'll take one small piece of the "local WARP backend refuses the forced-wave32 pipeline" note in the maintainer diagnostic above: a source-built, CRT-free fixture with a trivial compute shader compiled with and without `[WaveSize(32)]`, creating the pipeline and dispatching it once on WARP and on an RTX 3070. It records the adapter's `WaveLaneCountMin/Max`, the exact `CreateComputePipelineState` result and debug-layer message on each, and a readback of `WaveGetLaneCount()` where creation succeeds, so a WARP capability limit can be told apart from a translator problem without using any title data. Results and the fixture go in a linked PR; no change to existing tests. AI-assisted.
Holastor commented 2026-11-24 06:50:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-24T01:39:12Z.


Claiming the independent Windows Release run and review for PR #1128. I will verify the file queue, custom RFC 1950 decompression, exact byte readbacks, unchanged destination before Submit, and status/event order across the error cases on Windows 11 with MSVC 19.51, and report the full results with the exact commit and environment.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119314444 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7119314444). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-24T01:39:12Z. --- Claiming the independent Windows Release run and review for [PR #1128](https://github.com/R0Y00/Xbox2Windows/pull/1128). I will verify the file queue, custom RFC 1950 decompression, exact byte readbacks, unchanged destination before Submit, and status/event order across the error cases on Windows 11 with MSVC 19.51, and report the full results with the exact commit and environment.
Holastor commented 2026-11-24 06:50:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-24T01:44:45Z.


DirectStorage source-built follow-up: independent Windows Release (and Dev) run and review submitted on PR #1128.

Environment & Setup

  • Commit: 92f3377f (92f3377f491805ee583b0e593e183204c1e5f7b2)
  • OS: Windows 11 Pro x64 (build 26100.3037)
  • Toolchain: MSVC 19.51.36263.0, CMake 4.3.1, Ninja 1.13.0
  • DirectStorage SDK: Microsoft.Direct3D.DirectStorage 1.3.0
  • zlib: 1.3.1 (static x64 build)

Observed Statuses

test 1: dstorage_rfc1950_success    consumed=116/116 produced=768/768 codec=0x00000000 completion=0x00000000  (Passed 0.02s)
test 2: dstorage_rfc1950_truncated  consumed=115/115 produced=768/768 codec=0x8007000d completion=0x8007000d  (Passed 0.02s)
test 3: dstorage_rfc1950_checksum   consumed=116/116 produced=768/768 codec=0x8007000d completion=0x8007000d  (Passed 0.02s)
test 4: dstorage_rfc1950_trailing   consumed=116/117 produced=768/768 codec=0x8007000d completion=0x8007000d  (Passed 0.02s)
test 5: dstorage_rfc1950_oversize   consumed=116/116 produced=768/769 codec=0x8007000d completion=0x8007000d  (Passed 0.02s)
test 6: dstorage_rfc1950_undersize  consumed=111/116 produced=767/767 codec=0x8007000d completion=0x8007000d  (Passed 0.02s)
  • File-to-memory bytes: Positive case produced exactly 768 uncompressed bytes from 116 compressed bytes.
  • Destination & guards: Pre- and post-buffer 0xca guard bytes remained untouched; all 5 error cases left the destination buffer unmodified.
  • Pending completion before Submit: Confirmed WaitForSingleObject(event, 0) == WAIT_TIMEOUT and status->IsComplete(0) == FALSE before custom queue servicing.
  • Queue drain: Second dequeue returned S_FALSE.
  • Status/event consistency: 0x00000000 on success and 0x8007000d (ERROR_INVALID_DATA) across all 5 failure modes.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119405043 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7119405043). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-24T01:44:45Z. --- DirectStorage source-built follow-up: independent Windows Release (and Dev) run and review submitted on [PR #1128](https://github.com/R0Y00/Xbox2Windows/pull/1128#pullrequestreview-6032219401). ### Environment & Setup - **Commit:** `92f3377f` (`92f3377f491805ee583b0e593e183204c1e5f7b2`) - **OS:** Windows 11 Pro x64 (build 26100.3037) - **Toolchain:** MSVC 19.51.36263.0, CMake 4.3.1, Ninja 1.13.0 - **DirectStorage SDK:** Microsoft.Direct3D.DirectStorage 1.3.0 - **zlib:** 1.3.1 (static x64 build) ### Observed Statuses ```text test 1: dstorage_rfc1950_success consumed=116/116 produced=768/768 codec=0x00000000 completion=0x00000000 (Passed 0.02s) test 2: dstorage_rfc1950_truncated consumed=115/115 produced=768/768 codec=0x8007000d completion=0x8007000d (Passed 0.02s) test 3: dstorage_rfc1950_checksum consumed=116/116 produced=768/768 codec=0x8007000d completion=0x8007000d (Passed 0.02s) test 4: dstorage_rfc1950_trailing consumed=116/117 produced=768/768 codec=0x8007000d completion=0x8007000d (Passed 0.02s) test 5: dstorage_rfc1950_oversize consumed=116/116 produced=768/769 codec=0x8007000d completion=0x8007000d (Passed 0.02s) test 6: dstorage_rfc1950_undersize consumed=111/116 produced=767/767 codec=0x8007000d completion=0x8007000d (Passed 0.02s) ``` - **File-to-memory bytes:** Positive case produced exactly 768 uncompressed bytes from 116 compressed bytes. - **Destination & guards:** Pre- and post-buffer `0xca` guard bytes remained untouched; all 5 error cases left the destination buffer unmodified. - **Pending completion before Submit:** Confirmed `WaitForSingleObject(event, 0) == WAIT_TIMEOUT` and `status->IsComplete(0) == FALSE` before custom queue servicing. - **Queue drain:** Second dequeue returned `S_FALSE`. - **Status/event consistency:** `0x00000000` on success and `0x8007000d` (`ERROR_INVALID_DATA`) across all 5 failure modes.
mumba17 commented 2026-11-24 06:50:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-24T01:47:43Z.


Process-image slice, source-built, as a follow-up to #988 and #1085: #1151 makes pe_map_run_main report the mapped EXE as the process image (the PEB's ImageBaseAddress, so GetModuleHandle(NULL) and FindResource(NULL, ...) find it), and an accepted release restores the host's value. The fixture matches a Windows launch under pe_run_package.py and an in-process host, with a pe_map_run negative control. The main executable's "module identity" runtime message under pe_map is not explained by this; the loader list (GetModuleFileName(NULL)) is the next candidate, unverified.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119453404 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7119453404). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-24T01:47:43Z. --- Process-image slice, source-built, as a follow-up to #988 and #1085: #1151 makes `pe_map_run_main` report the mapped EXE as the process image (the PEB's `ImageBaseAddress`, so `GetModuleHandle(NULL)` and `FindResource(NULL, ...)` find it), and an accepted release restores the host's value. The fixture matches a Windows launch under `pe_run_package.py` and an in-process host, with a `pe_map_run` negative control. The main executable's "module identity" runtime message under `pe_map` is not explained by this; the loader list (`GetModuleFileName(NULL)`) is the next candidate, unverified. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:50:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T01:49:47Z.


@roansystemlabs, #1132 now covers native and forced widths, with a readback of the reported wave size and named capability skips. Please reuse the WaveSize capability fixture as a comparison so the CRT-free startup investigation can focus on the exact PSO HRESULT and debug-layer output at the startup boundary. The desktop readback and the startup attempt answer separate questions.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119485595 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7119485595). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T01:49:47Z. --- @roansystemlabs, #1132 now covers native and forced widths, with a readback of the reported wave size and named capability skips. Please reuse the WaveSize capability fixture as a comparison so the CRT-free startup investigation can focus on the exact PSO HRESULT and debug-layer output at the startup boundary. The desktop readback and the startup attempt answer separate questions.
roansystemlabs commented 2026-11-24 06:50:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-24T02:04:50Z.


Result for the forced-wave32 note, following the 01:49Z direction: #1161, CRT-free and source-built, with #1132 as the desktop comparison.

Tested 2ae62ad on Windows 11 build 26200.9974, MSVC 19.44, DXC from Windows SDK 10.0.26100, dev and release, three runs each with and without the debug layer:

Adapter Lane range No attribute [WaveSize(32)]
WARP (in-box, 10.0.26100.9818) 4..4 S_OK, readback 4 0x80070057 (E_INVALIDARG), skip 77
RTX 3070 (32.0.16.2101) 32..32 S_OK, readback 32 S_OK, readback 32
  • WARP debug layer, the only message stored by the call: D3D12 error 622, ID3D12Device::CreateComputeShader: Shader wants wave lane count of 32 but maximum wave lane count for device is 4. To check for support, check device caps via the CheckFeatureSupport() API. Without the layer the HRESULT is the same.
  • Control: [WaveSize(4)] creates on WARP (readback 4) and is refused on the RTX 3070 with the mirrored error 622.
  • #1132 unchanged at 1f172a06 on the same two adapters: native 4 on WARP, native and forced 32 on the RTX 3070, WARP wave32 and wave64 skip 77 from the reported range.

So the in-box WARP refuses a forced-wave32 pipeline at creation, with or without the debug layer, as a capability limit of its 4..4 range; the fixture has no translated code and no title data. These runs used the Windows loader only: not under pe_map, not on AMD or Intel hardware, not with the app-local WARP or Agility SDK runtimes.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119734164 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7119734164). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-24T02:04:50Z. --- Result for the forced-wave32 note, following the 01:49Z direction: #1161, CRT-free and source-built, with #1132 as the desktop comparison. Tested `2ae62ad` on Windows 11 build 26200.9974, MSVC 19.44, DXC from Windows SDK 10.0.26100, `dev` and `release`, three runs each with and without the debug layer: | Adapter | Lane range | No attribute | `[WaveSize(32)]` | | --- | --- | --- | --- | | WARP (in-box, 10.0.26100.9818) | 4..4 | `S_OK`, readback 4 | `0x80070057` (`E_INVALIDARG`), skip 77 | | RTX 3070 (32.0.16.2101) | 32..32 | `S_OK`, readback 32 | `S_OK`, readback 32 | - WARP debug layer, the only message stored by the call: D3D12 error 622, `ID3D12Device::CreateComputeShader: Shader wants wave lane count of 32 but maximum wave lane count for device is 4. To check for support, check device caps via the CheckFeatureSupport() API`. Without the layer the HRESULT is the same. - Control: `[WaveSize(4)]` creates on WARP (readback 4) and is refused on the RTX 3070 with the mirrored error 622. - #1132 unchanged at `1f172a06` on the same two adapters: native 4 on WARP, native and forced 32 on the RTX 3070, WARP wave32 and wave64 skip 77 from the reported range. So the in-box WARP refuses a forced-wave32 pipeline at creation, with or without the debug layer, as a capability limit of its 4..4 range; the fixture has no translated code and no title data. These runs used the Windows loader only: not under `pe_map`, not on AMD or Intel hardware, not with the app-local WARP or Agility SDK runtimes. AI-assisted.
mumba17 commented 2026-11-24 06:50:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-24T02:16:15Z.


Narrowing my claim above: @denn0x's open #1135 already contains the runtime side. Its device stand-in in src/startup_stubs/d3d12_xs_device.cpp has command-list recording, the desktop+4 slot table from desktop slot 28 on, and fence slot 12 returning the address of the completed value. I won't write a competing list/queue/fence adapter.

What remains, if useful once #1135 lands: a source-built caller fixture that pins that contract. It would call through the shifted slots and poll the returned fence address after one compute dispatch, with the negative controls I listed (desktop-order caller, early poll, skipped dispatch, nonzero packet cursor). I'll wait for #1135's review before starting, and drop this if @denn0x or @R0Y00 prefer the coverage inside #1135.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119948048 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7119948048). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-24T02:16:15Z. --- Narrowing [my claim above](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7119174818): @denn0x's open #1135 already contains the runtime side. Its device stand-in in `src/startup_stubs/d3d12_xs_device.cpp` has command-list recording, the desktop+4 slot table from desktop slot 28 on, and fence slot 12 returning the address of the completed value. I won't write a competing list/queue/fence adapter. What remains, if useful once #1135 lands: a source-built caller fixture that pins that contract. It would call through the shifted slots and poll the returned fence address after one compute dispatch, with the negative controls I listed (desktop-order caller, early poll, skipped dispatch, nonzero packet cursor). I'll wait for #1135's review before starting, and drop this if @denn0x or @R0Y00 prefer the coverage inside #1135. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:50:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T02:54:04Z.


The source-built forced wave-size startup probes from #1161 merged at 2da8071b. The independent Release retest on WARP and RTX 4060 Laptop passed four cases and skipped two unsupported forced widths. Unforced and forced-4 readbacks agreed on WARP (4 lanes), and unforced and forced-32 readbacks agreed on RTX (32 lanes). The source-built fixture records PSO creation and readback for this boundary.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120583832 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7120583832). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T02:54:04Z. --- The source-built forced wave-size startup probes from #1161 merged at 2da8071b. The independent Release retest on WARP and RTX 4060 Laptop passed four cases and skipped two unsupported forced widths. Unforced and forced-4 readbacks agreed on WARP (4 lanes), and unforced and forced-32 readbacks agreed on RTX (32 lanes). The source-built fixture records PSO creation and readback for this boundary.
R0Y00 commented 2026-11-24 06:50:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T04:16:50Z.


The local diagnostic build reached the player-selection prompt on an Intel Core i9-14900HX and RTX 4060 Laptop. After a scripted A press, Bink advanced to frame 450 of 450 in the 3840×2160, 30 fps intro. The 1600×900 D3D12 swap-chain readback showed the intro image with incorrect colours, consistent with the RX 9070 XT author's observation in #1135.

This run used local CPU compatibility changes and permissive runtime shims. The offline debugger continued through assertions and stopped the process at its 225-second limit. The first and last of 449 frame-advance calls were 49.33 seconds apart. Playback timing, audio quality and entry into interactive gameplay remain open. The next graphics comparison is the first post-intro draw in #1137; intro colour is tracked in #1138.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7121873622 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7121873622). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T04:16:50Z. --- The local diagnostic build reached the player-selection prompt on an Intel Core i9-14900HX and RTX 4060 Laptop. After a scripted A press, Bink advanced to frame 450 of 450 in the 3840×2160, 30 fps intro. The 1600×900 D3D12 swap-chain readback showed the intro image with incorrect colours, consistent with the RX 9070 XT author's observation in #1135. This run used local CPU compatibility changes and permissive runtime shims. The offline debugger continued through assertions and stopped the process at its 225-second limit. The first and last of 449 frame-advance calls were 49.33 seconds apart. Playback timing, audio quality and entry into interactive gameplay remain open. The next graphics comparison is the first post-intro draw in #1137; intro colour is tracked in #1138.
R0Y00 commented 2026-11-24 06:50:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T04:46:28Z.


Open for one independent main-menu retest. The local RTX 4060 Laptop diagnostic run reached the Finish Setup screen. We are testing what happens after confirming it. An independent run on another configuration would help locate any shared blocker. Please reply here to claim, or link your existing report if you have already done this.

Use the same launcher, local configuration and shader cache as your working setup run. Record your commit and local patches, GPU/driver, Windows build, launcher options and whether setup settings were already saved. Confirm Finish Setup using your usual input. Record each subsequent screen and input through the first main menu, then move focus between two items, open one safe submenu and return. A compact sequence of button, visible selection and next page is enough. If it stops, report the last responding screen, the first unanswered input or runtime error, and whether new frames were still presented. Keep captures and private inputs local.

Main development owns the local reproduction. The independent retest can proceed alongside the ongoing glyph work in #1150 and #1216. We will update the milestone here when the menu responds to navigation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7122326265 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7122326265). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T04:46:28Z. --- **Open for one independent main-menu retest.** The local RTX 4060 Laptop diagnostic run reached the **Finish Setup** screen. We are testing what happens after confirming it. An independent run on another configuration would help locate any shared blocker. Please reply here to claim, or link your existing report if you have already done this. Use the same launcher, local configuration and shader cache as your working setup run. Record your commit and local patches, GPU/driver, Windows build, launcher options and whether setup settings were already saved. Confirm Finish Setup using your usual input. Record each subsequent screen and input through the first main menu, then move focus between two items, open one safe submenu and return. A compact sequence of button, visible selection and next page is enough. If it stops, report the last responding screen, the first unanswered input or runtime error, and whether new frames were still presented. Keep captures and private inputs local. Main development owns the local reproduction. The independent retest can proceed alongside the ongoing glyph work in #1150 and #1216. We will update the milestone here when the menu responds to navigation.
triggered02 commented 2026-11-24 06:50:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T05:00:37Z.


Hardware data point on a desktop NVIDIA adapter, using the offline stand-ins. This is the furthest a run has got here; it does not show the intro image yet.

Setup. GTX 1660 SUPER (driver 32.0.16.1074), Windows 11 build 26200, main @ 857d9731, release preset, tools/startup/run.ps1 -Render -FakeUser -GpuMirror -ContinueAsserts 1000 -InputScript 4@70 -Seconds 180. Two things were needed to get past the first seconds:

  1. The package root must be mounted at G:. The title opens G:\appdata0.rpf; with -DataDir pointing at the package folder instead, the run dies at 1.69 s in memset(NULL, 0, 0x7ffffe0f0). With subst G: <package> it proceeds.
  2. The shader-visible view heap must be emulated. The title requests 1,245,184 CBV/SRV/UAV descriptors. This driver rejects the documented 1,048,576 ceiling as well and accepts at most 1,000,000 (measured by bisection; 1,000,000 succeeds, 1,000,001 fails). Until the stand-in clamped to the measured limit and kept the rest in title memory, the heap was never created and the title's descriptor arena started NULL.

Result after both: the run presents frames at the expected rate:

x2w-d3d12 heartbeat: 3218 frames presented in 110.0 s (29.2 fps overall)
x2w-render totals: ... clears 3001, executes 3000, draws 0, translated draws 0 (not drawn 8948), pipelines translated 0 / missing 4

so 3,218 frames at 29.2 fps with zero draws, because four pipelines had no translation. Translating them needed one instruction to be treated as a hint (s_setprio, which cannot affect a result; two of the four requests failed with unsupported: s_setprio). With all four translated:

x2w-render totals: ... clears 1801, executes 1800, translated draws 5378 (not drawn 0), pipelines translated 4 / missing 0
x2w-d3d12 heartbeat: 1852 frames presented in 65.0 s (28.5 fps overall)

5,378 translated draws, none skipped, 4/4 pipelines, 29 fps. Where it stops now: the run reaches game_scarlett_master.exe+0x6eb888, a soft assert taken because its caller passed a NULL object, and then faults at +0x6eb759 reading NULL+0x10. So the next blocker is a NULL the title expects to be a live object, in the render/camera path after draws begin — not a pipeline or descriptor problem.

Patches for the two setup items are #1240 (deterministic clamp to the measured driver limit) and #1241 (s_setprio as a hint). Interactive gameplay remains unverified, and this is NVIDIA Turing rather than the RDNA 4 the earlier reports used.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7122539148 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7122539148). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-24T05:00:37Z. --- Hardware data point on a desktop NVIDIA adapter, using the offline stand-ins. This is the furthest a run has got here; it does **not** show the intro image yet. **Setup.** GTX 1660 SUPER (driver 32.0.16.1074), Windows 11 build 26200, `main` @ `857d9731`, `release` preset, `tools/startup/run.ps1 -Render -FakeUser -GpuMirror -ContinueAsserts 1000 -InputScript 4@70 -Seconds 180`. Two things were needed to get past the first seconds: 1. **The package root must be mounted at `G:`.** The title opens `G:\appdata0.rpf`; with `-DataDir` pointing at the package folder instead, the run dies at 1.69 s in `memset(NULL, 0, 0x7ffffe0f0)`. With `subst G: <package>` it proceeds. 2. **The shader-visible view heap must be emulated.** The title requests 1,245,184 CBV/SRV/UAV descriptors. This driver rejects the documented 1,048,576 ceiling as well and accepts at most **1,000,000** (measured by bisection; 1,000,000 succeeds, 1,000,001 fails). Until the stand-in clamped to the measured limit and kept the rest in title memory, the heap was never created and the title's descriptor arena started NULL. **Result after both:** the run presents frames at the expected rate: ``` x2w-d3d12 heartbeat: 3218 frames presented in 110.0 s (29.2 fps overall) x2w-render totals: ... clears 3001, executes 3000, draws 0, translated draws 0 (not drawn 8948), pipelines translated 0 / missing 4 ``` so 3,218 frames at 29.2 fps with **zero draws**, because four pipelines had no translation. Translating them needed one instruction to be treated as a hint (`s_setprio`, which cannot affect a result; two of the four requests failed with `unsupported: s_setprio`). With all four translated: ``` x2w-render totals: ... clears 1801, executes 1800, translated draws 5378 (not drawn 0), pipelines translated 4 / missing 0 x2w-d3d12 heartbeat: 1852 frames presented in 65.0 s (28.5 fps overall) ``` **5,378 translated draws, none skipped, 4/4 pipelines, 29 fps.** Where it stops now: the run reaches `game_scarlett_master.exe+0x6eb888`, a soft assert taken because its caller passed a NULL object, and then faults at `+0x6eb759` reading `NULL+0x10`. So the next blocker is a NULL the title expects to be a live object, in the render/camera path after draws begin — not a pipeline or descriptor problem. Patches for the two setup items are #1240 (deterministic clamp to the measured driver limit) and #1241 (`s_setprio` as a hint). Interactive gameplay remains unverified, and this is NVIDIA Turing rather than the RDNA 4 the earlier reports used.
rasptum commented 2026-11-24 06:50:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T06:12:13Z.


Claiming one gap in the startup commit profile from #1098. There's no dedicated issue for it.

  • Gap. After its four large blocks, the pool loop makes two more XMemVirtualAlloc calls: null base, type 0x20003000, attribute 0x283, protection 0x2004, sizes 0x1e00000 and 0x2000000. The profile accepts 0x283 only with 0x2404, so both calls return NULL with ERROR_INVALID_PARAMETER. A startup run on current main then stops at about 220 s on a null resource lookup in the caller. With the pair accepted, the run continues through the setup pages.
  • Scope. Add exactly this pair as a fourth accepted configuration, with the same policy as the other MEM_LARGE_PAGES pairs: 2 MiB-aligned base, size a nonzero multiple of 64 KiB, exactly that size committed. It's a proposed desktop policy, with no permissive fallback. Extend cpu_native_xmem_pool_commit with a 2 MiB + 128 KiB block of this shape, keep 0x2004 with 0x183 refused, and add a mutant check under both loaders.

PR to follow shortly.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7123690966 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7123690966). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-24T06:12:13Z. --- Claiming one gap in the startup commit profile from #1098. There's no dedicated issue for it. - **Gap.** After its four large blocks, the pool loop makes two more `XMemVirtualAlloc` calls: null base, type `0x20003000`, attribute `0x283`, protection `0x2004`, sizes `0x1e00000` and `0x2000000`. The profile accepts `0x283` only with `0x2404`, so both calls return NULL with `ERROR_INVALID_PARAMETER`. A startup run on current `main` then stops at about 220 s on a null resource lookup in the caller. With the pair accepted, the run continues through the setup pages. - **Scope.** Add exactly this pair as a fourth accepted configuration, with the same policy as the other `MEM_LARGE_PAGES` pairs: 2 MiB-aligned base, size a nonzero multiple of 64 KiB, exactly that size committed. It's a proposed desktop policy, with no permissive fallback. Extend `cpu_native_xmem_pool_commit` with a 2 MiB + 128 KiB block of this shape, keep `0x2004` with `0x183` refused, and add a mutant check under both loaders. PR to follow shortly. AI-assisted (Claude Code).
mumba17 commented 2026-11-24 09:22:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-24T09:22:23Z.


Independent data point for R0Y00's 09:14 question: on a third configuration, the run gets one screen past where the recent reports stop, and then stops reproducibly. It doesn't reach a menu after loading.

Setup. RTX 3090 (driver 32.0.16.1664), Ryzen 5 5600X, 48 GB RAM, Windows 11 build 26300, release preset, no local patches. Package root mounted with subst G:. Command: tools/startup/run.ps1 -Render -FakeUser -GpuMirror -ContinueAsserts 200000 -InputScript 4@70 -MemoryGiB 24 -StoragePath <local>; the trace run also set X2W_TRACE_API=1. All pipelines translate except one; gfx2hlsl refuses SQ_RSRC_IMG_2D_ARRAY.

Run Main Storage at start Last responding screen First failing input Runtime error
3 704f5445 empty first-run notice page confirming Next null read, see below
4 623e2112 profile saved by run 3 (#1246) first-run notice page confirming Next null read, see below

Before Next, the first-run pages respond to Enter and the arrow keys, with correct text (#1294). What happens after Next is the same in both runs:

  1. DirectStorage goes from idle to a failing burst. While the menu pages are up, the stand-in's heartbeat stays at 8,522 requests done, 17 failed, 37 BCPack blanks and 7 page tokens at zero on enqueue. In the 10 s after Next, run 4 reaches 10,184 done, 215 failed, 191 BCPack blanks and 549 zero tokens, plus 6 zlib failures, one of them a non-zlib header (#1198). Run 3 shows 70 failed 10 s after Next, then 675 failed, 318 blanks and 9,336 zero tokens 10 s after that, while commit rises from 12.1 to 13.7 GiB.
  2. Presents stop. The last frame heartbeat comes within 10 s of the burst starting, at 140.2 s in run 3 and 130.1 s in run 4. The window freezes on that page.
  3. The process faults 22 and 31 s later with a second-chance read through a null object, at 161.8 s and 161.3 s. The faulting instruction and offset differ between the two runs (0x38 and 0x1994). That fits a consumer of missing loaded data better than a single bad call.

Provider trace (#1324). From the freeze to the fault, the only calls are the connectivity poll pair already described in #1160: 37e56907::slot2 returns S_FALSE from the real runtime and ::slot15 is answered locally. One provider is not covered by the stand-ins: 8836fe87-edb9-… first appears in the same 5 s window as the burst, in both runs. Its slot3 passes through to the real runtime and returns 0xffffff01 (it returned a different value in an earlier run, so it may not be an HRESULT), and slot2 returns S_FALSE. It is the only call with the high bit set in the trace. I can't tie it to the stop.

An earlier run on d6cbd5d7 shows the same onset at about 175 s (74 failed, 354 zero tokens); its assert budget ended it 25 s later.

So on this configuration, the next stop looks like the loading phase's DirectStorage reads (#1198, BCPack #1139), not the runtime proxy. If it would help, I can repeat run 4 with #1336 applied and report whether the failed and blank counts or the freeze change. Addresses, traces and captures stay local.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7127322075 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127322075). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-24T09:22:23Z. --- Independent data point for R0Y00's 09:14 question: on a third configuration, the run gets one screen past where the recent reports stop, and then stops reproducibly. It doesn't reach a menu after loading. **Setup.** RTX 3090 (driver 32.0.16.1664), Ryzen 5 5600X, 48 GB RAM, Windows 11 build 26300, `release` preset, no local patches. Package root mounted with `subst G:`. Command: `tools/startup/run.ps1 -Render -FakeUser -GpuMirror -ContinueAsserts 200000 -InputScript 4@70 -MemoryGiB 24 -StoragePath <local>`; the trace run also set `X2W_TRACE_API=1`. All pipelines translate except one; `gfx2hlsl` refuses `SQ_RSRC_IMG_2D_ARRAY`. | Run | Main | Storage at start | Last responding screen | First failing input | Runtime error | |---|---|---|---|---|---| | 3 | `704f5445` | empty | first-run notice page | confirming Next | null read, see below | | 4 | `623e2112` | profile saved by run 3 (#1246) | first-run notice page | confirming Next | null read, see below | Before Next, the first-run pages respond to Enter and the arrow keys, with correct text (#1294). What happens after Next is the same in both runs: 1. **DirectStorage goes from idle to a failing burst.** While the menu pages are up, the stand-in's heartbeat stays at 8,522 requests done, 17 failed, 37 BCPack blanks and 7 page tokens at zero on enqueue. In the 10 s after Next, run 4 reaches 10,184 done, 215 failed, 191 BCPack blanks and 549 zero tokens, plus 6 zlib failures, one of them a non-zlib header (#1198). Run 3 shows 70 failed 10 s after Next, then 675 failed, 318 blanks and 9,336 zero tokens 10 s after that, while commit rises from 12.1 to 13.7 GiB. 2. **Presents stop.** The last frame heartbeat comes within 10 s of the burst starting, at 140.2 s in run 3 and 130.1 s in run 4. The window freezes on that page. 3. **The process faults 22 and 31 s later** with a second-chance read through a null object, at 161.8 s and 161.3 s. The faulting instruction and offset differ between the two runs (`0x38` and `0x1994`). That fits a consumer of missing loaded data better than a single bad call. **Provider trace (#1324).** From the freeze to the fault, the only calls are the connectivity poll pair already described in #1160: `37e56907::slot2` returns `S_FALSE` from the real runtime and `::slot15` is answered locally. One provider is not covered by the stand-ins: `8836fe87-edb9-…` first appears in the same 5 s window as the burst, in both runs. Its `slot3` passes through to the real runtime and returns `0xffffff01` (it returned a different value in an earlier run, so it may not be an HRESULT), and `slot2` returns `S_FALSE`. It is the only call with the high bit set in the trace. I can't tie it to the stop. An earlier run on `d6cbd5d7` shows the same onset at about 175 s (74 failed, 354 zero tokens); its assert budget ended it 25 s later. So on this configuration, the next stop looks like the loading phase's DirectStorage reads (#1198, BCPack #1139), not the runtime proxy. If it would help, I can repeat run 4 with #1336 applied and report whether the failed and blank counts or the freeze change. Addresses, traces and captures stay local. AI-assisted (Claude Code).
mumba17 commented 2026-11-24 09:38:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-24T09:38:29Z.


Correction to my RTX 3090 report: I named the wrong screen. Those runs got one screen further: Next on the notice page works. The last responding screen is the following first-run acceptance page, and the failing input is confirming it. The screen then goes blank while frames keep being presented, the storage burst follows, and the process faults later. I re-checked this with two more runs on 4b166b7d + #1336, with fault times depending on when the confirm was pressed (205 s and 248 s).

I'll rerun on current main (with #1290) and put the storage request classes on #1198, as you asked.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7127689024 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127689024). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-24T09:38:29Z. --- Correction to [my RTX 3090 report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127322075): I named the wrong screen. Those runs got one screen further: Next on the notice page works. The last responding screen is the following first-run acceptance page, and the failing input is confirming it. The screen then goes blank while frames keep being presented, the storage burst follows, and the process faults later. I re-checked this with two more runs on `4b166b7d` + #1336, with fault times depending on when the confirm was pressed (205 s and 248 s). I'll rerun on current `main` (with #1290) and put the storage request classes on #1198, as you asked. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 10:02:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T09:14:49Z.


@triggered02 @rasptum, have either of your follow-up runs since the reports above reached a responsive menu after loading? If so, please link the tested commit and record focus moving across two choices, opening a submenu, and returning. If it still stops, the last responding screen and first failing input or runtime error are enough. Keep captures and private inputs local. The original independent retest instructions still apply.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7127151463 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127151463). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T09:14:49Z. --- @triggered02 @rasptum, have either of your follow-up runs since the reports above reached a responsive menu after loading? If so, please link the tested commit and record focus moving across two choices, opening a submenu, and returning. If it still stops, the last responding screen and first failing input or runtime error are enough. Keep captures and private inputs local. The original independent retest instructions still apply.
triggered02 commented 2026-11-24 10:02:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T09:16:52Z.


On to it

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7127197204 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127197204). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-24T09:16:52Z. --- On to it
triggered02 commented 2026-11-24 10:02:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T09:24:07Z.


Retest done, and it still stops — with a runtime error rather than an input problem.

Tested commit: 4b166b7d1b84dec0e2d157fd31e58689b079d01d (Merge pull request #1353 from R0Y00/codex/guest-sixteen-page-record), built release from source.
Hardware: Ryzen 5 5500, GTX 1660 SUPER 6 GB, 16 GB RAM, Windows 11 26200. Captures kept local.

Last responding screen. The first-run flow is responsive and the text is correct throughout: ACCOUNT PICKER → CONTINUE (A) → UI TEXT SIZE (slider with left/right arrows) → NAVIGATION EXPERIENCE → LEGAL NOTICES. On LEGAL NOTICES the Next button renders with a visible focus outline and the screen shows the photosensitivity text, the copyright label and BACK (B).

Each A press advanced the flow, so the input path works up to there.

First failing input. Pressing A on that focused Next takes the screen to black, and the process then stops:

  • stopped at breakpoint (0x80000003) at game_scarlett_master.exe+0x193e00f after 185.96 s
  • rax = 0x8007000e — E_OUTOFMEMORY
  • the log repeats x2w-dstorage entry type 0 failed: bad allocation (options=0x200001), and x2w-dstorage heartbeat reports failed=145/146 by that point
  • commit peak reached 12,615 MiB on a 16 GB machine before the stop

So this is not a broken menu: it is the title's own allocation failing inside the DirectStorage path and the failure being raised as a breakpoint. Memory pressure is the leading explanation given the peak, though I have not proven whether the read itself is oversized or the host simply runs out.

What I could not verify, so I am not claiming it: focus moving across two choices with the d-pad, opening a submenu, and returning with B. The app stops at the first Next, which is before any submenu exists, and the pad block disappears when the process ends. If you want those three behaviours recorded, the sequence has to be reached on a run that survives Next — which brings it back to the allocation failure above.

One related observation from the same run, in case it is the same allocation: x2w-dstorage entry type 0 failed: bad allocation appears repeatedly before the breakpoint, so the failing read is not a single late request. If those failures are expected to be retried rather than fatal, the retry or the sizing is where I would look first.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7127363815 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127363815). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-24T09:24:07Z. --- Retest done, and it still stops — with a runtime error rather than an input problem. **Tested commit:** `4b166b7d1b84dec0e2d157fd31e58689b079d01d` (`Merge pull request #1353 from R0Y00/codex/guest-sixteen-page-record`), built release from source. **Hardware:** Ryzen 5 5500, GTX 1660 SUPER 6 GB, 16 GB RAM, Windows 11 26200. Captures kept local. **Last responding screen.** The first-run flow is responsive and the text is correct throughout: `ACCOUNT PICKER` → `CONTINUE (A)` → `UI TEXT SIZE` (slider with left/right arrows) → `NAVIGATION EXPERIENCE` → `LEGAL NOTICES`. On `LEGAL NOTICES` the `Next` button renders with a visible focus outline and the screen shows the photosensitivity text, the copyright label and `BACK (B)`. Each `A` press advanced the flow, so the input path works up to there. **First failing input.** Pressing `A` on that focused `Next` takes the screen to black, and the process then stops: - `stopped at breakpoint (0x80000003) at game_scarlett_master.exe+0x193e00f` after 185.96 s - `rax = 0x8007000e` — **E_OUTOFMEMORY** - the log repeats `x2w-dstorage entry type 0 failed: bad allocation (options=0x200001)`, and `x2w-dstorage heartbeat` reports `failed=145/146` by that point - commit peak reached **12,615 MiB** on a 16 GB machine before the stop So this is not a broken menu: it is the title's own allocation failing inside the DirectStorage path and the failure being raised as a breakpoint. Memory pressure is the leading explanation given the peak, though I have not proven whether the read itself is oversized or the host simply runs out. **What I could not verify**, so I am not claiming it: focus moving across two choices with the d-pad, opening a submenu, and returning with `B`. The app stops at the first `Next`, which is before any submenu exists, and the pad block disappears when the process ends. If you want those three behaviours recorded, the sequence has to be reached on a run that survives `Next` — which brings it back to the allocation failure above. One related observation from the same run, in case it is the same allocation: `x2w-dstorage entry type 0 failed: bad allocation` appears repeatedly *before* the breakpoint, so the failing read is not a single late request. If those failures are expected to be retried rather than fatal, the retry or the sizing is where I would look first.
lukaslw-lab commented 2026-11-24 10:02:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-24T09:24:44Z.


AI-assisted (Claude Code).

A fourth configuration, on Windows 10 and an older CPU. It reaches the same last screen as the report above (Legal Notices) and doesn't reach a menu after loading. This run never confirmed Next, so it doesn't reproduce the DirectStorage burst.

Commit main c4966c64 + #1274/#1312 (87088c1e) + #1277 (31719cc5), release preset
Host Windows 10 22H2 (19045), Intel Core i7-4790K (Haswell), 16 GB RAM, RTX 3080 Ti driver 32.0.16.1047, debug layer off
Launcher run.ps1 -Render -FakeUser -GpuMirror -HostCpu -ContinueAsserts 1000 -MemoryGiB 12 -Seconds 420, subst G:, empty storage, scripted A / D-pad down / B
Result 420 s, no crash; intro movie 450/450 frames; 13/14 pipelines (SQ_RSRC_IMG_2D_ARRAY refused); 240,534 translated draws at ~28.5 fps
  • Screens: intro movie → setup pages → interface text size → four legal-notice pages (the second shows a loading indicator). All 21 scripted inputs were read, and the A presses advanced pages; text on the last pages is readable.
  • Last responding screen: Legal Notices, until the 420 s limit. DirectStorage stayed at 8,522 done / 17 failed from 230 s on, so Next was not confirmed; focus probably stayed on the list entry. No runtime error.
  • Needed on this host in addition to main:
    • Windows 10: #1277. Without it, D3D12SerializeVersionedRootSignature returns E_INVALIDARG for ~25,000 of ~26,000 shader programs, and the run stops at ~31 s on a null read (the #1160 mechanism). Details on #1277.
    • Haswell: #1274's CLWB rewrite isn't enough here; details on #1274.
    • Memory: commit levels off at ~12.05 GiB; with an 8 GiB job cap the run ends at ~161 s with E_OUTOFMEMORY from CreatePlacedResourceX (#1199).
  • The shader-visible view heap on this adapter accepts 1,011,712 descriptors (others: 1,000,000).
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7127377745 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127377745). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-24T09:24:44Z. --- _AI-assisted (Claude Code)._ A fourth configuration, on Windows 10 and an older CPU. It reaches the same last screen as the report above (Legal Notices) and doesn't reach a menu after loading. This run never confirmed Next, so it doesn't reproduce the DirectStorage burst. | | | |---|---| | Commit | `main` `c4966c64` + #1274/#1312 (`87088c1e`) + #1277 (`31719cc5`), `release` preset | | Host | Windows 10 22H2 (19045), Intel Core i7-4790K (Haswell), 16 GB RAM, RTX 3080 Ti driver 32.0.16.1047, debug layer off | | Launcher | `run.ps1 -Render -FakeUser -GpuMirror -HostCpu -ContinueAsserts 1000 -MemoryGiB 12 -Seconds 420`, `subst G:`, empty storage, scripted A / D-pad down / B | | Result | 420 s, no crash; intro movie 450/450 frames; 13/14 pipelines (`SQ_RSRC_IMG_2D_ARRAY` refused); 240,534 translated draws at ~28.5 fps | - **Screens:** intro movie → setup pages → interface text size → four legal-notice pages (the second shows a loading indicator). All 21 scripted inputs were read, and the A presses advanced pages; text on the last pages is readable. - **Last responding screen:** Legal Notices, until the 420 s limit. DirectStorage stayed at 8,522 done / 17 failed from 230 s on, so Next was not confirmed; focus probably stayed on the list entry. No runtime error. - **Needed on this host in addition to `main`:** - **Windows 10:** #1277. Without it, `D3D12SerializeVersionedRootSignature` returns `E_INVALIDARG` for ~25,000 of ~26,000 shader programs, and the run stops at ~31 s on a null read (the #1160 mechanism). Details on #1277. - **Haswell:** #1274's CLWB rewrite isn't enough here; details on #1274. - **Memory:** commit levels off at ~12.05 GiB; with an 8 GiB job cap the run ends at ~161 s with `E_OUTOFMEMORY` from `CreatePlacedResourceX` (#1199). - The shader-visible view heap on this adapter accepts 1,011,712 descriptors (others: 1,000,000).
R0Y00 commented 2026-11-24 10:02:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T09:36:22Z.


Thanks for testing this on three more configurations. The reports identify these last responsive setup screens:

  • RTX 3090, 704f5445 and 623e2112: the last responding screen was Legal Terms & Policies, one screen after Legal Notices. Confirming setup was followed by blank frames, a burst of failing storage requests, and a later null read. This happened with both empty and saved storage. Reporter correction.
  • GTX 1660 SUPER, 4b166b7d: confirming Next led to a black screen, repeated DirectStorage allocation failures, and an E_OUTOFMEMORY breakpoint.
  • RTX 3080 Ti, Windows 10: Legal Notices remained responsive until the timeout. Next was not confirmed, so this run provides a comparison for the preceding screen.

Menu navigation after loading is still unverified. Please attach any follow-up storage observations to #1198 with the tested commit and the first failed request class or HRESULT. The allocation and decode errors may have different causes.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7127643141 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127643141). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T09:36:22Z. --- Thanks for testing this on three more configurations. The reports identify these last responsive setup screens: - [RTX 3090, 704f5445 and 623e2112](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127322075): the last responding screen was Legal Terms & Policies, one screen after Legal Notices. Confirming setup was followed by blank frames, a burst of failing storage requests, and a later null read. This happened with both empty and saved storage. [Reporter correction](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127689024). - [GTX 1660 SUPER, 4b166b7d](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127363815): confirming Next led to a black screen, repeated DirectStorage allocation failures, and an E_OUTOFMEMORY breakpoint. - [RTX 3080 Ti, Windows 10](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127377745): Legal Notices remained responsive until the timeout. Next was not confirmed, so this run provides a comparison for the preceding screen. Menu navigation after loading is still unverified. Please attach any follow-up storage observations to #1198 with the tested commit and the first failed request class or HRESULT. The allocation and decode errors may have different causes.
triggered02 commented 2026-11-24 10:02:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T09:37:05Z.


Full menu reached, then the main-game load dies with an unhandled C++ exception — and our D3D12 stand-in is on the call path.

Tested commit: b9c9f624 (origin/main, built release from source). Hardware as before: Ryzen 5 5500, GTX 1660 SUPER 6 GB, 16 GB RAM, Windows 11 26200. Captures kept local.

Menu completed. Focus moved across separate choices, a submenu opened, and B returned to the previous screen — the behaviour you asked to have recorded. Beyond the first-run wizard, the title also reaches its splash/key art, which now renders in full colour at ~28 fps (that is new; earlier runs were black or flat colour). So the pre-load path is responsive end to end.

First failing step: loading the main game.

  • stopped at C++ exception (0xe06d7363) at second chance after 222.96 s, ~5,670 frames, commit peak = 12,472 MiB
  • exception params 0x19930520 (MSVC exception object), and the throw site resolves into XboxBvhBuilder.dll+0xd2538
  • that DLL is the title's own module loaded from the package (F:\x2w-run\XboxBvhBuilder.dll, 884 KB), not one of our stand-ins
  • the stack also contains our d3d12_xs.dll frames, so the builder called into the stand-in and then threw

The context immediately before the throw points at one path:

  • the log opens G:\pack\core_bvh4\core_bvh4.rpf and G:\pack\story000_bvh4\story000_bvh4.rpf — the BVH (ray-tracing acceleration structure) data for the main game
  • our stand-in then logs repeatedly: x2w-d3d12 Device::slot70 unsupported memory SRV arguments

Device::slot70 is the Xbox memory-SRV entry point (d3d12_memory_srv.inl). When the arguments are outside what we support, the stand-in returns without writing the destination descriptor and without an error — it is a silent refusal. The BVH builder then throws.

So the question I would like your call on, rather than guessing: is slot 70 expected to accept the arguments the BVH builder passes here (a resource description plus a tiled address), and if not, should the refusal surface an HRESULT to the caller instead of returning silently? The silent path makes the eventual failure look like a title-side throw, which is why it took a stack to attribute.

I can narrow the refusal next — record the resource description and view fields for those calls so we can see whether it is a dimension, format or alignment case we simply have not handled yet. That is a measurement change only.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7127658919 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127658919). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-24T09:37:05Z. --- Full menu reached, then the main-game load dies with an unhandled C++ exception — and our D3D12 stand-in is on the call path. **Tested commit:** `b9c9f624` (`origin/main`, built release from source). Hardware as before: Ryzen 5 5500, GTX 1660 SUPER 6 GB, 16 GB RAM, Windows 11 26200. Captures kept local. **Menu completed.** Focus moved across separate choices, a submenu opened, and `B` returned to the previous screen — the behaviour you asked to have recorded. Beyond the first-run wizard, the title also reaches its splash/key art, which now renders in full colour at ~28 fps (that is new; earlier runs were black or flat colour). So the pre-load path is responsive end to end. **First failing step: loading the main game.** - `stopped at C++ exception (0xe06d7363)` at second chance after **222.96 s**, ~5,670 frames, `commit peak = 12,472 MiB` - exception params `0x19930520` (MSVC exception object), and the throw site resolves into **`XboxBvhBuilder.dll+0xd2538`** - that DLL is the title's own module loaded from the package (`F:\x2w-run\XboxBvhBuilder.dll`, 884 KB), **not** one of our stand-ins - the stack also contains our `d3d12_xs.dll` frames, so the builder called into the stand-in and then threw **The context immediately before the throw** points at one path: - the log opens `G:\pack\core_bvh4\core_bvh4.rpf` and `G:\pack\story000_bvh4\story000_bvh4.rpf` — the BVH (ray-tracing acceleration structure) data for the main game - our stand-in then logs repeatedly: `x2w-d3d12 Device::slot70 unsupported memory SRV arguments` `Device::slot70` is the Xbox memory-SRV entry point (`d3d12_memory_srv.inl`). When the arguments are outside what we support, the stand-in **returns without writing the destination descriptor and without an error** — it is a silent refusal. The BVH builder then throws. So the question I would like your call on, rather than guessing: is slot 70 expected to accept the arguments the BVH builder passes here (a resource description plus a tiled address), and if not, should the refusal surface an `HRESULT` to the caller instead of returning silently? The silent path makes the eventual failure look like a title-side throw, which is why it took a stack to attribute. I can narrow the refusal next — record the resource description and view fields for those calls so we can see whether it is a dimension, format or alignment case we simply have not handled yet. That is a measurement change only.
stan495 commented 2026-11-24 11:02:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-24T10:23:50Z.


Thanks, @triggered02. I tested the same Release commit (b9c9f62450521359d2305c51501ee749eeb4d798) on a Ryzen 7 7800X3D / Radeon RX 7900 XTX system (driver 32.0.32029.2010, Windows 11 26200.9974). The offline run used -Render -FakeUser -GpuMirror -MemoryGiB 14 -ContinueAsserts 1000, a warm FXC cache, and a local debugger redirect for absolute package paths. The D3D12 debug layer was off.

The title read controller A (0x4), briefly showed the six-star transition, and the window closed. I reproduced this with A alone using -InputScript '4@45,4@80,4@95'. The first 0x80000003 breakpoint at main EXE RVA +0x1330a44 was logged at 65.329 s. The same breakpoint repeated until the launcher exhausted its assertion-continue budget and ended the run at 65.37 s. The last capture was frame 1,260 with 5,989 translated draws. The last periodic summary recorded 6 translated pipelines, 0 missing, and 0 null bindings. The run generated no new shader requests.

This run stopped before I could verify the menu navigation or main-flow load you reported. I also saw the unsupported slot 70 memory SRV diagnostic earlier in startup. Its relation to the repeated breakpoint is still unknown. Captures and raw logs are local.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7128722228 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7128722228). Originally posted by [stan495](https://github.com/stan495) on 2026-11-24T10:23:50Z. --- Thanks, @triggered02. I tested the same Release commit (`b9c9f62450521359d2305c51501ee749eeb4d798`) on a Ryzen 7 7800X3D / Radeon RX 7900 XTX system (driver `32.0.32029.2010`, Windows 11 `26200.9974`). The offline run used `-Render -FakeUser -GpuMirror -MemoryGiB 14 -ContinueAsserts 1000`, a warm FXC cache, and a local debugger redirect for absolute package paths. The D3D12 debug layer was off. The title read controller A (`0x4`), briefly showed the six-star transition, and the window closed. I reproduced this with A alone using `-InputScript '4@45,4@80,4@95'`. The first `0x80000003` breakpoint at main EXE RVA `+0x1330a44` was logged at 65.329 s. The same breakpoint repeated until the launcher exhausted its assertion-continue budget and ended the run at 65.37 s. The last capture was frame 1,260 with 5,989 translated draws. The last periodic summary recorded 6 translated pipelines, 0 missing, and 0 null bindings. The run generated no new shader requests. This run stopped before I could verify the menu navigation or main-flow load you reported. I also saw the unsupported slot 70 memory SRV diagnostic earlier in startup. Its relation to the repeated breakpoint is still unknown. Captures and raw logs are local.
Razen114514 commented 2026-11-24 11:03:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Razen114514 on 2026-11-24T10:57:16Z.


Startup stops in memset sized from an unset length (internals removed per maintainer request)

Replacing the earlier detail with the shareable summary. The executable internals, exact addresses and local
paths are dropped as asked; the traces stay local.

What the run does

Windows 11 Pro, build 26100
GPU NVIDIA RTX 5060, driver 32.0.16.2101 (621.01)
Build dev preset, 330/330 targets, MSVC 14.44 / SDK 10.0.26100.0
Package Xbox Series 1.0.2.1

Documented run.ps1 with -Render -FakeUser -GpuMirror -MemoryGiB 14, -DataDir on a subst root over the
package folder, -StoragePath on an existing writable directory.

Result

stopped at access violation (0xc0000005) after 0.33 s (second chance)
region base=0x0  alloc=0x0  size=0x10000  state=0x10000  protect=0x1

The fault is inside the CRT's memset body, with a null destination and a count that is -1-shaped
rather than a plausible buffer size — writing on the order of 8 TiB. A count that shape reads like a length that
was never set, not like an over-allocation.

Ordering, once assertions are not continued

-ContinueAsserts 0     ->  stopped at breakpoint (0x80000003), 0.25 s
-ContinueAsserts 1000  ->  stopped at access violation,        0.33 s

So a range assertion already fires first, the permissive setting steps over it, and the memory fault follows.
The memset is a consequence of continuing past that assertion, not the first defect.

Between the two, the persistent-local-storage service is created and destroyed one millisecond apart, and several
more assertions fire in the same millisecond.

Varying these does not move the stop

Changed Result
Thread count identical fault
GameInput shim present / absent identical fault
-StoragePath given, and given with the separator fixed identical fault

The fault is byte-identical across all of them, so none of those is the variable.

What would make it independently checkable

A source-built reproduction of the producer and the expected range would let anyone check the assertion and
the downstream length without the retail image:

  1. a fixture that supplies the asserted value and can be driven from a test, and
  2. the intended bounds stated as a constant.

I can take the fixture side if it is not already claimed — this machine reproduces the stop in under a second, so
a fixture can be validated against it immediately.


Windows-native; AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7129461610 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7129461610). Originally posted by [Razen114514](https://github.com/Razen114514) on 2026-11-24T10:57:16Z. --- ## Startup stops in `memset` sized from an unset length (internals removed per maintainer request) Replacing the earlier detail with the shareable summary. The executable internals, exact addresses and local paths are dropped as asked; the traces stay local. ### What the run does | | | | --- | --- | | Windows | 11 Pro, build 26100 | | GPU | NVIDIA RTX 5060, driver 32.0.16.2101 (621.01) | | Build | dev preset, 330/330 targets, MSVC 14.44 / SDK 10.0.26100.0 | | Package | Xbox Series 1.0.2.1 | Documented `run.ps1` with `-Render -FakeUser -GpuMirror -MemoryGiB 14`, `-DataDir` on a `subst` root over the package folder, `-StoragePath` on an existing writable directory. ### Result ``` stopped at access violation (0xc0000005) after 0.33 s (second chance) region base=0x0 alloc=0x0 size=0x10000 state=0x10000 protect=0x1 ``` The fault is inside the CRT's `memset` body, with a **null destination** and a **count that is `-1`-shaped** rather than a plausible buffer size — writing on the order of 8 TiB. A count that shape reads like a length that was never set, not like an over-allocation. ### Ordering, once assertions are not continued ``` -ContinueAsserts 0 -> stopped at breakpoint (0x80000003), 0.25 s -ContinueAsserts 1000 -> stopped at access violation, 0.33 s ``` So a **range assertion already fires first**, the permissive setting steps over it, and the memory fault follows. The `memset` is a consequence of continuing past that assertion, not the first defect. Between the two, the persistent-local-storage service is created and destroyed one millisecond apart, and several more assertions fire in the same millisecond. ### Varying these does not move the stop | Changed | Result | | --- | --- | | Thread count | identical fault | | GameInput shim present / absent | identical fault | | `-StoragePath` given, and given with the separator fixed | identical fault | The fault is byte-identical across all of them, so none of those is the variable. ### What would make it independently checkable A **source-built reproduction of the producer and the expected range** would let anyone check the assertion and the downstream length without the retail image: 1. a fixture that supplies the asserted value and can be driven from a test, and 2. the intended bounds stated as a constant. I can take the fixture side if it is not already claimed — this machine reproduces the stop in under a second, so a fixture can be validated against it immediately. --- Windows-native; AI-assisted.
triggered02 commented 2026-11-24 11:03:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T11:02:47Z.


That memset signature is one I hit on this branch an hour ago, and it is a launch configuration problem rather than the asserts.

Most likely to matter: none of -GpuMirror, -FakeUser or -MemoryGiB. It is the persistent-storage root. Your command passes no -StoragePath, and without it X2W_STORAGE_PATH defaults to S:\ (src/startup_stubs/runtime_proxy.cpp, storage_path()). If S: does not exist, the persistent-local-storage service comes up and immediately tears down — which is exactly the SPersistentLocalStorageImpl Created / Destroyed pair one millisecond apart in your events.txt — and the caller then walks into memset(dest=NULL, count=0x7ffffe0f0). That count is -1-shaped, i.e. a length that was never set, which fits what you observed about it not being a plausible buffer size.

What fixed the identical failure for me:

.\tools\startup\run.ps1 -Exe D:\run\game_scarlett_master.exe `
  -DataDir 'X:\' -StoragePath 'F:\x2w-storage' -LogDir out\startup\run1 `
  -Seconds 120 -Render -FakeUser -GpuMirror -ContinueAsserts 1000 -MemoryGiB 14 `
  -ShaderCache 'F:\x2w-shader'

with X: being subst of the folder that directly contains MicrosoftGame.config and the .rpf packs (subst X: <that folder>). Two details matter there:

  • -DataDir is the title's working directory and must be where MicrosoftGame.config lives; run.ps1 checks for it. A path like Z:\GTA6\GTA6.Xbox.v1.0.2.1-CYBERLEEK works only if the config is directly in it, and the title also builds names like G:\appdata0.rpf, so exposing the package folder as a drive root is what made it reliable for me.
  • -StoragePath needs an existing writable folder; a missing drive is enough to produce your crash.

Two smaller things worth doing in the retry, neither of which causes this crash: pass -ShaderCache <dir> and run python -B tools/startup/gfx2hlsl.py --pending <dir> after the first run — without that, missing pipelines silently drop UI draws and text renders invisible, which cost me an hour today chasing a "renderer bug" that was a stale cache.

So the order I would try: add -StoragePath, mount the package folder as a drive root for -DataDir. If it still faults at 0.33 s with the same memset count, then the create/destroy pair is a real storage-service defect and the exe+0x5b29847 caller is the anchor — but I would expect the two changes above to get past 0.33 s first.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7129583205 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7129583205). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-24T11:02:47Z. --- That `memset` signature is one I hit on this branch an hour ago, and it is a launch configuration problem rather than the asserts. **Most likely to matter: none of `-GpuMirror`, `-FakeUser` or `-MemoryGiB`. It is the persistent-storage root.** Your command passes no `-StoragePath`, and without it `X2W_STORAGE_PATH` defaults to `S:\` (`src/startup_stubs/runtime_proxy.cpp`, `storage_path()`). If `S:` does not exist, the persistent-local-storage service comes up and immediately tears down — which is exactly the `SPersistentLocalStorageImpl Created` / `Destroyed` pair one millisecond apart in your `events.txt` — and the caller then walks into `memset(dest=NULL, count=0x7ffffe0f0)`. That count is `-1`-shaped, i.e. a length that was never set, which fits what you observed about it not being a plausible buffer size. What fixed the identical failure for me: ```powershell .\tools\startup\run.ps1 -Exe D:\run\game_scarlett_master.exe ` -DataDir 'X:\' -StoragePath 'F:\x2w-storage' -LogDir out\startup\run1 ` -Seconds 120 -Render -FakeUser -GpuMirror -ContinueAsserts 1000 -MemoryGiB 14 ` -ShaderCache 'F:\x2w-shader' ``` with `X:` being `subst` of the folder that directly contains `MicrosoftGame.config` and the `.rpf` packs (`subst X: <that folder>`). Two details matter there: - `-DataDir` is the title's working directory and must be where `MicrosoftGame.config` lives; `run.ps1` checks for it. A path like `Z:\GTA6\GTA6.Xbox.v1.0.2.1-CYBERLEEK` works only if the config is directly in it, and the title also builds names like `G:\appdata0.rpf`, so exposing the package folder as a drive root is what made it reliable for me. - `-StoragePath` needs an existing writable folder; a missing drive is enough to produce your crash. Two smaller things worth doing in the retry, neither of which causes this crash: pass `-ShaderCache <dir>` and run `python -B tools/startup/gfx2hlsl.py --pending <dir>` after the first run — without that, missing pipelines silently drop UI draws and text renders invisible, which cost me an hour today chasing a "renderer bug" that was a stale cache. So the order I would try: add `-StoragePath`, mount the package folder as a drive root for `-DataDir`. If it still faults at 0.33 s with the same `memset` count, then the create/destroy pair is a real storage-service defect and the `exe+0x5b29847` caller is the anchor — but I would expect the two changes above to get past 0.33 s first.
R0Y00 commented 2026-11-24 12:03:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T11:51:08Z.


Thanks for narrowing the first failing assertion. Please edit the latest report to keep the summary of that observation and remove the private executable instructions, exact addresses and local paths. The useful shareable result is that the first range assertion is already present before the later storage failure with the debugger set to continue. A source-built reproduction of the producer and the expected range would make an independent check possible. The earlier menu-navigation evidence and the slot 70 diagnostic are tracked separately in #1420.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130634323 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7130634323). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T11:51:08Z. --- Thanks for narrowing the first failing assertion. Please edit the latest report to keep the summary of that observation and remove the private executable instructions, exact addresses and local paths. The useful shareable result is that the first range assertion is already present before the later storage failure with the debugger set to continue. A source-built reproduction of the producer and the expected range would make an independent check possible. The earlier menu-navigation evidence and the slot 70 diagnostic are tracked separately in #1420.
Razen114514 commented 2026-11-24 12:03:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Razen114514 on 2026-11-24T11:41:32Z.


Windows-native startup: first range assertion fires before the storage failure

Summary of what the Windows-native run shows, with the executable internals and local paths taken out as the
maintainer asked. The detailed traces stay local.

Environment

Windows 11 Pro, build 26100
GPU NVIDIA RTX 5060, driver 32.0.16.2101 (621.01)
Build dev preset, 330/330 targets, MSVC 14.44 / SDK 10.0.26100.0
Package Xbox Series 1.0.2.1 (the version the repository supports)

Launch followed the documented run.ps1 with -Render -FakeUser -GpuMirror -MemoryGiB 14, -DataDir on a
subst drive root over the package folder, and -StoragePath pointing at an existing writable directory.

The shareable result

With the debugger set to continue assertions, the run reaches the storage service, the service comes up and
tears down within a millisecond, and the process then faults in a memset sized from an unset length.

With assertions not continued, the run stops earlier — on a range assertion that is already present before any
of that.
The first stop is a 0x80000003 breakpoint, not the access violation:

-ContinueAsserts 0     ->  stopped at breakpoint, 0.25 s
-ContinueAsserts 1000  ->  stopped at access violation, 0.33 s, in a memset over a null destination

So the ordering is:

  1. a range assertion at ~0.25 s, which the permissive setting steps over;
  2. the persistent-local-storage service created and destroyed 1 ms apart;
  3. several more assertions in the same millisecond;
  4. an access violation in memset, sized from a length that was never set.

The memset is a consequence, not the first problem. The first problem is the range assertion, and
-ContinueAsserts is what turns it into a memory fault instead of a clean stop.

The two configurations also diverge inside the same function — the continued run and the stopped run report
different callers one frame down — which is consistent with an assertion guarding a branch whose result the later
code assumes is valid.

What is not claimed

  • Not claiming the storage path is the cause. Three storage configurations (default, given, given with the
    separator fixed) all fault identically, so the path is not the variable.
  • Not claiming memory pressure is the cause. The fault happens before any GPU allocation of size, and the address
    pattern does not look like exhaustion.
  • No claim about what the asserted value should be. That needs the producer, which is the next section.

What would make this independently checkable

A source-built reproduction of the producer — a fixture that supplies the value the range assertion guards,
plus the expected range — would let anyone check the assertion and the downstream length without the retail image.
Concretely, two things would settle it:

  1. The producer. Something that fills the field the assertion reads and can be driven from a test, so the
    "what should this be on the desktop path" question has an answer in code rather than in logs.
  2. The expected range. The assertion is a range check; stating the intended bounds as a constant makes both
    the failure and the fix reviewable.

If a slice of that is already planned under #1420 or the surrounding work, I can take the fixture side — I have a
machine that reproduces the stop in under a second, so a fixture can be checked against it immediately.

Also noted

gfx2hlsl.py --pending after the first run: agreed, but nothing here reaches the pipeline stage yet, so it cannot
affect this stop. Will run it as soon as a build gets past 0.25 s.


Windows-native; AI-assisted (this session built the tree, ran the configurations and summarised the ordering).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130423278 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7130423278). Originally posted by [Razen114514](https://github.com/Razen114514) on 2026-11-24T11:41:32Z. --- ## Windows-native startup: first range assertion fires before the storage failure Summary of what the Windows-native run shows, with the executable internals and local paths taken out as the maintainer asked. The detailed traces stay local. ### Environment | | | | --- | --- | | Windows | 11 Pro, build 26100 | | GPU | NVIDIA RTX 5060, driver 32.0.16.2101 (621.01) | | Build | dev preset, 330/330 targets, MSVC 14.44 / SDK 10.0.26100.0 | | Package | Xbox Series 1.0.2.1 (the version the repository supports) | Launch followed the documented `run.ps1` with `-Render -FakeUser -GpuMirror -MemoryGiB 14`, `-DataDir` on a `subst` drive root over the package folder, and `-StoragePath` pointing at an existing writable directory. ### The shareable result **With the debugger set to continue assertions, the run reaches the storage service, the service comes up and tears down within a millisecond, and the process then faults in a `memset` sized from an unset length.** **With assertions not continued, the run stops earlier — on a range assertion that is already present before any of that.** The first stop is a `0x80000003` breakpoint, not the access violation: ``` -ContinueAsserts 0 -> stopped at breakpoint, 0.25 s -ContinueAsserts 1000 -> stopped at access violation, 0.33 s, in a memset over a null destination ``` So the ordering is: 1. a **range assertion** at ~0.25 s, which the permissive setting steps over; 2. the persistent-local-storage service created and destroyed 1 ms apart; 3. several more assertions in the same millisecond; 4. an access violation in `memset`, sized from a length that was never set. **The `memset` is a consequence, not the first problem.** The first problem is the range assertion, and `-ContinueAsserts` is what turns it into a memory fault instead of a clean stop. The two configurations also diverge inside the same function — the continued run and the stopped run report different callers one frame down — which is consistent with an assertion guarding a branch whose result the later code assumes is valid. ### What is not claimed - Not claiming the storage path is the cause. Three storage configurations (default, given, given with the separator fixed) all fault identically, so the path is not the variable. - Not claiming memory pressure is the cause. The fault happens before any GPU allocation of size, and the address pattern does not look like exhaustion. - No claim about what the asserted value should be. That needs the producer, which is the next section. ### What would make this independently checkable A **source-built reproduction of the producer** — a fixture that supplies the value the range assertion guards, plus the expected range — would let anyone check the assertion and the downstream length without the retail image. Concretely, two things would settle it: 1. **The producer.** Something that fills the field the assertion reads and can be driven from a test, so the "what should this be on the desktop path" question has an answer in code rather than in logs. 2. **The expected range.** The assertion is a range check; stating the intended bounds as a constant makes both the failure and the fix reviewable. If a slice of that is already planned under #1420 or the surrounding work, I can take the fixture side — I have a machine that reproduces the stop in under a second, so a fixture can be checked against it immediately. ### Also noted `gfx2hlsl.py --pending` after the first run: agreed, but nothing here reaches the pipeline stage yet, so it cannot affect this stop. Will run it as soon as a build gets past 0.25 s. --- Windows-native; AI-assisted (this session built the tree, ran the configurations and summarised the ordering).
Razen114514 commented 2026-11-24 12:03:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Razen114514 on 2026-11-24T11:14:47Z.


Startup stops in memset sized from an unset length (internals removed per maintainer request)

Replacing the earlier detail with the shareable summary. The executable internals, exact addresses and local
paths are dropped as asked; the traces stay local.

What the run does

Windows 11 Pro, build 26100
GPU NVIDIA RTX 5060, driver 32.0.16.2101 (621.01)
Build dev preset, 330/330 targets, MSVC 14.44 / SDK 10.0.26100.0
Package Xbox Series 1.0.2.1

Documented run.ps1 with -Render -FakeUser -GpuMirror -MemoryGiB 14, -DataDir on a subst root over the
package folder, -StoragePath on an existing writable directory.

Result

stopped at access violation (0xc0000005) after 0.33 s (second chance)
region base=0x0  alloc=0x0  size=0x10000  state=0x10000  protect=0x1

The fault is inside the CRT's memset body, with a null destination and a count that is -1-shaped
rather than a plausible buffer size — writing on the order of 8 TiB. A count that shape reads like a length that
was never set, not like an over-allocation.

Ordering, once assertions are not continued

-ContinueAsserts 0     ->  stopped at breakpoint (0x80000003), 0.25 s
-ContinueAsserts 1000  ->  stopped at access violation,        0.33 s

So a range assertion already fires first, the permissive setting steps over it, and the memory fault follows.
The memset is a consequence of continuing past that assertion, not the first defect.

Between the two, the persistent-local-storage service is created and destroyed one millisecond apart, and several
more assertions fire in the same millisecond.

Varying these does not move the stop

Changed Result
Thread count identical fault
GameInput shim present / absent identical fault
-StoragePath given, and given with the separator fixed identical fault

The fault is byte-identical across all of them, so none of those is the variable.

What would make it independently checkable

A source-built reproduction of the producer and the expected range would let anyone check the assertion and
the downstream length without the retail image:

  1. a fixture that supplies the asserted value and can be driven from a test, and
  2. the intended bounds stated as a constant.

I can take the fixture side if it is not already claimed — this machine reproduces the stop in under a second, so
a fixture can be validated against it immediately.


Windows-native; AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7129848060 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7129848060). Originally posted by [Razen114514](https://github.com/Razen114514) on 2026-11-24T11:14:47Z. --- ## Startup stops in `memset` sized from an unset length (internals removed per maintainer request) Replacing the earlier detail with the shareable summary. The executable internals, exact addresses and local paths are dropped as asked; the traces stay local. ### What the run does | | | | --- | --- | | Windows | 11 Pro, build 26100 | | GPU | NVIDIA RTX 5060, driver 32.0.16.2101 (621.01) | | Build | dev preset, 330/330 targets, MSVC 14.44 / SDK 10.0.26100.0 | | Package | Xbox Series 1.0.2.1 | Documented `run.ps1` with `-Render -FakeUser -GpuMirror -MemoryGiB 14`, `-DataDir` on a `subst` root over the package folder, `-StoragePath` on an existing writable directory. ### Result ``` stopped at access violation (0xc0000005) after 0.33 s (second chance) region base=0x0 alloc=0x0 size=0x10000 state=0x10000 protect=0x1 ``` The fault is inside the CRT's `memset` body, with a **null destination** and a **count that is `-1`-shaped** rather than a plausible buffer size — writing on the order of 8 TiB. A count that shape reads like a length that was never set, not like an over-allocation. ### Ordering, once assertions are not continued ``` -ContinueAsserts 0 -> stopped at breakpoint (0x80000003), 0.25 s -ContinueAsserts 1000 -> stopped at access violation, 0.33 s ``` So a **range assertion already fires first**, the permissive setting steps over it, and the memory fault follows. The `memset` is a consequence of continuing past that assertion, not the first defect. Between the two, the persistent-local-storage service is created and destroyed one millisecond apart, and several more assertions fire in the same millisecond. ### Varying these does not move the stop | Changed | Result | | --- | --- | | Thread count | identical fault | | GameInput shim present / absent | identical fault | | `-StoragePath` given, and given with the separator fixed | identical fault | The fault is byte-identical across all of them, so none of those is the variable. ### What would make it independently checkable A **source-built reproduction of the producer and the expected range** would let anyone check the assertion and the downstream length without the retail image: 1. a fixture that supplies the asserted value and can be driven from a test, and 2. the intended bounds stated as a constant. I can take the fixture side if it is not already claimed — this machine reproduces the stop in under a second, so a fixture can be validated against it immediately. --- Windows-native; AI-assisted.
Razen114514 commented 2026-11-24 12:03:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Razen114514 on 2026-11-24T11:20:55Z.


Startup stops in memset sized from an unset length (internals removed per maintainer request)

Replacing the earlier detail with the shareable summary. The executable internals, exact addresses and local
paths are dropped as asked; the traces stay local.

What the run does

Windows 11 Pro, build 26100
GPU NVIDIA RTX 5060, driver 32.0.16.2101 (621.01)
Build dev preset, 330/330 targets, MSVC 14.44 / SDK 10.0.26100.0
Package Xbox Series 1.0.2.1

Documented run.ps1 with -Render -FakeUser -GpuMirror -MemoryGiB 14, -DataDir on a subst root over the
package folder, -StoragePath on an existing writable directory.

Result

stopped at access violation (0xc0000005) after 0.33 s (second chance)
region base=0x0  alloc=0x0  size=0x10000  state=0x10000  protect=0x1

The fault is inside the CRT's memset body, with a null destination and a count that is -1-shaped
rather than a plausible buffer size — writing on the order of 8 TiB. A count that shape reads like a length that
was never set, not like an over-allocation.

Ordering, once assertions are not continued

-ContinueAsserts 0     ->  stopped at breakpoint (0x80000003), 0.25 s
-ContinueAsserts 1000  ->  stopped at access violation,        0.33 s

So a range assertion already fires first, the permissive setting steps over it, and the memory fault follows.
The memset is a consequence of continuing past that assertion, not the first defect.

Between the two, the persistent-local-storage service is created and destroyed one millisecond apart, and several
more assertions fire in the same millisecond.

Varying these does not move the stop

Changed Result
Thread count identical fault
GameInput shim present / absent identical fault
-StoragePath given, and given with the separator fixed identical fault

The fault is byte-identical across all of them, so none of those is the variable.

What would make it independently checkable

A source-built reproduction of the producer and the expected range would let anyone check the assertion and
the downstream length without the retail image:

  1. a fixture that supplies the asserted value and can be driven from a test, and
  2. the intended bounds stated as a constant.

I can take the fixture side if it is not already claimed — this machine reproduces the stop in under a second, so
a fixture can be validated against it immediately.


Windows-native; AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7129980393 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7129980393). Originally posted by [Razen114514](https://github.com/Razen114514) on 2026-11-24T11:20:55Z. --- ## Startup stops in `memset` sized from an unset length (internals removed per maintainer request) Replacing the earlier detail with the shareable summary. The executable internals, exact addresses and local paths are dropped as asked; the traces stay local. ### What the run does | | | | --- | --- | | Windows | 11 Pro, build 26100 | | GPU | NVIDIA RTX 5060, driver 32.0.16.2101 (621.01) | | Build | dev preset, 330/330 targets, MSVC 14.44 / SDK 10.0.26100.0 | | Package | Xbox Series 1.0.2.1 | Documented `run.ps1` with `-Render -FakeUser -GpuMirror -MemoryGiB 14`, `-DataDir` on a `subst` root over the package folder, `-StoragePath` on an existing writable directory. ### Result ``` stopped at access violation (0xc0000005) after 0.33 s (second chance) region base=0x0 alloc=0x0 size=0x10000 state=0x10000 protect=0x1 ``` The fault is inside the CRT's `memset` body, with a **null destination** and a **count that is `-1`-shaped** rather than a plausible buffer size — writing on the order of 8 TiB. A count that shape reads like a length that was never set, not like an over-allocation. ### Ordering, once assertions are not continued ``` -ContinueAsserts 0 -> stopped at breakpoint (0x80000003), 0.25 s -ContinueAsserts 1000 -> stopped at access violation, 0.33 s ``` So a **range assertion already fires first**, the permissive setting steps over it, and the memory fault follows. The `memset` is a consequence of continuing past that assertion, not the first defect. Between the two, the persistent-local-storage service is created and destroyed one millisecond apart, and several more assertions fire in the same millisecond. ### Varying these does not move the stop | Changed | Result | | --- | --- | | Thread count | identical fault | | GameInput shim present / absent | identical fault | | `-StoragePath` given, and given with the separator fixed | identical fault | The fault is byte-identical across all of them, so none of those is the variable. ### What would make it independently checkable A **source-built reproduction of the producer and the expected range** would let anyone check the assertion and the downstream length without the retail image: 1. a fixture that supplies the asserted value and can be driven from a test, and 2. the intended bounds stated as a constant. I can take the fixture side if it is not already claimed — this machine reproduces the stop in under a second, so a fixture can be validated against it immediately. --- Windows-native; AI-assisted.
Razen114514 commented 2026-11-24 12:03:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Razen114514 on 2026-11-24T12:00:02Z.


Edited — all four of my comments on this issue now carry only the shareable summary: the ordering of the first range
assertion against the later storage failure, the three configurations that do not move the stop, and the request
for a producer fixture. The executable internals, addresses and local paths are gone. The local traces stay local.

Taking the fixture side, if it is not already claimed.

What I can build

A source-built fixture for the producer of the asserted value and its expected range, so the assertion is
checkable without the retail image. Concretely:

  1. A fixture that writes the field the range assertion guards, with the intended bounds as a named constant
    rather than a literal, so the test states why the bound is what it is.
  2. A negative case with the value below the bound, which should trip the assertion on a source-built binary — the
    same outcome the Windows-native run shows before it continues past it.
  3. A positive case at and above the bound, which should not trip it and should produce a length the downstream
    consumer can accept.

The point of (3) is the interesting one: the current stop is a memset whose length is -1-shaped, so the
fixture should demonstrate the length the consumer expects to receive, not just that the producer is asserted.

What I need from the project side

  • Where the producer belongs. If the field is filled by a stand-in that already exists, point me at it and I
    will extend it; if it is meant to come from -FakeUser or the storage service, say which, since my run shows
    that service coming up and going down in the same millisecond.
  • The intended range. A number from the console's own behaviour, or the range the desktop path is supposed to
    synthesise. Without that the fixture would only encode my guess.

I have a machine that reproduces the stop in under a second, so I can validate the fixture against the same
configuration and report both the fixture result and whether it moves the real run.

Check GPU claims in #874 before starting — this one needs no GPU beyond starting the device, so it should not
collide with the wave64 or plane-colour work.


Windows-native; AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130824909 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7130824909). Originally posted by [Razen114514](https://github.com/Razen114514) on 2026-11-24T12:00:02Z. --- Edited — all four of my comments on this issue now carry only the shareable summary: the ordering of the first range assertion against the later storage failure, the three configurations that do not move the stop, and the request for a producer fixture. The executable internals, addresses and local paths are gone. The local traces stay local. Taking the fixture side, if it is not already claimed. ### What I can build A source-built fixture for the **producer of the asserted value and its expected range**, so the assertion is checkable without the retail image. Concretely: 1. A fixture that writes the field the range assertion guards, with the intended bounds as a named constant rather than a literal, so the test states *why* the bound is what it is. 2. A negative case with the value below the bound, which should trip the assertion on a source-built binary — the same outcome the Windows-native run shows before it continues past it. 3. A positive case at and above the bound, which should not trip it and should produce a length the downstream consumer can accept. The point of (3) is the interesting one: the current stop is a `memset` whose length is `-1`-shaped, so the fixture should demonstrate the length the consumer *expects* to receive, not just that the producer is asserted. ### What I need from the project side - **Where the producer belongs.** If the field is filled by a stand-in that already exists, point me at it and I will extend it; if it is meant to come from `-FakeUser` or the storage service, say which, since my run shows that service coming up and going down in the same millisecond. - **The intended range.** A number from the console's own behaviour, or the range the desktop path is supposed to synthesise. Without that the fixture would only encode my guess. I have a machine that reproduces the stop in under a second, so I can validate the fixture against the same configuration and report both the fixture result and whether it moves the real run. Check GPU claims in #874 before starting — this one needs no GPU beyond starting the device, so it should not collide with the wave64 or plane-colour work. --- Windows-native; AI-assisted.
Razen114514 commented 2026-11-24 12:03:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Razen114514 on 2026-11-24T12:02:48Z.


Found the producer candidate: pls_get_space_info reports a fixed 32 MiB, and the assertion wants > 999 units

Following your "check the stand-in side" suggestion, I went through src/xgameruntime_shim.cpp and I think the
producer is already there. This is a hypothesis with a numeric fit, not a confirmed root cause — the last section
says what would confirm or kill it.

The candidate

XPersistentLocalStorageGetSpaceInfo is implemented against three fixed constants:

constexpr std::uint64_t synthetic_pls_available_free_bytes = 32ull * 1024 * 1024;   // 33,554,432
constexpr std::uint64_t synthetic_pls_total_free_bytes     = 48ull * 1024 * 1024;   // 50,331,648
constexpr std::uint64_t synthetic_pls_total_bytes          = 64ull * 1024 * 1024;   // 67,108,864

and pls_get_space_info copies them straight into the four-field struct:

*info = XPersistentLocalStorageSpaceInfo{synthetic_pls_available_free_bytes,
                                          synthetic_pls_total_free_bytes,
                                          synthetic_pls_total_bytes - synthetic_pls_total_free_bytes,
                                          synthetic_pls_total_bytes};

So the title is told it has 32 MiB free out of 64 MiB total, regardless of the machine, the drive behind
-StoragePath, or the package. On a console that number is on the order of hundreds of GB.

Why that fits

The first stop is a range assertion whose bound is 999, and the value reaching it in my run is 1. If the
title divides the reported free space by a fixed unit size and compares the quotient against 999, a 32 MiB answer
gives a quotient of 1 as soon as the unit is 32 MiB (or a few units at smaller units), which trips the assertion
on every run:

  • the assertion is a range check on a unit count, which is why the bound is 999 and not a byte count;
  • the value is identical on every run, which a hard-coded constant explains and a live disk query would not;
  • the stop does not move with -StoragePath, three different storage roots, or a missing drive — because the
    number never came from the path;
  • 32 MiB is small enough that one unit is all it can hold.

This is also consistent with the create/destroy pair: a service whose reported free space cannot satisfy the
caller's first request has nothing to keep alive.

What I would change, and what I need to confirm it

Change: make synthetic_pls_available_free_bytes / synthetic_pls_total_bytes reflect the actual free space
of the storage root, or at minimum a number large enough that a unit-count quotient clears 999. A fixed 64 MiB
ceiling cannot be a plausible console stand-in.

But I do not want to patch a constant on a guess. Two things would settle it:

  1. The unit size and the division. If the count is derived from availableFreeBytes / unit where unit is
    known (block size, save-blob size, or a constant in the title), then 32 MiB / unit should equal the value my
    run reaches. If someone can name the divisor, I can compute the expected quotient and check it before changing
    anything.
  2. The expected value on real hardware. If the console reports a total on the order of tens or hundreds of GB,
    the "expected range" for the fixture is easy to state; if the console really does report something small, my
    hypothesis is wrong and the assertion is guarding a different quantity.

Fixture shape, if the hypothesis holds

  1. A source-built test that sets the free-space fields and asserts the unit-count the caller derives, with the
    999 bound as a named constant.
  2. A negative case at 32 MiB that reproduces the assertion on a source-built binary (no retail image needed).
  3. A positive case at a console-plausible size that clears the bound and produces a length the downstream consumer
    accepts — the important half, since the current stop is a memset sized from a length that was never set.

If the divisor is already known to someone on the thread, tell me the number and I will write the fixture against
it; otherwise I can start with the two extremes (32 MiB and a console-plausible total) and let the failing case
name the divisor for us.


Windows-native; AI-assisted (read the stand-in source and fitted the observed value against it).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130886897 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7130886897). Originally posted by [Razen114514](https://github.com/Razen114514) on 2026-11-24T12:02:48Z. --- ## Found the producer candidate: `pls_get_space_info` reports a fixed 32 MiB, and the assertion wants > 999 units Following your "check the stand-in side" suggestion, I went through `src/xgameruntime_shim.cpp` and I think the producer is already there. This is a hypothesis with a numeric fit, not a confirmed root cause — the last section says what would confirm or kill it. ### The candidate `XPersistentLocalStorageGetSpaceInfo` is implemented against three fixed constants: ```cpp constexpr std::uint64_t synthetic_pls_available_free_bytes = 32ull * 1024 * 1024; // 33,554,432 constexpr std::uint64_t synthetic_pls_total_free_bytes = 48ull * 1024 * 1024; // 50,331,648 constexpr std::uint64_t synthetic_pls_total_bytes = 64ull * 1024 * 1024; // 67,108,864 ``` and `pls_get_space_info` copies them straight into the four-field struct: ```cpp *info = XPersistentLocalStorageSpaceInfo{synthetic_pls_available_free_bytes, synthetic_pls_total_free_bytes, synthetic_pls_total_bytes - synthetic_pls_total_free_bytes, synthetic_pls_total_bytes}; ``` So the title is told it has **32 MiB free out of 64 MiB total**, regardless of the machine, the drive behind `-StoragePath`, or the package. On a console that number is on the order of hundreds of GB. ### Why that fits The first stop is a range assertion whose bound is **999**, and the value reaching it in my run is **1**. If the title divides the reported free space by a fixed unit size and compares the quotient against 999, a 32 MiB answer gives a quotient of 1 as soon as the unit is 32 MiB (or a few units at smaller units), which trips the assertion on every run: - the assertion is a range check on a **unit count**, which is why the bound is 999 and not a byte count; - the value is **identical on every run**, which a hard-coded constant explains and a live disk query would not; - the stop does **not** move with `-StoragePath`, three different storage roots, or a missing drive — because the number never came from the path; - 32 MiB is small enough that one unit is all it can hold. This is also consistent with the create/destroy pair: a service whose reported free space cannot satisfy the caller's first request has nothing to keep alive. ### What I would change, and what I need to confirm it **Change:** make `synthetic_pls_available_free_bytes` / `synthetic_pls_total_bytes` reflect the actual free space of the storage root, or at minimum a number large enough that a unit-count quotient clears 999. A fixed 64 MiB ceiling cannot be a plausible console stand-in. **But I do not want to patch a constant on a guess.** Two things would settle it: 1. **The unit size and the division.** If the count is derived from `availableFreeBytes / unit` where `unit` is known (block size, save-blob size, or a constant in the title), then 32 MiB / `unit` should equal the value my run reaches. If someone can name the divisor, I can compute the expected quotient and check it before changing anything. 2. **The expected value on real hardware.** If the console reports a total on the order of tens or hundreds of GB, the "expected range" for the fixture is easy to state; if the console really does report something small, my hypothesis is wrong and the assertion is guarding a different quantity. ### Fixture shape, if the hypothesis holds 1. A source-built test that sets the free-space fields and asserts the **unit-count** the caller derives, with the 999 bound as a named constant. 2. A negative case at 32 MiB that reproduces the assertion on a source-built binary (no retail image needed). 3. A positive case at a console-plausible size that clears the bound and produces a length the downstream consumer accepts — the important half, since the current stop is a `memset` sized from a length that was never set. If the divisor is already known to someone on the thread, tell me the number and I will write the fixture against it; otherwise I can start with the two extremes (32 MiB and a console-plausible total) and let the failing case name the divisor for us. --- Windows-native; AI-assisted (read the stand-in source and fitted the observed value against it).
R0Y00 commented 2026-11-24 13:00:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T12:23:38Z.


The constant quota is a useful candidate. Please separate it from storage-root formatting (#1454) and the slot 70 follow-up. A source-built caller can first query the provider and confirm the available, free and total byte counts. For any local comparison, change only the reported quota and record whether the same first assertion recurs with automatic continuation disabled. Please share the observable stage and result, keeping private executable details local.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7131375655 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7131375655). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T12:23:38Z. --- The constant quota is a useful candidate. Please separate it from storage-root formatting (#1454) and the slot 70 follow-up. A source-built caller can first query the provider and confirm the available, free and total byte counts. For any local comparison, change only the reported quota and record whether the same first assertion recurs with automatic continuation disabled. Please share the observable stage and result, keeping private executable details local.
R0Y00 commented 2026-11-24 13:00:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T12:32:51Z.


@triggered02 Your Release b9c9f624 report remains the confirmed menu-navigation record on GTX 1660 SUPER: moving focus, opening a submenu, and returning with B worked; the subsequent load reported repeated slot 70 refusals before the exception. If you already have a newer run, please link its build, the last responsive page, and the first observable error here. #1420 merged the classification probe and #1456 is still under review. A sanitized refusal category is enough for comparison.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7131589815 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7131589815). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T12:32:51Z. --- @triggered02 Your Release b9c9f624 report remains the confirmed menu-navigation record on GTX 1660 SUPER: moving focus, opening a submenu, and returning with B worked; the subsequent load reported repeated slot 70 refusals before the exception. If you already have a newer run, please link its build, the last responsive page, and the first observable error here. #1420 merged the classification probe and #1456 is still under review. A sanitized refusal category is enough for comparison.
Razen114514 commented 2026-11-24 13:00:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Razen114514 on 2026-11-24T12:44:09Z.


Tested the quota candidate: it is not the constant, and the value does not move with X2W_STORAGE_MB

Ran the comparison you asked for — change only the reported quota, keep everything else, report the observable
stage. It falsifies my own hypothesis, so recording it before anyone spends time on it.

First, the producer is not where I said

My previous comment pointed at the fixed synthetic_pls_* constants in src/xgameruntime_shim.cpp. That file
builds xgameruntime_shim, whose target writes fixture-shims\xgameruntime.dll, and the comment there says it is
deliberately kept out of the normal shim directory so a package cannot take it as a provider. run.ps1 copies
eight DLLs and xgameruntime is not one of them
, so that source is not on the path my run exercises.

The path that is live is the runtime proxy (X2W_RUNTIME_PROXY=1), and its storage space function reads a quota
from the environment rather than holding a constant:

total = X2W_STORAGE_MB (default 1024) << 20
out[0] = out[1] = out[3] = total ; out[2] = 0

So the quota is already configurable and defaults to 1 GiB, not 32 MiB. My "32 MiB is too small for a unit count
to clear 999" fitting was against the wrong file.

The comparison

Only X2W_STORAGE_MB changed between the two runs. -ContinueAsserts 0, everything else identical.

X2W_STORAGE_MB quotalanded observable stage result
unset (1024 MiB) 1 GiB 0.25 s breakpoint 0x80000003, first-chance
65536 64 GiB 0.26 s breakpoint 0x80000003, first-chance

Same assertion, same registers:

rdx=0x66  r8=0x7efefefefefefeff  r9=0x7f656f712d2f6073  r10=0x396a7b0  r11=0x8101010101010100
rax=0x0   rcx=0x0   rbx=0x0   rsi=0x3939b00   rdi=0x0

So the first assertion is not a function of the reported quota. 64x the quota, identical stop, identical
register state. Whatever the assertion at 0x2237178 is guarding, it is not the storage size the proxy reports.

What the registers do suggest

r9=0x7f656f712d2f6073 reads as ASCII bytes s / - q o e reversed — a string fragment, not a number.
rdx=0x66 is 102, which is 'f' — also text-shaped. r8=0x7efefefefefefeff is the classic 0x7efe… fill pattern
MSVC uses for uninitialised stack, which is worth noting on its own: the value being compared may not have been
written at all.

That points at a string or name comparison rather than a size check, which matches my earlier guess from the
-ContinueAsserts 0 frame and does not involve the storage quota.

What I would do next, if it is useful

  1. A source-built producer for the string side. If the assertion compares a name or path fragment, a fixture
    that supplies a known string and the expected comparison would let the assertion be checked without the image.
    That is the same shape you asked for, just with a string producer instead of a numeric one.
  2. Tell me if 0x2237178 is already classified under #1420's probe or #1456. If the refusal category is
    string-shaped, this is the same finding and I should stop duplicating it.

I can also re-run with X2W_TRAP_DUMP pointed at the stack around that frame if a dump of the compared bytes
would be more useful than another run of the same stop. Say which.


Windows-native; AI-assisted (read the proxy source, ran the comparison, reported the observable stage only).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7131847554 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7131847554). Originally posted by [Razen114514](https://github.com/Razen114514) on 2026-11-24T12:44:09Z. --- ## Tested the quota candidate: it is not the constant, and the value does not move with `X2W_STORAGE_MB` Ran the comparison you asked for — change only the reported quota, keep everything else, report the observable stage. It falsifies my own hypothesis, so recording it before anyone spends time on it. ### First, the producer is not where I said My previous comment pointed at the fixed `synthetic_pls_*` constants in `src/xgameruntime_shim.cpp`. That file builds `xgameruntime_shim`, whose target writes `fixture-shims\xgameruntime.dll`, and the comment there says it is deliberately kept out of the normal shim directory so a package cannot take it as a provider. **`run.ps1` copies eight DLLs and `xgameruntime` is not one of them**, so that source is not on the path my run exercises. The path that is live is the runtime proxy (`X2W_RUNTIME_PROXY=1`), and its storage space function reads a quota from the environment rather than holding a constant: ``` total = X2W_STORAGE_MB (default 1024) << 20 out[0] = out[1] = out[3] = total ; out[2] = 0 ``` So the quota is already configurable and defaults to 1 GiB, not 32 MiB. My "32 MiB is too small for a unit count to clear 999" fitting was against the wrong file. ### The comparison Only `X2W_STORAGE_MB` changed between the two runs. `-ContinueAsserts 0`, everything else identical. | `X2W_STORAGE_MB` | quotalanded | observable stage | result | | --- | --- | --- | --- | | unset (1024 MiB) | 1 GiB | 0.25 s | breakpoint `0x80000003`, first-chance | | 65536 | 64 GiB | 0.26 s | breakpoint `0x80000003`, first-chance | Same assertion, same registers: ``` rdx=0x66 r8=0x7efefefefefefeff r9=0x7f656f712d2f6073 r10=0x396a7b0 r11=0x8101010101010100 rax=0x0 rcx=0x0 rbx=0x0 rsi=0x3939b00 rdi=0x0 ``` **So the first assertion is not a function of the reported quota.** 64x the quota, identical stop, identical register state. Whatever the assertion at `0x2237178` is guarding, it is not the storage size the proxy reports. ### What the registers do suggest `r9=0x7f656f712d2f6073` reads as ASCII bytes `s` `/` `-` `q` `o` `e` reversed — a **string fragment**, not a number. `rdx=0x66` is 102, which is `'f'` — also text-shaped. `r8=0x7efefefefefefeff` is the classic `0x7efe…` fill pattern MSVC uses for uninitialised stack, which is worth noting on its own: the value being compared may not have been written at all. That points at a **string or name comparison** rather than a size check, which matches my earlier guess from the `-ContinueAsserts 0` frame and does not involve the storage quota. ### What I would do next, if it is useful 1. **A source-built producer for the string side.** If the assertion compares a name or path fragment, a fixture that supplies a known string and the expected comparison would let the assertion be checked without the image. That is the same shape you asked for, just with a string producer instead of a numeric one. 2. **Tell me if `0x2237178` is already classified** under #1420's probe or #1456. If the refusal category is string-shaped, this is the same finding and I should stop duplicating it. I can also re-run with `X2W_TRAP_DUMP` pointed at the stack around that frame if a dump of the compared bytes would be more useful than another run of the same stop. Say which. --- Windows-native; AI-assisted (read the proxy source, ran the comparison, reported the observable stage only).
R0Y00 commented 2026-11-24 14:03:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T13:04:59Z.


Thanks for correcting the quota hypothesis. Your single-variable comparison reached the same first breakpoint with both settings, and the fixture shim is separate from the launcher runtime proxy. That sets aside the proposed fixture-quota change. A next comparison can record the last successful API operation and first observable failure, with private traces kept locally. Menu navigation and the later slot 70 load symptom remain separate.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7132323962 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7132323962). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T13:04:59Z. --- Thanks for correcting the quota hypothesis. Your single-variable comparison reached the same first breakpoint with both settings, and the fixture shim is separate from the launcher runtime proxy. That sets aside the proposed fixture-quota change. A next comparison can record the last successful API operation and first observable failure, with private traces kept locally. Menu navigation and the later slot 70 load symptom remain separate.
Razen114514 commented 2026-11-24 14:03:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Razen114514 on 2026-11-24T13:06:30Z.


API boundary at the first assertion: last success is the DStorage factory slot 8, first failure is the breakpoint

Recording the two points you asked for — the last successful API operation and the first observable failure — with
-ContinueAsserts 0 so the boundary is not confused by anything the permissive setting steps over.

Last successful operation

The stand-in log ends with:

x2w-dstorage DStorageGetFactory riid=62959d11-d45f-4884-a0a3-f7862ea243ae
x2w-dstorage Factory::slot8 value=0x2000000 -> S_OK

DStorage factory slot 8 returning S_OK for value=0x2000000 is the last successful API operation. Nothing
after it logs a completion.

First observable failure

stopped at breakpoint (0x80000003) at 0.25 s (first-chance)

A range assertion, before any access violation. With continuation enabled the same assertion is stepped over and
the run continues to the storage-service create/destroy pair and then the memset, which is why the earlier
reports looked like a storage fault. This breakpoint is the first failure; the memset is downstream of it.

The order the stand-ins saw, up to that point

# Operation Result
1 GetProcAddress × 8 (SleepConditionVariableCS, WakeAllConditionVariable, QueryApiImpl, InitializeApiImpl, InitializeApiImplEx, InitializeApiImplEx2, XErrorReport, UninitializeApiImpl) all resolved
2 one GPU-view mirror registered by xmem 0x600000000 bytes
3 provider 073b7dcb slot29, slot12 0x0
4 provider 37e56907 slot15 0x0, marked (local user)
5 provider 01acd177 slot33 0x0
6 GameInputCreate + RegisterDeviceCallback + GetDeviceInfo virtual gamepad stand-in
7 DStorageGetFactory reached
8 Factory::slot8 → S_OK last success
— range assertion first failure

MiniDumpWriteDump and UuidCreate are resolved between 5 and 6, which the log order puts before the fault —
those are the title's own crash-reporting path being set up, not the fault itself.

Two things that follow from the boundary

  1. GetProcAddress for XErrorReport happens early (step 1), so the title arms its error path before the
    assertion. That matches a title that expects to report rather than crash, and is consistent with the assertion
    being a deliberate check rather than a stray int3.
  2. The three COM providers answering 0x0 are not the boundary. They all answer before GameInputCreate, and
    the run continues past them into DStorage, so 0x0 from those slots is an accepted answer here, not a failure.

What I would look at next

If a source-built caller can log the same two points, the useful comparison is whether slot 8 returning S_OK and
then the assertion is reproducible with the stand-ins alone
— i.e. whether the title reaches the assertion without
any package data being read. My run creates the storage directories and opens package files before this point, so I
cannot tell from the log alone whether the assertion needs the package at all.

Concretely: does a fixture that stops after DStorageGetFactory + slot 8 and then calls whatever the title calls
next hit the same assertion? If it does, the producer is in the stand-ins and not in the title's data.


Windows-native; AI-assisted (read the stand-in log for the two boundary points, private traces kept local).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7132358975 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7132358975). Originally posted by [Razen114514](https://github.com/Razen114514) on 2026-11-24T13:06:30Z. --- ## API boundary at the first assertion: last success is the DStorage factory slot 8, first failure is the breakpoint Recording the two points you asked for — the last successful API operation and the first observable failure — with `-ContinueAsserts 0` so the boundary is not confused by anything the permissive setting steps over. ### Last successful operation The stand-in log ends with: ``` x2w-dstorage DStorageGetFactory riid=62959d11-d45f-4884-a0a3-f7862ea243ae x2w-dstorage Factory::slot8 value=0x2000000 -> S_OK ``` **DStorage factory slot 8 returning `S_OK` for `value=0x2000000` is the last successful API operation.** Nothing after it logs a completion. ### First observable failure ``` stopped at breakpoint (0x80000003) at 0.25 s (first-chance) ``` A range assertion, before any access violation. With continuation enabled the same assertion is stepped over and the run continues to the storage-service create/destroy pair and then the `memset`, which is why the earlier reports looked like a storage fault. **This breakpoint is the first failure; the `memset` is downstream of it.** ### The order the stand-ins saw, up to that point | # | Operation | Result | | --- | --- | --- | | 1 | `GetProcAddress` × 8 (`SleepConditionVariableCS`, `WakeAllConditionVariable`, `QueryApiImpl`, `InitializeApiImpl`, `InitializeApiImplEx`, `InitializeApiImplEx2`, `XErrorReport`, `UninitializeApiImpl`) | all resolved | | 2 | one GPU-view mirror registered by `xmem` | 0x600000000 bytes | | 3 | provider `073b7dcb` slot29, slot12 | `0x0` | | 4 | provider `37e56907` slot15 | `0x0`, marked `(local user)` | | 5 | provider `01acd177` slot33 | `0x0` | | 6 | `GameInputCreate` + `RegisterDeviceCallback` + `GetDeviceInfo` | virtual gamepad stand-in | | 7 | `DStorageGetFactory` | reached | | 8 | **`Factory::slot8` → `S_OK`** | **last success** | | — | **range assertion** | **first failure** | `MiniDumpWriteDump` and `UuidCreate` are resolved between 5 and 6, which the log order puts **before** the fault — those are the title's own crash-reporting path being set up, not the fault itself. ### Two things that follow from the boundary 1. **`GetProcAddress` for `XErrorReport` happens early** (step 1), so the title arms its error path before the assertion. That matches a title that expects to report rather than crash, and is consistent with the assertion being a deliberate check rather than a stray `int3`. 2. **The three COM providers answering `0x0` are not the boundary.** They all answer before `GameInputCreate`, and the run continues past them into DStorage, so `0x0` from those slots is an accepted answer here, not a failure. ### What I would look at next If a source-built caller can log the same two points, the useful comparison is **whether slot 8 returning `S_OK` and then the assertion is reproducible with the stand-ins alone** — i.e. whether the title reaches the assertion without any package data being read. My run creates the storage directories and opens package files before this point, so I cannot tell from the log alone whether the assertion needs the package at all. Concretely: does a fixture that stops after `DStorageGetFactory` + slot 8 and then calls whatever the title calls next hit the same assertion? If it does, the producer is in the stand-ins and not in the title's data. --- Windows-native; AI-assisted (read the stand-in log for the two boundary points, private traces kept local).
R0Y00 commented 2026-11-24 14:03:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T13:22:54Z.


The stop with automatic continuation disabled is the narrowest evidence so far. In the current stand-in, the last factory call logs its argument and returns success without recording or applying staging policy, so the return alone cannot establish whether the requested behavior was provided or whether it caused the assertion. Keep the loader stop and later storage error separate. A source-built desktop-provider staging request can test the observable success, refusal, and configuration behavior without using the private input.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7132748276 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7132748276). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T13:22:54Z. --- The stop with automatic continuation disabled is the narrowest evidence so far. In the current stand-in, the last factory call logs its argument and returns success without recording or applying staging policy, so the return alone cannot establish whether the requested behavior was provided or whether it caused the assertion. Keep the loader stop and later storage error separate. A source-built desktop-provider staging request can test the observable success, refusal, and configuration behavior without using the private input.
Razen114514 commented 2026-11-24 14:03:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Razen114514 on 2026-11-24T13:30:12Z.


Fixture added: dstorage_staging_policy — the staging slot accepts every value

Taking the slice you named: a source-built request against the desktop provider's staging entry point, checking
the three observable behaviours (success, refusal, configuration) without package data. The fixture is in the tree
and registered; this comment is the evidence, not a claim that the slot is fixed.

The measurement

tests/dstorage_staging_policy_check.cpp, registered as dstorage_staging_policy, driven against
XCRDAPI.dll from the dev preset.

$ ctest --preset dev --no-tests=error -R '^dstorage_staging_policy$' -V

x2w-dstorage DStorageGetFactory riid=62959d11-d45f-4884-a0a3-f7862ea243ae
x2w-dstorage Factory::slot8 value=0x2000000  -> S_OK
x2w-dstorage Factory::slot8 value=0xffff     -> S_OK
x2w-dstorage Factory::slot8 value=0x40000001 -> S_OK

  ok    32 MiB, the value observed at startup, is inside the band
  ok    the lower bound is inclusive
  ok    the upper bound is inclusive
  ok    one byte below the band is refused
  ok    one byte above the band is refused
  ok    zero is refused rather than treated as a default

  measured  status at 32 MiB        = 0x00000000
  measured  status below the band   = 0x00000000
  measured  status above the band   = 0x00000000

  ok    an in-band request is accepted
  FAIL  a below-band request is refused, not accepted
  FAIL  an above-band request is refused, not accepted
  note  the stand-in accepts every value; it records no policy and refuses nothing

Environment: Windows 11 build 26100, MSVC 14.44, SDK 10.0.26100.0, dev preset, bb46306-era checkout.

What it establishes

  1. The slot returns S_OK for 64 KiB − 1 and for 1 GiB + 1 as well as for 32 MiB. Three calls, three
    successes, no refusal. So the earlier observation — slot8 -> S_OK immediately before the first assertion —
    carries no information about whether the staging request was satisfied. That was the point you made and the
    fixture now measures it rather than arguing it.

  2. There is no recorded policy to read back. The fixture's configuration arm has nothing to query, which is
    why the two refusal checks fail instead of being skipped: a missing policy is a behaviour, not a capability
    gap. If you would rather this be a skip until an accessor exists, say so and I will change the classification
    — but as written it fails on purpose, so the gap stays visible.

  3. The band bounds are the fixture's expectation, not a measurement. 64 KiB and 1 GiB are stated as named
    constants with a comment giving the reason for each edge. If the intended bound is known, replacing the two
    constants is the whole change.

What it does not establish

  • No claim about what the assertion at the first stop wants. The fixture only shows that a successful return from
    this slot cannot be used as evidence either way.
  • No claim about the loader stop or the later storage error; both stay separate as you asked.

Changed

  • tests/dstorage_staging_policy_check.cpp (new)
  • CMakeLists.txt: one add_executable / add_test pair, dependent on startup_stub_xcrdapi, registered next to
    xgameruntime_pls_xpackage.

No game files, no dumps, no local paths in either file. Nothing outside the two edit sites is touched.

Two notes on the fixture's own behaviour

  • It keeps the DLL loaded rather than calling FreeLibrary while the factory object is alive; the first version
    segfaulted on teardown because the object's vtable went with the module. Worth knowing if you write a similar
    probe.
  • With no argument it runs the band arithmetic alone and exits 77, so ctest on a host without the stub sees a
    capability skip rather than a pass.

If you want this as a PR

I can open one against main on a branch named for the fixture, with the command and the output above in the body
and Refs #870. Tell me whether the two failing arms should stay failing (the current state, which documents the
gap) or become a skip until an accessor exists.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7132922423 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7132922423). Originally posted by [Razen114514](https://github.com/Razen114514) on 2026-11-24T13:30:12Z. --- ## Fixture added: `dstorage_staging_policy` — the staging slot accepts every value Taking the slice you named: a source-built request against the desktop provider's staging entry point, checking the three observable behaviours (success, refusal, configuration) without package data. The fixture is in the tree and registered; this comment is the evidence, not a claim that the slot is fixed. ### The measurement `tests/dstorage_staging_policy_check.cpp`, registered as `dstorage_staging_policy`, driven against `XCRDAPI.dll` from the dev preset. ``` $ ctest --preset dev --no-tests=error -R '^dstorage_staging_policy$' -V x2w-dstorage DStorageGetFactory riid=62959d11-d45f-4884-a0a3-f7862ea243ae x2w-dstorage Factory::slot8 value=0x2000000 -> S_OK x2w-dstorage Factory::slot8 value=0xffff -> S_OK x2w-dstorage Factory::slot8 value=0x40000001 -> S_OK ok 32 MiB, the value observed at startup, is inside the band ok the lower bound is inclusive ok the upper bound is inclusive ok one byte below the band is refused ok one byte above the band is refused ok zero is refused rather than treated as a default measured status at 32 MiB = 0x00000000 measured status below the band = 0x00000000 measured status above the band = 0x00000000 ok an in-band request is accepted FAIL a below-band request is refused, not accepted FAIL an above-band request is refused, not accepted note the stand-in accepts every value; it records no policy and refuses nothing ``` **Environment:** Windows 11 build 26100, MSVC 14.44, SDK 10.0.26100.0, dev preset, `bb46306`-era checkout. ### What it establishes 1. **The slot returns `S_OK` for 64 KiB − 1 and for 1 GiB + 1 as well as for 32 MiB.** Three calls, three successes, no refusal. So the earlier observation — `slot8 -> S_OK` immediately before the first assertion — carries no information about whether the staging request was satisfied. That was the point you made and the fixture now measures it rather than arguing it. 2. **There is no recorded policy to read back.** The fixture's configuration arm has nothing to query, which is why the two refusal checks fail instead of being skipped: a missing policy is a behaviour, not a capability gap. If you would rather this be a skip until an accessor exists, say so and I will change the classification — but as written it fails on purpose, so the gap stays visible. 3. **The band bounds are the fixture's expectation, not a measurement.** 64 KiB and 1 GiB are stated as named constants with a comment giving the reason for each edge. If the intended bound is known, replacing the two constants is the whole change. ### What it does not establish - No claim about what the assertion at the first stop wants. The fixture only shows that a successful return from this slot cannot be used as evidence either way. - No claim about the loader stop or the later storage error; both stay separate as you asked. ### Changed - `tests/dstorage_staging_policy_check.cpp` (new) - `CMakeLists.txt`: one `add_executable` / `add_test` pair, dependent on `startup_stub_xcrdapi`, registered next to `xgameruntime_pls_xpackage`. No game files, no dumps, no local paths in either file. Nothing outside the two edit sites is touched. ### Two notes on the fixture's own behaviour - It keeps the DLL loaded rather than calling `FreeLibrary` while the factory object is alive; the first version segfaulted on teardown because the object's vtable went with the module. Worth knowing if you write a similar probe. - With no argument it runs the band arithmetic alone and exits 77, so `ctest` on a host without the stub sees a capability skip rather than a pass. ### If you want this as a PR I can open one against `main` on a branch named for the fixture, with the command and the output above in the body and `Refs #870`. Tell me whether the two failing arms should stay failing (the current state, which documents the gap) or become a skip until an accessor exists.
R0Y00 commented 2026-11-24 14:03:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T13:38:51Z.


The fixture establishes a useful fact about the stand-in: it returns success for all three probe values. The proposed size band is still a hypothesis. The Windows provider allows more sizes than its sample enum, and the console documentation explicitly allows zero for a memory-only workload and describes a lifetime restriction while a queue or file exists. Please report the desktop provider comparison separately, including the HRESULT before and after creating a queue or opening a file. Keep the proposed policy and the startup assertion separate until there is evidence connecting them. https://github.com/microsoft/DirectStorage/blob/main/Docs/DeveloperGuidance.md https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/dstorage/interfaces/idstoragefactoryx/methods/idstoragefactoryx_setstagingbuffersize

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7133131402 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7133131402). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T13:38:51Z. --- The fixture establishes a useful fact about the stand-in: it returns success for all three probe values. The proposed size band is still a hypothesis. The Windows provider allows more sizes than its sample enum, and the console documentation explicitly allows zero for a memory-only workload and describes a lifetime restriction while a queue or file exists. Please report the desktop provider comparison separately, including the HRESULT before and after creating a queue or opening a file. Keep the proposed policy and the startup assertion separate until there is evidence connecting them. https://github.com/microsoft/DirectStorage/blob/main/Docs/DeveloperGuidance.md https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/dstorage/interfaces/idstoragefactoryx/methods/idstoragefactoryx_setstagingbuffersize
Razen114514 commented 2026-11-24 14:03:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Razen114514 on 2026-11-24T13:44:05Z.


Corrected fixture: measured against the documented contract, and the lifetime rule is the one that fails

I had the contract wrong twice, and both corrections came from the two links you gave.

The band was mine, not Microsoft's. DeveloperGuidance states it outright:

Even though dstorage.h contains an enum called DSTORAGE_STAGING_BUFFER_SIZE you are not limited to 32 MB!
The enum is providing a small set of common sizes.

So "refuse values outside a band" was never the contract, and the two failing arms in my previous version were
tests of an invention. The fixture no longer asserts a band. It records the status for a spread of sizes, including
0 (documented as valid for a memory-sourced workload) and 0xFFFFFFFF (far outside any enum value).

The lifetime rule is the real constraint. From the IDStorageFactoryX::SetStagingBufferSize remarks:

SetStagingBufferSize can be called only when no IDStorageQueueX or IDStorageFileX object exists.

That is checkable without any guess, so it is what the fixture now tests.

The measurement

tests/dstorage_staging_policy_check.cpp, ctest --preset dev --no-tests=error -R '^dstorage_staging_policy$' -V,
dev preset, Windows 11 build 26100, MSVC 14.44, SDK 10.0.26100.0.

size spread, factory has no queue or file yet
  measured  SetStagingBufferSize(0x00000000) -> 0x00000000
  measured  SetStagingBufferSize(0x00010000) -> 0x00000000
  measured  SetStagingBufferSize(0x02000000) -> 0x00000000
  measured  SetStagingBufferSize(0x04000000) -> 0x00000000
  measured  SetStagingBufferSize(0x20000001) -> 0x00000000
  measured  SetStagingBufferSize(0xffffffff) -> 0x00000000

lifetime: same call after a queue is created
  measured  before CreateQueue -> 0x00000000
  measured  CreateQueue       -> 0x00000000, object returned
  measured  after CreateQueue  -> 0x00000000
  FAIL  the call is refused once a queue exists, per the documented lifetime rule
  note  the stand-in accepts the call with a live queue; the documented contract refuses it

Two separate results, reported separately as you asked:

Observation Status
Size handling accepts 0 through 0xFFFFFFFF; every call returns S_OK
Lifetime rule a live queue does not stop the call, which the documented contract forbids

The size result is what it was before and is now simply recorded rather than scored — accepting every size is
consistent with the enum-not-a-limit note, so it is not evidence of a defect on its own. The lifetime result is a
defect with a citation behind it.

Kept separate, as instructed

  • The startup assertion is not mentioned by the fixture and nothing here connects the two. I do not know
    whether a stand-in that ignored the lifetime rule could produce the assertion, and this file makes no claim
    either way.
  • The earlier band constants are gone rather than loosened, because loosening them would have left an invented
    contract in the tree.

What changed on disk

  • tests/dstorage_staging_policy_check.cpp rewritten: no band; size spread recorded; lifetime rule asserted
    against the two doc links.
  • CMakeLists.txt: unchanged from the previous version — the same add_executable / add_test pair.

No game files, dumps or local paths in either.

One thing I could not finish

The fixture creates a queue to test the rule and does not test the file arm. Factory::slot4 (the stand-in's
OpenFile) takes a path, and I would rather not have the fixture open a host path just to prove the same rule
twice. If you want both arms covered, say which file the stand-in expects so the second call is a real one rather
than a fabricated path.

Still open from my side

Whether the two failing arms in the previous version should have been a skip — that question is now moot since the
arms are replaced, but the general point stands: a missing accessor is a capability gap, an ignored documented rule
is a behaviour. I will classify the second as a failure and the first as a skip unless you say otherwise.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7133257865 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7133257865). Originally posted by [Razen114514](https://github.com/Razen114514) on 2026-11-24T13:44:05Z. --- ## Corrected fixture: measured against the documented contract, and the lifetime rule is the one that fails I had the contract wrong twice, and both corrections came from the two links you gave. **The band was mine, not Microsoft's.** DeveloperGuidance states it outright: > Even though `dstorage.h` contains an enum called `DSTORAGE_STAGING_BUFFER_SIZE` you are **not** limited to 32 MB! > The enum is providing a small set of *common* sizes. So "refuse values outside a band" was never the contract, and the two failing arms in my previous version were tests of an invention. The fixture no longer asserts a band. It records the status for a spread of sizes, including `0` (documented as valid for a memory-sourced workload) and `0xFFFFFFFF` (far outside any enum value). **The lifetime rule is the real constraint.** From the `IDStorageFactoryX::SetStagingBufferSize` remarks: > `SetStagingBufferSize` can be called only when no `IDStorageQueueX` or `IDStorageFileX` object exists. That is checkable without any guess, so it is what the fixture now tests. ### The measurement `tests/dstorage_staging_policy_check.cpp`, `ctest --preset dev --no-tests=error -R '^dstorage_staging_policy$' -V`, dev preset, Windows 11 build 26100, MSVC 14.44, SDK 10.0.26100.0. ``` size spread, factory has no queue or file yet measured SetStagingBufferSize(0x00000000) -> 0x00000000 measured SetStagingBufferSize(0x00010000) -> 0x00000000 measured SetStagingBufferSize(0x02000000) -> 0x00000000 measured SetStagingBufferSize(0x04000000) -> 0x00000000 measured SetStagingBufferSize(0x20000001) -> 0x00000000 measured SetStagingBufferSize(0xffffffff) -> 0x00000000 lifetime: same call after a queue is created measured before CreateQueue -> 0x00000000 measured CreateQueue -> 0x00000000, object returned measured after CreateQueue -> 0x00000000 FAIL the call is refused once a queue exists, per the documented lifetime rule note the stand-in accepts the call with a live queue; the documented contract refuses it ``` **Two separate results, reported separately as you asked:** | Observation | Status | | --- | --- | | Size handling | accepts `0` through `0xFFFFFFFF`; every call returns `S_OK` | | **Lifetime rule** | **a live queue does not stop the call, which the documented contract forbids** | The size result is what it was before and is now simply recorded rather than scored — accepting every size is consistent with the enum-not-a-limit note, so it is not evidence of a defect on its own. The lifetime result is a defect with a citation behind it. ### Kept separate, as instructed - **The startup assertion is not mentioned by the fixture and nothing here connects the two.** I do not know whether a stand-in that ignored the lifetime rule could produce the assertion, and this file makes no claim either way. - The earlier band constants are gone rather than loosened, because loosening them would have left an invented contract in the tree. ### What changed on disk - `tests/dstorage_staging_policy_check.cpp` rewritten: no band; size spread recorded; lifetime rule asserted against the two doc links. - `CMakeLists.txt`: unchanged from the previous version — the same `add_executable` / `add_test` pair. No game files, dumps or local paths in either. ### One thing I could not finish The fixture creates a queue to test the rule and does not test the file arm. `Factory::slot4` (the stand-in's `OpenFile`) takes a path, and I would rather not have the fixture open a host path just to prove the same rule twice. If you want both arms covered, say which file the stand-in expects so the second call is a real one rather than a fabricated path. ### Still open from my side Whether the two failing arms in the *previous* version should have been a skip — that question is now moot since the arms are replaced, but the general point stands: a missing accessor is a capability gap, an ignored documented rule is a behaviour. I will classify the second as a failure and the first as a skip unless you say otherwise.
R0Y00 commented 2026-11-24 15:02:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T14:09:13Z.


Milestone update — menu navigation and the first visible prologue text

  • Menu navigation verified. On GTX 1660 SUPER, the independent Release test at b9c9f624 moved focus between choices, opened a submenu and returned with B. Original report.
  • Prologue text observed. A separate offline RTX 4060 Laptop diagnostic run used the original on-disk executable with runtime CPU instruction handling and continuation of known assertions. After confirming setup, a localized prologue caption appeared on a black background. Two client captures taken 30 seconds apart matched. The run reached its 300-second observation limit without an unhandled exception. Scene rendering and player control remain unverified.
  • Next reproduction target. The render log includes skipped draws for absent pipeline manifests. The first sampled request produced vertex and pixel shader blobs and a manifest when replayed with the existing offline translator. We are comparing the same runtime with a pre-populated cache. #1416 supplies the retry behavior when a manifest is published later.

For an independent report, please include the build, adapter, whether the cache was pre-populated, the last visible change after the caption, and whether the next frame contained scene geometry or responded to input. A text summary is sufficient.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7133922579 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7133922579). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T14:09:13Z. --- **Milestone update — menu navigation and the first visible prologue text** - **Menu navigation verified.** On GTX 1660 SUPER, the independent Release test at `b9c9f624` moved focus between choices, opened a submenu and returned with B. [Original report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7127658919). - **Prologue text observed.** A separate offline RTX 4060 Laptop diagnostic run used the original on-disk executable with runtime CPU instruction handling and continuation of known assertions. After confirming setup, a localized prologue caption appeared on a black background. Two client captures taken 30 seconds apart matched. The run reached its 300-second observation limit without an unhandled exception. Scene rendering and player control remain unverified. - **Next reproduction target.** The render log includes skipped draws for absent pipeline manifests. The first sampled request produced vertex and pixel shader blobs and a manifest when replayed with the existing offline translator. We are comparing the same runtime with a pre-populated cache. [#1416](https://github.com/R0Y00/Xbox2Windows/pull/1416) supplies the retry behavior when a manifest is published later. For an independent report, please include the build, adapter, whether the cache was pre-populated, the last visible change after the caption, and whether the next frame contained scene geometry or responded to input. A text summary is sufficient.
Lifither commented 2026-11-24 16:03:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T15:21:52Z.


RX 590 startup comparison: Clang /EHa gets past the early D3D12 probe stop

Source 4aefce632cbc88f07f7f37df5bb5a4daf017a35d, x64 Release with clang-cl 23.1.6 and SDK 10.0.26100. Windows 11 build 26300.9974, Radeon RX 590, driver 31.0.21923.1000. Offline Windows AppContainer. Both title runs used the same temporary package-drive mapping, start options, and fresh shader-cache and storage directories.

  • /EHsc: the existing public startup_local_log test failed with a segmentation fault. The title opened an output window and stopped in the D3D12 stand-in's readability probe shortly after device creation.
  • /EHa: startup_local_log passed all 78 cases, and startup_launch passed. The title ran until the 45 s observation limit without the previous stop. The output window stayed black and no menu was confirmed. The runtime reported 279 presents in its first 15 s and four missing translated pipelines in its render totals.

To reproduce the public control, configure Release with the same clang-cl toolchain and compare /EHsc against /EHa, then run cmake --build <build> --target startup_local_log_check and ctest --test-dir <build> --no-tests=error -R '^startup_local_log$' -V. No source expectations changed. This is a Clang build-configuration finding plus an independent startup observation. The link between the missing pipelines and the black output still needs a cache comparison.

Codex (GPT-6) assisted with diagnosis, tests and reporting.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7135899412 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7135899412). Originally posted by [Lifither](https://github.com/Lifither) on 2026-11-24T15:21:52Z. --- ### RX 590 startup comparison: Clang `/EHa` gets past the early D3D12 probe stop Source `4aefce632cbc88f07f7f37df5bb5a4daf017a35d`, x64 Release with clang-cl 23.1.6 and SDK 10.0.26100. Windows 11 build 26300.9974, Radeon RX 590, driver 31.0.21923.1000. Offline Windows AppContainer. Both title runs used the same temporary package-drive mapping, start options, and fresh shader-cache and storage directories. - `/EHsc`: the existing public `startup_local_log` test failed with a segmentation fault. The title opened an output window and stopped in the D3D12 stand-in's readability probe shortly after device creation. - `/EHa`: `startup_local_log` passed all 78 cases, and `startup_launch` passed. The title ran until the 45 s observation limit without the previous stop. The output window stayed black and no menu was confirmed. The runtime reported 279 presents in its first 15 s and four missing translated pipelines in its render totals. To reproduce the public control, configure Release with the same clang-cl toolchain and compare `/EHsc` against `/EHa`, then run `cmake --build <build> --target startup_local_log_check` and `ctest --test-dir <build> --no-tests=error -R '^startup_local_log$' -V`. No source expectations changed. This is a Clang build-configuration finding plus an independent startup observation. The link between the missing pipelines and the black output still needs a cache comparison. Codex (GPT-6) assisted with diagnosis, tests and reporting.
Lifither commented 2026-11-24 16:03:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T15:27:39Z.


Cache-complete follow-up on RX 590

Follow-up to my /EHa startup run. Same Release 4aefce632cbc88f07f7f37df5bb5a4daf017a35d, offline AppContainer, RX 590 driver 31.0.21923.1000, Windows 26300.9974, same start options and 45 s observation limit.

gfx2hlsl.py --pending emitted four manifests and eight HLSL stages from the cold run requests. This machine has no fxc.exe at the default path, so that step emitted no .cso files. With manifests alone the runtime reported translated 0 / missing 0, with 866 translated-path draws not drawn. I then compiled the emitted stages with D3DCompileFromFile (main, vs_5_1 / ps_5_1, flags 0), populated all eight .cso files, and repeated the run.

The complete cache yielded 4 pipelines translated / 0 missing and 898 translated draws / 0 not drawn. All three measured present-surface readbacks still reported mean 0.00/255; the renderer reported zero desktop draws and zero texture uploads. No menu or interactive scene was verified. The run reached the 45 s limit. This narrows the observation beyond missing pipeline manifests or bytecode on this setup.

Codex (GPT-6) assisted with the test and report.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136063627 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7136063627). Originally posted by [Lifither](https://github.com/Lifither) on 2026-11-24T15:27:39Z. --- ### Cache-complete follow-up on RX 590 Follow-up to [my `/EHa` startup run](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7135899412). Same Release `4aefce632cbc88f07f7f37df5bb5a4daf017a35d`, offline AppContainer, RX 590 driver `31.0.21923.1000`, Windows `26300.9974`, same start options and 45 s observation limit. `gfx2hlsl.py --pending` emitted four manifests and eight HLSL stages from the cold run requests. This machine has no `fxc.exe` at the default path, so that step emitted no `.cso` files. With manifests alone the runtime reported `translated 0 / missing 0`, with 866 translated-path draws not drawn. I then compiled the emitted stages with `D3DCompileFromFile` (`main`, `vs_5_1` / `ps_5_1`, flags 0), populated all eight `.cso` files, and repeated the run. The complete cache yielded **4 pipelines translated / 0 missing** and **898 translated draws / 0 not drawn**. All three measured present-surface readbacks still reported mean `0.00/255`; the renderer reported zero desktop draws and zero texture uploads. No menu or interactive scene was verified. The run reached the 45 s limit. This narrows the observation beyond missing pipeline manifests or bytecode on this setup. Codex (GPT-6) assisted with the test and report.
tedin7 commented 2026-11-24 17:02:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T16:10:50Z.


Thanks for the cache-complete RX 590 follow-up, @Lifither — ruling out missing pipeline manifests and .cso bytecode is a really useful data point.

Reading d3d12_xs_device.cpp and d3d12_draw.inl, render_draws = 0 is expected when every draw takes the translated path, and the first 3 readbacks only cover the first three 60-frame intervals (frames 60/120/180; the next log line is 40 readbacks later). To separate the remaining causes of mean 0.00/255 with 898 translated draws / 0 not drawn, could you share a short redacted text summary from that same log (no raw traces, paths, or captures needed) for these four items?

  1. x2w-render totals lines (every 300 frames): specifically the null bindings breakdown by cause, clears, and uploads — this immediately tells whether the translated draws are running with null textures/buffers/constants.
  2. x2w-render list slots per frame and any x2w-noop ... list::slotN slot numbers — this immediately tells whether dropped copy/resolve/depth-clear slots (e.g. CopyResource / CopyTextureRegion / ResolveSubresource / ClearDepthStencilView) or unhooked root descriptor slots (SetGraphicsRootConstantBufferView / UAV / single 32BitConstant) are active.
  3. x2w-draw ... blend ... mask lines for the 4 translated pipelines (to rule out a zero color write mask).
  4. Whether any Present readback log line appeared after the 3rd one (or whether the 898 draws occurred mostly after frame 180).

(Tip: python tools/startup/triage_run.py <logdir> on main already produces an allowlist-only redacted summary of most of the counters/slots if you prefer not to hand-redact.)

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7137246795 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7137246795). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T16:10:50Z. --- Thanks for the cache-complete RX 590 follow-up, @Lifither — ruling out missing pipeline manifests and `.cso` bytecode is a really useful data point. Reading `d3d12_xs_device.cpp` and `d3d12_draw.inl`, `render_draws = 0` is expected when every draw takes the translated path, and the first 3 readbacks only cover the first three 60-frame intervals (frames 60/120/180; the next log line is 40 readbacks later). To separate the remaining causes of `mean 0.00/255` with `898 translated draws / 0 not drawn`, could you share a short redacted text summary from that same log (no raw traces, paths, or captures needed) for these four items? 1. **`x2w-render totals`** lines (every 300 frames): specifically the `null bindings` breakdown by cause, `clears`, and `uploads` — this immediately tells whether the translated draws are running with null textures/buffers/constants. 2. **`x2w-render list slots per frame`** and any **`x2w-noop ... list::slotN`** slot numbers — this immediately tells whether dropped copy/resolve/depth-clear slots (e.g. `CopyResource` / `CopyTextureRegion` / `ResolveSubresource` / `ClearDepthStencilView`) or unhooked root descriptor slots (`SetGraphicsRootConstantBufferView` / `UAV` / single `32BitConstant`) are active. 3. **`x2w-draw ... blend ... mask`** lines for the 4 translated pipelines (to rule out a zero color write mask). 4. Whether any `Present` readback log line appeared after the 3rd one (or whether the 898 draws occurred mostly after frame 180). *(Tip: `python tools/startup/triage_run.py <logdir>` on `main` already produces an allowlist-only redacted summary of most of the counters/slots if you prefer not to hand-redact.)* AI-assisted.
MasterDomino commented 2026-11-24 17:02:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T16:15:57Z.


Local startup runs on an RX 9070 XT, to add a second GPU vendor to the #870 evidence. Counts only; captures, paths and names stay local.

Environment: main at cb94b8ca, release build. AMD Radeon RX 9070 XT, driver 32.0.31044.16, Windows 11 build 26300.9974. The D3D12 debug layer was off (X2W_D3D12_DEBUG unset), so the zero debug-message count below carries no weight.

Command: tools/startup/run.ps1 -Render -FakeUser -GpuMirror -ContinueAsserts 1000, plus a persistent storage path and the translation cache, with gfx2hlsl.py --pending run between runs. Runs c–e add -InputScript gamepad presses (A, and d-pad down).

Run Length Input Translated draws (not drawn) Pipelines translated / missing Textures Presented
a, cold cache 180 s none 58,030 (4,674) 10 / 1 272 (1.06 GiB) 4,587 frames, 28.5 fps
b, warm 180 s one A 63,327 (0) 11 / 0 1,355 (5.33 GiB) 4,645 frames, 28.9 fps
c 360 s A every 10 s 231,213 (83,315) 11 / 3 1,371 (5.36 GiB) 10,043 frames, 29.5 fps
d, warm 360 s A, then down/down/A 311,262 (0) 14 / 0 1,371 (5.36 GiB) 10,043 frames, 29.5 fps
e, warm 360 s A, then down/down/A every 20 s 308,439 (0) 14 / 0 1,383 (5.37 GiB) 10,051 frames, 29.5 fps

The fps figures are presented frames over the heartbeat interval, not a performance claim.

Observed:

  • No run crashed. Each ended on its timeout, with the same 18 continued asserts at one site.
  • The last presented surface was 3840×2160 with a full UI frame in every run, not black and not a single flat colour.
  • Gamepad input advanced the title through three first-run screens: a settings page, a notices page and an acceptance page. Each new screen needed 1–3 new pipelines. After --pending translation, all were drawn with 0 not drawn: 14 pipelines, all translated, 0 failures.
  • I stopped at the acceptance page. Going further means ticking agreement checkboxes through scripted input.

Triage (allowlist summary from triage_run.py, run e):

  • slot70 memory SRV refusals: 8 (5 unique), 4 of them unsupported_description on 3D resources.
  • Unhandled or stubbed x2w-d3d12 slots: 3,554 events (51 unique), dominated by Device::slot133 (3,406).
  • x2w-dstorage failures: 14 (11 destination capacity exceeded, 2 zlib, 1 bcpack).
  • x2w-runtime failing calls: 3 (slot71 ×2, persistent_local_storage ×1, both 0x80004005).

Not established:

  • Whether these screens match console output pixel for pixel.
  • Anything past the acceptance page.
  • Behaviour with the debug layer on.

I can repeat a run with X2W_D3D12_DEBUG=1 if that is useful.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7137381676 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7137381676). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T16:15:57Z. --- Local startup runs on an RX 9070 XT, to add a second GPU vendor to the #870 evidence. Counts only; captures, paths and names stay local. **Environment:** `main` at `cb94b8ca`, release build. AMD Radeon RX 9070 XT, driver 32.0.31044.16, Windows 11 build 26300.9974. The D3D12 debug layer was **off** (`X2W_D3D12_DEBUG` unset), so the zero debug-message count below carries no weight. **Command:** `tools/startup/run.ps1 -Render -FakeUser -GpuMirror -ContinueAsserts 1000`, plus a persistent storage path and the translation cache, with `gfx2hlsl.py --pending` run between runs. Runs c–e add `-InputScript` gamepad presses (A, and d-pad down). | Run | Length | Input | Translated draws (not drawn) | Pipelines translated / missing | Textures | Presented | |---|---|---|---|---|---|---| | a, cold cache | 180 s | none | 58,030 (4,674) | 10 / 1 | 272 (1.06 GiB) | 4,587 frames, 28.5 fps | | b, warm | 180 s | one A | 63,327 (0) | 11 / 0 | 1,355 (5.33 GiB) | 4,645 frames, 28.9 fps | | c | 360 s | A every 10 s | 231,213 (83,315) | 11 / 3 | 1,371 (5.36 GiB) | 10,043 frames, 29.5 fps | | d, warm | 360 s | A, then down/down/A | 311,262 (0) | 14 / 0 | 1,371 (5.36 GiB) | 10,043 frames, 29.5 fps | | e, warm | 360 s | A, then down/down/A every 20 s | 308,439 (0) | 14 / 0 | 1,383 (5.37 GiB) | 10,051 frames, 29.5 fps | The fps figures are presented frames over the heartbeat interval, not a performance claim. **Observed:** - No run crashed. Each ended on its timeout, with the same 18 continued asserts at one site. - The last presented surface was 3840×2160 with a full UI frame in every run, not black and not a single flat colour. - Gamepad input advanced the title through three first-run screens: a settings page, a notices page and an acceptance page. Each new screen needed 1–3 new pipelines. After `--pending` translation, all were drawn with 0 not drawn: 14 pipelines, all translated, 0 failures. - I stopped at the acceptance page. Going further means ticking agreement checkboxes through scripted input. **Triage (allowlist summary from `triage_run.py`, run e):** - `slot70` memory SRV refusals: 8 (5 unique), 4 of them `unsupported_description` on 3D resources. - Unhandled or stubbed `x2w-d3d12` slots: 3,554 events (51 unique), dominated by `Device::slot133` (3,406). - `x2w-dstorage` failures: 14 (11 destination capacity exceeded, 2 zlib, 1 bcpack). - `x2w-runtime` failing calls: 3 (`slot71` ×2, `persistent_local_storage` ×1, both `0x80004005`). **Not established:** - Whether these screens match console output pixel for pixel. - Anything past the acceptance page. - Behaviour with the debug layer on. I can repeat a run with `X2W_D3D12_DEBUG=1` if that is useful. AI-assisted.
R0Y00 commented 2026-11-24 17:02:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T16:19:43Z.


Thanks for the independent AMD run. This adds input-driven progress through first-run UI to the acceptance page on the RX 9070 XT. If you can do the debug-layer run, reuse the warm-cache input sequence up to the same page and share the first warning or error category, if any, along with the first screen that responds. The numbered request failures can stay separate from this UI result.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7137486901 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7137486901). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T16:19:43Z. --- Thanks for the independent AMD run. This adds input-driven progress through first-run UI to the acceptance page on the RX 9070 XT. If you can do the debug-layer run, reuse the warm-cache input sequence up to the same page and share the first warning or error category, if any, along with the first screen that responds. The numbered request failures can stay separate from this UI result.
triggered02 commented 2026-11-24 17:02:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T16:35:21Z.


A data point on the same GPU as the community milestone row (GTX 1660 SUPER), plus the shader refusal breakdown from the loading screen, since that is where the run stops.

Run. Release build at ed874cfe, local diagnostic launcher, complete shader cache, 150 s, one A-press window. It reached the main game's loading screen (dark-purple frame, confirmed by hand) — past Legal Notices, the splash and the account picker. Counts: 3,929 frames in 140.3 s (28.0 fps), 16 pipelines translated / 0 missing, 47,101 translated draws, 1,385 textures (5.64 GB), 48 Bink opens / 449 frames, 0 traps, 0 failed resets. I am not claiming gameplay; the loading screen is where the 150 s ended.

What the cache says is missing. The same run's shader cache holds 52 translated shaders and 29 refusals, and the refusal texts group like this:

Count Refusal
7 operand 'off'
5 v_cvt_f32_i32 with ['mul:2']
5 buffer format BUF_FMT_16_16_16_16_FLOAT
2 image dimension SQ_RSRC_IMG_1D
1 each Unverified multi-exit program, v_cmp_class_f32, v_pk_min_f16, v_min_f16, v_mul_hi_u32, buffer_load_format_xyz, image_gather4_lz, operand '-v30', v_lshrrev_b64, operand '-v3'

Four observations, offered as triage input rather than conclusions:

  • Only BUF_FMT_16_16_16_16_FLOAT has a nearby open issue that I could find (#1542 covers the compute buffer_store_format_* side, not this refusal); operand 'off', SQ_RSRC_IMG_1D and v_cvt_f32_i32 with mul:2 did not turn up in an open issue search. The operand '-v30' / operand '-v3' pair looks like one more negative-operand form rather than two.
  • The 7 operand 'off' refusals are the largest single group, and off is the form #1630's 1D-texture candidate is already working next door, so the two may share a root in the pixel-stage path.
  • 29 refusals against 52 successes is a high ratio for a loading screen that then renders: the shaders that do translate carry it, and the failures are plausibly the missing pieces rather than a total block.
  • This is one run and one cache; a warm-cache rescan would separate "failed once" from "fails every time".

Per the rules here I have kept the inputs, the cache and the per-shader details local; the table is the aggregate only. If one of these groups is worth a scoped issue with acceptance criteria, I can take it — operand 'off' and the 1D image dimension look like the two that would move this run furthest.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7137901053 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7137901053). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-24T16:35:21Z. --- A data point on the same GPU as the community milestone row (GTX 1660 SUPER), plus the shader refusal breakdown from the loading screen, since that is where the run stops. **Run.** Release build at `ed874cfe`, local diagnostic launcher, complete shader cache, 150 s, one A-press window. It reached the main game's loading screen (dark-purple frame, confirmed by hand) — past Legal Notices, the splash and the account picker. Counts: 3,929 frames in 140.3 s (28.0 fps), 16 pipelines translated / 0 missing, 47,101 translated draws, 1,385 textures (5.64 GB), 48 Bink opens / 449 frames, 0 traps, 0 failed resets. I am not claiming gameplay; the loading screen is where the 150 s ended. **What the cache says is missing.** The same run's shader cache holds 52 translated shaders and 29 refusals, and the refusal texts group like this: | Count | Refusal | | --- | --- | | 7 | `operand 'off'` | | 5 | `v_cvt_f32_i32 with ['mul:2']` | | 5 | `buffer format BUF_FMT_16_16_16_16_FLOAT` | | 2 | `image dimension SQ_RSRC_IMG_1D` | | 1 each | `Unverified multi-exit program`, `v_cmp_class_f32`, `v_pk_min_f16`, `v_min_f16`, `v_mul_hi_u32`, `buffer_load_format_xyz`, `image_gather4_lz`, `operand '-v30'`, `v_lshrrev_b64`, `operand '-v3'` | Four observations, offered as triage input rather than conclusions: - Only `BUF_FMT_16_16_16_16_FLOAT` has a nearby open issue that I could find (#1542 covers the compute `buffer_store_format_*` side, not this refusal); `operand 'off'`, `SQ_RSRC_IMG_1D` and `v_cvt_f32_i32` with `mul:2` did not turn up in an open issue search. The `operand '-v30'` / `operand '-v3'` pair looks like one more negative-operand form rather than two. - The 7 `operand 'off'` refusals are the largest single group, and `off` is the form #1630's 1D-texture candidate is already working next door, so the two may share a root in the pixel-stage path. - 29 refusals against 52 successes is a high ratio for a loading screen that then renders: the shaders that do translate carry it, and the failures are plausibly the missing pieces rather than a total block. - This is one run and one cache; a warm-cache rescan would separate "failed once" from "fails every time". Per the rules here I have kept the inputs, the cache and the per-shader details local; the table is the aggregate only. If one of these groups is worth a scoped issue with acceptance criteria, I can take it — `operand 'off'` and the 1D image dimension look like the two that would move this run furthest. AI-assisted.
triggered02 commented 2026-11-24 17:02:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T16:40:12Z.


Follow-up to my breakdown above: I repeated the run on a copy of the same warm cache to separate one-off refusals from persistent ones.

The refusal set is deterministic. After the second 150 s run the cache still holds 52 translated shaders and exactly the same 29 refusals, with the same distribution — 7 × operand 'off', 5 × v_cvt_f32_i32 with ['mul:2'], 5 × BUF_FMT_16_16_16_16_FLOAT, 2 × SQ_RSRC_IMG_1D and the same ten singletons. No new refusals appeared and none disappeared, so these are reproducible failures rather than a one-off from a partially populated cache. Fixing any of those groups should be observable directly in these counts.

But the second run did not take the same path, and that caveat matters. It presented 3,472 frames at 27.7 fps with 4 pipelines translated, 9,840 translated draws, 0 textures and 4 Bink opens — against 16 pipelines, 47,101 draws, 1,385 textures (5.64 GB) and 48 Bink opens in the first run, both at the same 150 s. Same cache, same input script, 0 traps and 0 failed resets in both. So the refusal census is stable while the amount of work done is not; the warm cache changed the trajectory, and I cannot claim the second run reached the same loading screen. The first run is the one that reached the main game loading screen.

What that changes for triage: the refusal list can be trusted as the set to fix, but any "does it get further" claim needs a run that visibly reaches the same screen again, not just a repeat with the same cache.

Everything stays local; this is counts only.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138025259 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7138025259). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-24T16:40:12Z. --- Follow-up to my breakdown above: I repeated the run on a copy of the same warm cache to separate one-off refusals from persistent ones. **The refusal set is deterministic.** After the second 150 s run the cache still holds 52 translated shaders and exactly the same 29 refusals, with the same distribution — 7 × `operand 'off'`, 5 × `v_cvt_f32_i32 with ['mul:2']`, 5 × `BUF_FMT_16_16_16_16_FLOAT`, 2 × `SQ_RSRC_IMG_1D` and the same ten singletons. No new refusals appeared and none disappeared, so these are reproducible failures rather than a one-off from a partially populated cache. Fixing any of those groups should be observable directly in these counts. **But the second run did not take the same path, and that caveat matters.** It presented 3,472 frames at 27.7 fps with 4 pipelines translated, 9,840 translated draws, 0 textures and 4 Bink opens — against 16 pipelines, 47,101 draws, 1,385 textures (5.64 GB) and 48 Bink opens in the first run, both at the same 150 s. Same cache, same input script, 0 traps and 0 failed resets in both. So the refusal census is stable while the amount of work done is not; the warm cache changed the trajectory, and I cannot claim the second run reached the same loading screen. The first run is the one that reached the main game loading screen. What that changes for triage: the refusal list can be trusted as the set to fix, but any "does it get further" claim needs a run that visibly reaches the same screen again, not just a repeat with the same cache. Everything stays local; this is counts only. AI-assisted.
MasterDomino commented 2026-11-24 17:02:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T16:40:49Z.


Debug-layer run as requested, plus one more run after translating the new pipelines. Same machine and settings as my earlier report: RX 9070 XT, driver 32.0.31044.16, Windows build 26300, main at cb94b8ca, release build, warm cache, the same storage folder. Captures stay local.

Input sequence.

  • A presses from 60 to 100 s.
  • Three passes of Up×3, A, Down, A, Down, A, at 150, 185 and 220 s. On the notices page a pass ends on Next. On the acceptance page it ticks both boxes and confirms.
  • The surface was snapshotted every 10 s so the screens could be ordered.

Run g: debug layer on (X2W_D3D12_DEBUG=1, log line debug layer: 0x00000000 enabled)

Screens that responded, in order.

  1. First-run settings
  2. Brightness calibration (about 160 s)
  3. Notices (about 190 s)
  4. Acceptance (about 220 s; the first box was ticked by about 240 s)

After confirming, the next frames were black. At that point 4 new pipelines were missing from the cache: 631 draws were not drawn in the 225–235 s heartbeats. The run stopped at 261 s on the soft-assert continue limit I had set (999 continues at the usual assert site, almost all after confirming), not on a fault.

Debug messages. 400 in total, all severity ERROR; no corruption or warning messages.

Count ID Message category Where
1 (first, at startup) 646 GetDescriptorHandleIncrementSize: invalid descriptor heap type device slot 15
394 1419 SetGraphicsRootSignature: root signature with SAMPLER_HEAP_DIRECTLY_INDEXED set before a sampler heap is bound by SetDescriptorHeaps 348 on the original-view path (slot 18), 43 on translated draws, 2 during translated PSO creation, 1 before slot 133
2 + 2 816 / 817 CreateCommittedResource: clear-value format 118 unrecognised / unsupported at feature level 12_2 before slot 133
1 743 CreateCommandSignature: unexpected parameter type device slot 41

Run h: debug layer off, new pipelines translated, larger assert limit

  • Translation. gfx2hlsl.py --pending translated all 4 pending pipelines: 18 translated, 0 failed, 0 not drawn through the end of the run.
  • Screens. The same order as run g. After confirming (about 255 s), the surface was a single flat colour, RGB (32, 32, 44), 1 distinct colour in the sampled frame, instead of black. So run g's black came from the untranslated pipelines. Once they were translated, this is the flat dark-gray frame others describe after confirming.
  • Storage. Over the same window, storage went from 8,522 done / 18 failed (220 s) to 10,585 done / 849 failed (260 s).
  • End of run, at 270 s: write access violation in the storage stand-in itself (XCRDAPI.dll), not in title code.
    • The faulting instruction is the memcpy into the request destination on the plain-memory path (xcrdapi.cpp, std::memcpy(destination, data, decode_length)), reached after the capacity check passed.
    • The fault address is 1 MiB aligned, so the destination the title supplied was not writable to its declared capacity.
    • This looks like the same streaming phase as #1586, but here the fault lands in the stand-in rather than in title code. I can open a scoped note on #1586 if that's the better home.

Not established. Whether the flat frame is the expected loading backdrop or a missing composite, and what the storage failures were requesting.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138040803 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7138040803). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T16:40:49Z. --- Debug-layer run as requested, plus one more run after translating the new pipelines. Same machine and settings as [my earlier report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7137381676): RX 9070 XT, driver 32.0.31044.16, Windows build 26300, `main` at `cb94b8ca`, release build, warm cache, the same storage folder. Captures stay local. **Input sequence.** - A presses from 60 to 100 s. - Three passes of Up×3, A, Down, A, Down, A, at 150, 185 and 220 s. On the notices page a pass ends on Next. On the acceptance page it ticks both boxes and confirms. - The surface was snapshotted every 10 s so the screens could be ordered. ## Run g: debug layer on (`X2W_D3D12_DEBUG=1`, log line `debug layer: 0x00000000 enabled`) **Screens that responded, in order.** 1. First-run settings 2. Brightness calibration (about 160 s) 3. Notices (about 190 s) 4. Acceptance (about 220 s; the first box was ticked by about 240 s) After confirming, the next frames were black. At that point 4 new pipelines were missing from the cache: 631 draws were not drawn in the 225–235 s heartbeats. The run stopped at 261 s on the soft-assert continue limit I had set (999 continues at the usual assert site, almost all after confirming), not on a fault. **Debug messages.** 400 in total, all severity ERROR; no corruption or warning messages. | Count | ID | Message category | Where | |---|---|---|---| | 1 (first, at startup) | 646 | `GetDescriptorHandleIncrementSize`: invalid descriptor heap type | device slot 15 | | 394 | 1419 | `SetGraphicsRootSignature`: root signature with `SAMPLER_HEAP_DIRECTLY_INDEXED` set before a sampler heap is bound by `SetDescriptorHeaps` | 348 on the original-view path (slot 18), 43 on translated draws, 2 during translated PSO creation, 1 before slot 133 | | 2 + 2 | 816 / 817 | `CreateCommittedResource`: clear-value format 118 unrecognised / unsupported at feature level 12_2 | before slot 133 | | 1 | 743 | `CreateCommandSignature`: unexpected parameter type | device slot 41 | ## Run h: debug layer off, new pipelines translated, larger assert limit - **Translation.** `gfx2hlsl.py --pending` translated all 4 pending pipelines: 18 translated, 0 failed, 0 not drawn through the end of the run. - **Screens.** The same order as run g. After confirming (about 255 s), the surface was a single flat colour, RGB (32, 32, 44), 1 distinct colour in the sampled frame, instead of black. So run g's black came from the untranslated pipelines. Once they were translated, this is the flat dark-gray frame others describe after confirming. - **Storage.** Over the same window, storage went from 8,522 done / 18 failed (220 s) to 10,585 done / 849 failed (260 s). - **End of run, at 270 s: write access violation in the storage stand-in itself (`XCRDAPI.dll`), not in title code.** - The faulting instruction is the `memcpy` into the request destination on the plain-memory path (`xcrdapi.cpp`, `std::memcpy(destination, data, decode_length)`), reached after the capacity check passed. - The fault address is 1 MiB aligned, so the destination the title supplied was not writable to its declared capacity. - This looks like the same streaming phase as #1586, but here the fault lands in the stand-in rather than in title code. I can open a scoped note on #1586 if that's the better home. **Not established.** Whether the flat frame is the expected loading backdrop or a missing composite, and what the storage failures were requesting. AI-assisted.
stan495 commented 2026-11-24 17:02:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-24T16:47:17Z.


RX 7900 XTX startup follow-up

I ran the offline launcher on the #1316 merge commit (a166e42f169b18cc4323b7586e14426671466f85), x64 Release, Windows 11 build 26200.9974, Radeon RX 7900 XTX driver 32.0.32029.2010. The D3D12 debug layer was off. I used run.ps1 -Render -FakeUser -GpuMirror -ContinueAsserts 1000 -MemoryGiB 14 -Seconds 180 -InputScript '4@70' with an isolated run copy, per-run storage, and a warm FXC cache populated with gfx2hlsl.py --pending between rounds. GPU engine sampling matched the process to the RX 7900 XTX.

Three complete warm-cache runs reached the end of the intro and showed the LANGUAGE page in the captured present surfaces. Two also showed LEGAL NOTICES. In the final replay, the language page was sampled at about 81 and 89 seconds after launch, and LEGAL NOTICES at about 129 and 138 seconds. The local operator also reported reaching the terms-acceptance screen.

A window capture of the language page at frame 1,800 showed 27.3 presented fps and 11,068 translated draws. The matching runtime totals were 381 draws not drawn, 10 pipelines translated / 1 missing, and 453 null bindings. The final periodic totals before the 180-second limit were 50,766 translated draws, 4,013 not drawn, 14 pipelines translated / 1 missing, and 1,054 null bindings. The remaining cache request failed offline translation with an unsupported SQ_RSRC_IMG_2D_ARRAY dimension. Two other warm-cache attempts stopped before the intro with an access violation.

For comparison, the RX 9070 XT report used cb94b8ca. This result records first-run UI progress on the earlier #1316 build with the cache state above. Captures and raw logs are kept locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138206951 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7138206951). Originally posted by [stan495](https://github.com/stan495) on 2026-11-24T16:47:17Z. --- ### RX 7900 XTX startup follow-up I ran the offline launcher on the #1316 merge commit (`a166e42f169b18cc4323b7586e14426671466f85`), x64 Release, Windows 11 build 26200.9974, Radeon RX 7900 XTX driver 32.0.32029.2010. The D3D12 debug layer was off. I used `run.ps1 -Render -FakeUser -GpuMirror -ContinueAsserts 1000 -MemoryGiB 14 -Seconds 180 -InputScript '4@70'` with an isolated run copy, per-run storage, and a warm FXC cache populated with `gfx2hlsl.py --pending` between rounds. GPU engine sampling matched the process to the RX 7900 XTX. Three complete warm-cache runs reached the end of the intro and showed the `LANGUAGE` page in the captured present surfaces. Two also showed `LEGAL NOTICES`. In the final replay, the language page was sampled at about 81 and 89 seconds after launch, and `LEGAL NOTICES` at about 129 and 138 seconds. The local operator also reported reaching the terms-acceptance screen. A window capture of the language page at frame 1,800 showed 27.3 presented fps and 11,068 translated draws. The matching runtime totals were 381 draws not drawn, 10 pipelines translated / 1 missing, and 453 null bindings. The final periodic totals before the 180-second limit were 50,766 translated draws, 4,013 not drawn, 14 pipelines translated / 1 missing, and 1,054 null bindings. The remaining cache request failed offline translation with an unsupported `SQ_RSRC_IMG_2D_ARRAY` dimension. Two other warm-cache attempts stopped before the intro with an access violation. For comparison, the RX 9070 XT report used `cb94b8ca`. This result records first-run UI progress on the earlier #1316 build with the cache state above. Captures and raw logs are kept locally.
MasterDomino commented 2026-11-24 17:02:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T17:00:55Z.


Proposal for the dominant debug-layer error in my debug-layer run: 394 of 400 messages, id 1419. I'd like a go-ahead before opening a PR.

Cause (stand-in, not title).

  • list_graphics_root (list slot 34, src/startup_stubs/d3d12_xs_device.cpp) forwards every title root signature to the desktop list. The title's root signatures carry CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED.
  • list_set_descriptor_heaps (slot 32) only tracks the title's heaps and never forwards them, so the desktop list sets a directly indexed root signature with no heaps bound.
  • In these runs every title draw takes the translated path, which sets its own root signature (FLAG_NONE). The forwarded root signature is therefore unused, except by the legacy real-draw path (DrawInstanced with a desktop pipeline), which recorded 0 draws.
  • The translated draw's own order (root signature, then bind_translated_heaps) is not the source: its root signature has no directly indexed flag. The 43 messages logged under "translated draw views" are just where those messages were drained.

Change.

  • When the title creates a root signature (device slot 16), record whether it has either directly indexed flag.
  • Slot 34 does not forward such a root signature, and records that in the pass (root_real).
  • Root SRV forwarding (list slot 44, desktop 40 + 4) is skipped while the title root signature is not on the desktop list.
  • The title-side tracking (pass.root, root addresses, constants) is unchanged, so translated draws see the same parameters.
  • A real draw under such a root signature has root parameter 0 unbound, so it is counted as skipped (draws … (skipped N)) instead of running in an invalid binding state.
  • Root signatures without those flags behave exactly as today.

Measured locally (prototype; RX 9070 XT, 32.0.31044.16, X2W_D3D12_DEBUG=1, 75 s, same storage, warm cache, A at 60 s):

Build id 1419 All debug messages Translated draws (not drawn)
f121513e unmodified 394 400 14,419 (0)
prototype on f121513e 0 6 14,080 (0)

The 6 remaining messages are the other categories from the earlier report (646, 816/817, 743). They are out of scope here.

Test plan.

  • Extend the startup_root_cbv harness with a mode that builds root parameter 0 under the directly indexed flags, binds it through slot 34 and draws through the translated path with the debug layer on.
  • Assert the expected colour and no id-1419 message, on WARP and hardware. Return 77 where CreateRootSignature rejects those flags.
  • Negative control: the same case on the unmodified slot 34 must show id 1419. I'll report that run's failure line in the PR.
  • Existing startup_root_cbv_* modes, including same_root and switch_root, must still pass.

Happy to narrow or reshape it, for example forwarding the root signature only before a real draw instead.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138554619 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7138554619). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T17:00:55Z. --- Proposal for the dominant debug-layer error in [my debug-layer run](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7138040803): 394 of 400 messages, id 1419. I'd like a go-ahead before opening a PR. **Cause (stand-in, not title).** - `list_graphics_root` (list slot 34, `src/startup_stubs/d3d12_xs_device.cpp`) forwards every title root signature to the desktop list. The title's root signatures carry `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED`. - `list_set_descriptor_heaps` (slot 32) only tracks the title's heaps and never forwards them, so the desktop list sets a directly indexed root signature with no heaps bound. - In these runs every title draw takes the translated path, which sets its own root signature (`FLAG_NONE`). The forwarded root signature is therefore unused, except by the legacy real-draw path (`DrawInstanced` with a desktop pipeline), which recorded 0 draws. - The translated draw's own order (root signature, then `bind_translated_heaps`) is not the source: its root signature has no directly indexed flag. The 43 messages logged under "translated draw views" are just where those messages were drained. **Change.** - When the title creates a root signature (device slot 16), record whether it has either directly indexed flag. - Slot 34 does not forward such a root signature, and records that in the pass (`root_real`). - Root SRV forwarding (list slot 44, desktop 40 + 4) is skipped while the title root signature is not on the desktop list. - The title-side tracking (`pass.root`, root addresses, constants) is unchanged, so translated draws see the same parameters. - A real draw under such a root signature has root parameter 0 unbound, so it is counted as skipped (`draws … (skipped N)`) instead of running in an invalid binding state. - Root signatures without those flags behave exactly as today. **Measured locally** (prototype; RX 9070 XT, 32.0.31044.16, `X2W_D3D12_DEBUG=1`, 75 s, same storage, warm cache, A at 60 s): | Build | id 1419 | All debug messages | Translated draws (not drawn) | |---|---|---|---| | `f121513e` unmodified | 394 | 400 | 14,419 (0) | | prototype on `f121513e` | 0 | 6 | 14,080 (0) | The 6 remaining messages are the other categories from the earlier report (646, 816/817, 743). They are out of scope here. **Test plan.** - Extend the `startup_root_cbv` harness with a mode that builds root parameter 0 under the directly indexed flags, binds it through slot 34 and draws through the translated path with the debug layer on. - Assert the expected colour and no id-1419 message, on WARP and hardware. Return 77 where `CreateRootSignature` rejects those flags. - Negative control: the same case on the unmodified slot 34 must show id 1419. I'll report that run's failure line in the PR. - Existing `startup_root_cbv_*` modes, including `same_root` and `switch_root`, must still pass. Happy to narrow or reshape it, for example forwarding the root signature only before a real draw instead. AI-assisted.
R0Y00 commented 2026-11-24 18:02:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T17:12:55Z.


Go ahead with one focused source-built comparison for the directly indexed root-signature path. Please coordinate with @tedin7 on draft #1685 so this stays one implementation. I prefer deferring the native root bind until a real draw has the indexed heaps it actually needs. The translated path should keep tracking the guest parameters and use its own root signature. For a real draw that lacks a required heap, record a specific refusal. A one-entry sampler heap alone cannot satisfy a real draw that uses another index or also needs the view heap. Cover both flags independently and together, the unflagged real path, the existing root-CBV controls, and the 1419 fail-first case.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138858777 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7138858777). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T17:12:55Z. --- Go ahead with one focused source-built comparison for the directly indexed root-signature path. Please coordinate with @tedin7 on draft #1685 so this stays one implementation. I prefer deferring the native root bind until a real draw has the indexed heaps it actually needs. The translated path should keep tracking the guest parameters and use its own root signature. For a real draw that lacks a required heap, record a specific refusal. A one-entry sampler heap alone cannot satisfy a real draw that uses another index or also needs the view heap. Cover both flags independently and together, the unflagged real path, the existing root-CBV controls, and the 1419 fail-first case.
MasterDomino commented 2026-11-24 18:02:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T17:13:55Z.


Claiming the directly indexed root-signature comparison as scoped above: defer the native root bind until a real draw has the indexed heaps, record a specific refusal otherwise, and cover the flag matrix, the unflagged real path, the root-CBV controls and the 1419 fail-first case. I'm coordinating with @tedin7 on #1685 so this stays one implementation. PR link to follow.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138883604 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7138883604). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T17:13:55Z. --- Claiming the directly indexed root-signature comparison as scoped above: defer the native root bind until a real draw has the indexed heaps, record a specific refusal otherwise, and cover the flag matrix, the unflagged real path, the root-CBV controls and the 1419 fail-first case. I'm coordinating with @tedin7 on #1685 so this stays one implementation. PR link to follow. AI-assisted.
MasterDomino commented 2026-11-24 18:02:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T17:15:18Z.


One finding before I write the PR, since it affects the requested coverage. @tedin7 too, for #1685.

On public main (80f413a7), the stand-in can't build a real graphics pipeline.

  • pipeline_real is only set from build_stream_pipeline.
  • That function needs compile_translation for every shader subobject, and compile_translation has been a stub returning no blob since e658fe24 ("no translation for stream shader …").
  • The other three pipeline creation slots wrap nullptr.
  • So a source-built test can't reach list_draw's real branch. Your local build may differ.

What I plan to do so the real-draw behaviour is still tested:

  • The deferral. Slot 34 doesn't set a root signature that has either directly indexed flag. A real DrawInstanced binds the desktop counterparts of the title's bound heaps, then the deferred root signature, then the recorded root SRVs. It does that only when every heap the flags require is present and shader-visible. Otherwise it records a specific refusal (root heap missing: view, sampler or view and sampler) and skips the draw. Unflagged root signatures keep today's immediate bind.
  • A device-free check. The decision goes into a small header-only helper, next to translated_sampler_bindings.h, with a device-free CTest over the full matrix: each flag alone, both, none × which heaps are bound. It checks that a sampler heap alone never satisfies a root signature that also needs the view heap.
  • An integration test through the stand-in (WARP and hardware, debug-layer message callback). It covers:
    • the 1419 fail-first control on a plain desktop list;
    • then 0 messages through slot 34 for each flag alone, both, and none;
    • translated draws still drawing correctly under a flagged root signature;
    • the existing startup_root_cbv_* modes unchanged.

If you'd rather have a test-only seam that lets a source-built stream carry desktop bytecode, so the real branch runs end to end, say so and I'll add it instead.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138918767 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7138918767). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T17:15:18Z. --- One finding before I write the PR, since it affects the requested coverage. @tedin7 too, for #1685. **On public `main` (`80f413a7`), the stand-in can't build a real graphics pipeline.** - `pipeline_real` is only set from `build_stream_pipeline`. - That function needs `compile_translation` for every shader subobject, and `compile_translation` has been a stub returning no blob since `e658fe24` ("no translation for stream shader …"). - The other three pipeline creation slots wrap `nullptr`. - So a source-built test can't reach `list_draw`'s real branch. Your local build may differ. **What I plan to do so the real-draw behaviour is still tested:** - **The deferral.** Slot 34 doesn't set a root signature that has either directly indexed flag. A real `DrawInstanced` binds the desktop counterparts of the title's bound heaps, then the deferred root signature, then the recorded root SRVs. It does that only when every heap the flags require is present and shader-visible. Otherwise it records a specific refusal (`root heap missing: view`, `sampler` or `view and sampler`) and skips the draw. Unflagged root signatures keep today's immediate bind. - **A device-free check.** The decision goes into a small header-only helper, next to `translated_sampler_bindings.h`, with a device-free CTest over the full matrix: each flag alone, both, none × which heaps are bound. It checks that a sampler heap alone never satisfies a root signature that also needs the view heap. - **An integration test through the stand-in** (WARP and hardware, debug-layer message callback). It covers: - the 1419 fail-first control on a plain desktop list; - then 0 messages through slot 34 for each flag alone, both, and none; - translated draws still drawing correctly under a flagged root signature; - the existing `startup_root_cbv_*` modes unchanged. If you'd rather have a test-only seam that lets a source-built stream carry desktop bytecode, so the real branch runs end to end, say so and I'll add it instead. AI-assisted.
R0Y00 commented 2026-11-24 18:02:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T17:21:03Z.


Proceed with the flag-matrix helper and the source-built translated-draw integration on current main. No alternate production pipeline-build path is needed for this slice. In the PR, report the real-draw decision coverage separately from the translated GPU readback. If the deferred real path cannot restore all state that the signature uses, including root constants and descriptor tables, keep that case explicitly refused until there is a real end-to-end fixture. Retain the unflagged path and the existing CBV controls.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7139061952 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7139061952). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T17:21:03Z. --- Proceed with the flag-matrix helper and the source-built translated-draw integration on current main. No alternate production pipeline-build path is needed for this slice. In the PR, report the real-draw decision coverage separately from the translated GPU readback. If the deferred real path cannot restore all state that the signature uses, including root constants and descriptor tables, keep that case explicitly refused until there is a real end-to-end fixture. Retain the unflagged path and the existing CBV controls.
MitchellBrovarnik commented 2026-11-24 18:02:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MitchellBrovarnik on 2026-11-24T17:21:41Z.


Independent Windows startup report — RTX 5080, early breakpoint

Environment

  • Revision: c864f138 (main, merge #1613)
  • CPU: AMD Ryzen 7 9800X3D
  • GPU: NVIDIA GeForce RTX 5080 (16 GB)
  • RAM: 64 GB DDR5
  • Windows; Visual Studio 2022 Build Tools / MSVC 19.44.35230.0; Python 3.12 virtual environment
  • Exact Windows build and NVIDIA driver version not recorded in this report.

Public regression tests: Dev build completed. Full CTest suite (1,041 tests): 986 passed, 45 skipped, 10 failed initially. The failures were resolved after replacing the Python 3.10 environment with Python 3.12 and rerunning the failed tests. Combined result: 996 passed, 45 skipped, no remaining failures (not a second full-suite run).

Observed startup boundary: Using the repository's startup debugger, the local offline startup attempt loaded 71 modules and created several runtime-service objects but stopped at a first-chance software breakpoint after approximately 0.20 seconds. No visible window or rendered frame was recorded. Several earlier first-chance exceptions contained 0x80004005 (E_FAIL). The terminating exception was 0x80000003 in the main executable. No GPU device-removal error was reported, and no network opens were refused during this short run.

Interpretation: This appears to be an early initialization failure, not a demonstrated rendering or GPU-driver failure. The failing initialization contract is not yet isolated. The assertion's underlying cause is unknown.

Happy to run public source-built regression fixtures on the RTX 5080 if useful. This is a sanitized observation only; no local executable, assets, memory dumps, proprietary code bytes or private paths are included.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7139077744 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7139077744). Originally posted by [MitchellBrovarnik](https://github.com/MitchellBrovarnik) on 2026-11-24T17:21:41Z. --- ### Independent Windows startup report — RTX 5080, early breakpoint **Environment** - Revision: `c864f138` (main, merge #1613) - CPU: AMD Ryzen 7 9800X3D - GPU: NVIDIA GeForce RTX 5080 (16 GB) - RAM: 64 GB DDR5 - Windows; Visual Studio 2022 Build Tools / MSVC 19.44.35230.0; Python 3.12 virtual environment - Exact Windows build and NVIDIA driver version not recorded in this report. **Public regression tests:** Dev build completed. Full CTest suite (1,041 tests): 986 passed, 45 skipped, 10 failed initially. The failures were resolved after replacing the Python 3.10 environment with Python 3.12 and rerunning the failed tests. Combined result: 996 passed, 45 skipped, no remaining failures (not a second full-suite run). **Observed startup boundary:** Using the repository's startup debugger, the local offline startup attempt loaded 71 modules and created several runtime-service objects but stopped at a first-chance software breakpoint after approximately 0.20 seconds. No visible window or rendered frame was recorded. Several earlier first-chance exceptions contained `0x80004005` (`E_FAIL`). The terminating exception was `0x80000003` in the main executable. No GPU device-removal error was reported, and no network opens were refused during this short run. **Interpretation:** This appears to be an early initialization failure, not a demonstrated rendering or GPU-driver failure. The failing initialization contract is not yet isolated. The assertion's underlying cause is unknown. Happy to run public source-built regression fixtures on the RTX 5080 if useful. This is a sanitized observation only; no local executable, assets, memory dumps, proprietary code bytes or private paths are included.
R0Y00 commented 2026-11-24 18:02:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T17:43:58Z.


Thanks for the sanitized RTX 5080 report. The breakpoint before a window on c864f138 is an early initialization observation; it does not isolate a renderer or driver failure. If you can do a public fixture run, please build current main with Python 3.12 and run:

ctest --preset dev --no-tests=error -R '^startup_vertex_fetch_formats_(hardware|warp)$' -V

Please include the tested commit, Windows build, driver and debug-layer status, with pass/skip/fail separately. That will give us an independent check of the newly landed translated vertex fetches without needing the local executable. If you independently retry startup, the first failing subsystem or HRESULT category and whether a window appeared are enough; please leave private paths and executable details out.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7139624164 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7139624164). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T17:43:58Z. --- Thanks for the sanitized RTX 5080 report. The breakpoint before a window on c864f138 is an early initialization observation; it does not isolate a renderer or driver failure. If you can do a public fixture run, please build current main with Python 3.12 and run: ```powershell ctest --preset dev --no-tests=error -R '^startup_vertex_fetch_formats_(hardware|warp)$' -V ``` Please include the tested commit, Windows build, driver and debug-layer status, with pass/skip/fail separately. That will give us an independent check of the newly landed translated vertex fetches without needing the local executable. If you independently retry startup, the first failing subsystem or HRESULT category and whether a window appeared are enough; please leave private paths and executable details out.
MitchellBrovarnik commented 2026-11-24 18:03:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MitchellBrovarnik on 2026-11-24T17:52:03Z.


@R0Y00 Thanks for the guidance! I built current main and ran both requested public fixtures.

Environment

  • Commit: a1f2625d (merge PR #1716)
  • CPU: Ryzen 7 9800X3D; RAM: 64 GB DDR5
  • GPU: RTX 5080 (16 GB), NVIDIA driver 596.49 (DXGI 32.0.15.9649)
  • Windows 25H2, build 26200.9711
  • Python 3.12.10; dev build preset
  • D3D12 debug layer: unavailable on both backends, confirmed in separate offscreen_check --compute-root runs.

Results

Fixture Result Duration
startup_vertex_fetch_formats_hardware PASS 8.43 s
startup_vertex_fetch_formats_warp PASS 3.15 s

2 passed, 0 skipped, 0 failed. Both backends validated all 10 buffer formats, 16 vertices per format, with zero readback mismatches. Every wrong reference and all seven deliberate translation mutations were correctly rejected.

The additional compute-root checks also passed on both backends (257 output words, 63 guard words, zero mismatches). WARP reported Microsoft Basic Render Driver, version 10.0.26100.9711.

These are source-built fixture results, not evidence of successful title rendering. Happy to run more public fixtures on the 5080 if useful.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7139818729 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7139818729). Originally posted by [MitchellBrovarnik](https://github.com/MitchellBrovarnik) on 2026-11-24T17:52:03Z. --- @R0Y00 Thanks for the guidance! I built current main and ran both requested public fixtures. **Environment** - Commit: `a1f2625d` (merge PR #1716) - CPU: Ryzen 7 9800X3D; RAM: 64 GB DDR5 - GPU: RTX 5080 (16 GB), NVIDIA driver 596.49 (DXGI 32.0.15.9649) - Windows 25H2, build 26200.9711 - Python 3.12.10; `dev` build preset - D3D12 debug layer: unavailable on both backends, confirmed in separate `offscreen_check --compute-root` runs. **Results** | Fixture | Result | Duration | |---|---|---:| | `startup_vertex_fetch_formats_hardware` | PASS | 8.43 s | | `startup_vertex_fetch_formats_warp` | PASS | 3.15 s | 2 passed, 0 skipped, 0 failed. Both backends validated all 10 buffer formats, 16 vertices per format, with zero readback mismatches. Every wrong reference and all seven deliberate translation mutations were correctly rejected. The additional compute-root checks also passed on both backends (257 output words, 63 guard words, zero mismatches). WARP reported Microsoft Basic Render Driver, version 10.0.26100.9711. These are source-built fixture results, not evidence of successful title rendering. Happy to run more public fixtures on the 5080 if useful.
MasterDomino commented 2026-11-24 18:03:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T17:56:16Z.


Heap-indexed root signature PR: https://github.com/R0Y00/Xbox2Windows/pull/1732. Decision matrix 3222/3222 (two mutated controls fail as expected); startup_root_heap_{warp,hardware} pass with 0 ID 1419 through the stand-in, after a plain-list control reports 1/1/2 for 0x400/0x800/0xC00; startup_root_cbv_* unchanged; ^startup_ 194 passed, 0 failed, 4 capability skips. Real draws under a flagged root stay explicitly refused, as asked.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7139919528 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7139919528). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T17:56:16Z. --- Heap-indexed root signature PR: https://github.com/R0Y00/Xbox2Windows/pull/1732. Decision matrix 3222/3222 (two mutated controls fail as expected); `startup_root_heap_{warp,hardware}` pass with 0 ID 1419 through the stand-in, after a plain-list control reports 1/1/2 for 0x400/0x800/0xC00; `startup_root_cbv_*` unchanged; `^startup_` 194 passed, 0 failed, 4 capability skips. Real draws under a flagged root stay explicitly refused, as asked. AI-assisted.
Lifither commented 2026-11-24 18:03:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T18:02:33Z.


Follow-up to the four log questions. This is from the same 45 s cache-complete RX 590 run at 4aefce632cbc88f07f7f37df5bb5a4daf017a35d. No new run.

  1. There is one periodic render-totals line: 601 resets (0 failed), 601 closes, 301 clears, 300 executes, 898 translated draws (0 not drawn), 4 translated pipelines (0 missing), and 0 texture uploads (0 KiB, 0 unreadable). Null bindings: 0 total, entry 0, buffer 0, token 0, wrapper 0, dimension 0. One early translated draw logs a known format-28 texture view bound to its fourth SRV. Its pixel contents were not measured.

  2. The recorded command-list slot averages were:

9:4.1 12:3.0 14:0.3 20:2.0 21:1.0 22:1.0 23:1.0 24:1.0 25:3.3
32:3.0 33:0.3 34:3.0 35:0.7 36:2.0 44:1.0 47:1.0 48:2.0 50:3.0
52:1.0 70:3.0 71:2.0 72:4.0 74:1.0 75:1.0 126:1.0 131:0.0 132:0.0
139:2.0 142:1.0 146:5.3

The distinct x2w-noop ... CommandList::slotN values actually logged were 14, 24, 33, 35, 70, 71, 72, 74, 75, 126, 131, 132, 142, 146.

  1. There are three blend records. All have color write mask 0xf: creation/base 86/86, blend off (color and alpha 2/1/1); 55/57, blend off (2/1/1); 57/57, blend on (color 2/6/1, alpha 2/1/1). The fourth translated pipeline has no separate blend record that I can attribute from this log.

  2. No additional present-surface readback line follows readback 3. There are already 30 individually logged successful draw submissions before readback 1, across three pipeline keys. The fourth pipeline is logged ready between readbacks 2 and 3. The 898 count is cumulative, so the log cannot split it before and after frame 180.

The next narrow check I see is a fenced readback of a translated draw's target versus the presented surface at the same frame. That would distinguish zero output at the draw from pixels disappearing later. Slot 14 was dropped during this run, but the log does not establish that it produced the texture used by these draws. Codex (GPT-6) assisted with the log analysis.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7140072269 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7140072269). Originally posted by [Lifither](https://github.com/Lifither) on 2026-11-24T18:02:33Z. --- Follow-up to [the four log questions](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7137246795). This is from the same 45 s cache-complete RX 590 run at `4aefce632cbc88f07f7f37df5bb5a4daf017a35d`. No new run. 1. There is one periodic render-totals line: 601 resets (0 failed), 601 closes, 301 clears, 300 executes, 898 translated draws (0 not drawn), 4 translated pipelines (0 missing), and 0 texture uploads (0 KiB, 0 unreadable). Null bindings: 0 total, entry 0, buffer 0, token 0, wrapper 0, dimension 0. One early translated draw logs a known format-28 texture view bound to its fourth SRV. Its pixel contents were not measured. 2. The recorded command-list slot averages were: ```text 9:4.1 12:3.0 14:0.3 20:2.0 21:1.0 22:1.0 23:1.0 24:1.0 25:3.3 32:3.0 33:0.3 34:3.0 35:0.7 36:2.0 44:1.0 47:1.0 48:2.0 50:3.0 52:1.0 70:3.0 71:2.0 72:4.0 74:1.0 75:1.0 126:1.0 131:0.0 132:0.0 139:2.0 142:1.0 146:5.3 ``` The distinct `x2w-noop ... CommandList::slotN` values actually logged were `14, 24, 33, 35, 70, 71, 72, 74, 75, 126, 131, 132, 142, 146`. 3. There are three blend records. All have color write mask `0xf`: creation/base `86/86`, blend off (color and alpha `2/1/1`); `55/57`, blend off (`2/1/1`); `57/57`, blend on (color `2/6/1`, alpha `2/1/1`). The fourth translated pipeline has no separate blend record that I can attribute from this log. 4. No additional present-surface readback line follows readback 3. There are already 30 individually logged successful draw submissions before readback 1, across three pipeline keys. The fourth pipeline is logged ready between readbacks 2 and 3. The 898 count is cumulative, so the log cannot split it before and after frame 180. The next narrow check I see is a fenced readback of a translated draw's target versus the presented surface at the same frame. That would distinguish zero output at the draw from pixels disappearing later. Slot 14 was dropped during this run, but the log does not establish that it produced the texture used by these draws. Codex (GPT-6) assisted with the log analysis.
MasterDomino commented 2026-11-24 19:01:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T18:06:28Z.


Two results from local runs on the RX 9070 XT. The latest run is on main at 9ffb8529 (release build, warm cache). Each input sequence confirms the first-run acceptance page at about 265 s. Captures stay local.

1. run.ps1's default -MemoryGiB 14 stops the run during the post-confirm loading burst

Cap Runs How they ended
14 GiB 4 stopped at 287–291 s with a write or read access violation in title code; storage stand-in reported out-of-memory request failures
32 GiB 3 went past that point; commit peaked at 16.1 GiB

Commit timeline (storage heartbeat, run q):

Time Commit
30 s 11.5 GiB
30–250 s flat, 11.64 → 11.65 GiB (menus)
280 s 14.1 GiB
290 s 16.1 GiB

There is no growth while the menus are up.

Attribution at the menus (startup debugger's X2W_VALLOC_MIN=400000, allocations ≥ 4 MiB by first non-runtime caller):

Owner Commit
title physical-page sections 6.9 GiB
title's own large allocations 3.3 GiB
xmem stand-in 1.3 GiB
audio stand-in 0.45 GiB
placed resources through slot 133 1.0 GiB, most in VRAM

During loading:

  • Large allocations add only about 0.45 GiB, the storage stand-in's per-request staging.
  • Placed resources add 0.01 GiB.
  • The remaining ~2.8 GiB is in allocations under 4 MiB, which this log doesn't attribute.

So the title itself looks to be at roughly 10–13 GiB, and the stand-ins add about 1.7 GiB plus driver overhead. The 14 GiB default leaves no headroom for that.

Suggestion: reports that stop at about 290 s during this burst should say which -MemoryGiB they used. Raising the default may be worth considering; I haven't changed it.

2. End point with 32 GiB: an exception from the package's BVH builder DLL

Run Base End
n 80f413a7 309 s
o 80f413a7 321 s
q 9ffb8529 299 s

All three end in an unhandled C++ exception raised from XboxBvhBuilder.dll, shortly after its archives are opened.

  • The thrown type decodes from the throw info as long, which is consistent with a thrown HRESULT. The value isn't captured.
  • On screen from confirm to the end: a single flat colour, RGB (32, 32, 44), with all 18 pipelines translated and 0 draws not drawn. No cutscene in this configuration.
  • Not established: the cause. Candidates are missing BVH data from the refused storage requests (#1198 has the breakdown), a failing call, or memory.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7140167239 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7140167239). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T18:06:28Z. --- Two results from local runs on the RX 9070 XT. The latest run is on `main` at `9ffb8529` (release build, warm cache). Each input sequence confirms the first-run acceptance page at about 265 s. Captures stay local. ## 1. `run.ps1`'s default `-MemoryGiB 14` stops the run during the post-confirm loading burst | Cap | Runs | How they ended | |---|---|---| | 14 GiB | 4 | stopped at 287–291 s with a write or read access violation in title code; storage stand-in reported out-of-memory request failures | | 32 GiB | 3 | went past that point; commit peaked at 16.1 GiB | **Commit timeline** (storage heartbeat, run q): | Time | Commit | |---|---| | 30 s | 11.5 GiB | | 30–250 s | flat, 11.64 → 11.65 GiB (menus) | | 280 s | 14.1 GiB | | 290 s | 16.1 GiB | There is no growth while the menus are up. **Attribution at the menus** (startup debugger's `X2W_VALLOC_MIN=400000`, allocations ≥ 4 MiB by first non-runtime caller): | Owner | Commit | |---|---| | title physical-page sections | 6.9 GiB | | title's own large allocations | 3.3 GiB | | xmem stand-in | 1.3 GiB | | audio stand-in | 0.45 GiB | | placed resources through slot 133 | 1.0 GiB, most in VRAM | During loading: - Large allocations add only about 0.45 GiB, the storage stand-in's per-request staging. - Placed resources add 0.01 GiB. - The remaining ~2.8 GiB is in allocations under 4 MiB, which this log doesn't attribute. So the title itself looks to be at roughly 10–13 GiB, and the stand-ins add about 1.7 GiB plus driver overhead. The 14 GiB default leaves no headroom for that. **Suggestion:** reports that stop at about 290 s during this burst should say which `-MemoryGiB` they used. Raising the default may be worth considering; I haven't changed it. ## 2. End point with 32 GiB: an exception from the package's BVH builder DLL | Run | Base | End | |---|---|---| | n | `80f413a7` | 309 s | | o | `80f413a7` | 321 s | | q | `9ffb8529` | 299 s | All three end in an unhandled C++ exception raised from `XboxBvhBuilder.dll`, shortly after its archives are opened. - **The thrown type** decodes from the throw info as `long`, which is consistent with a thrown HRESULT. The value isn't captured. - **On screen** from confirm to the end: a single flat colour, RGB (32, 32, 44), with all 18 pipelines translated and 0 draws not drawn. No cutscene in this configuration. - **Not established:** the cause. Candidates are missing BVH data from the refused storage requests (#1198 has the breakdown), a failing call, or memory. AI-assisted.
MasterDomino commented 2026-11-24 19:01:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T18:10:31Z.


Opened #1758 for the end point after the post-confirm load: an unhandled C++ exception from the package's BVH builder DLL, first reported here by @triggered02 and now reproduced on an RX 9070 XT on current main. It collects the evidence, and I've offered to take the local measurement (thrown HRESULT value, caller chain, storage inputs) there.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7140265743 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7140265743). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T18:10:31Z. --- Opened #1758 for the end point after the post-confirm load: an unhandled C++ exception from the package's BVH builder DLL, first reported here by @triggered02 and now reproduced on an RX 9070 XT on current main. It collects the evidence, and I've offered to take the local measurement (thrown HRESULT value, caller chain, storage inputs) there. AI-assisted.
R0Y00 commented 2026-11-24 19:01:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T18:16:53Z.


Local Windows follow-up on startup latency and first-run audio. The runtime inputs and saved settings matched across the two diagnostic launches (681 prepared files). With the ordinary Windows heap enabled, first window capture was at 7.40 s versus 30.14 s, and first movie open at 86.72 s versus 132.98 s. One run per setting. Reproduction notes and measurement scope are in #1765.

The opening audio was audible. In the same process-loopback capture, ten acknowledged Down presses on the language menu had continuous packet coverage. Every post-press window peaked at one signed-16-bit step (about -90 dBFS), matching the idle windows. The intro peaked near -24 dBFS. Other menu actions remain unmeasured. #1763 provides the synthetic comparison and analysis tool. The missing central brightness-calibration symbol is still open locally.

The colors/depth fixture in #1762 is independently reproducible. The diagnostic run did not capture the target scene draw with its input layout and depth attachment, so the fixture alone does not establish a scene-rendering fix.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7140419415 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7140419415). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T18:16:53Z. --- Local Windows follow-up on startup latency and first-run audio. The runtime inputs and saved settings matched across the two diagnostic launches (681 prepared files). With the ordinary Windows heap enabled, first window capture was at 7.40 s versus 30.14 s, and first movie open at 86.72 s versus 132.98 s. One run per setting. Reproduction notes and measurement scope are in #1765. The opening audio was audible. In the same process-loopback capture, ten acknowledged Down presses on the language menu had continuous packet coverage. Every post-press window peaked at one signed-16-bit step (about -90 dBFS), matching the idle windows. The intro peaked near -24 dBFS. Other menu actions remain unmeasured. #1763 provides the synthetic comparison and analysis tool. The missing central brightness-calibration symbol is still open locally. The colors/depth fixture in #1762 is independently reproducible. The diagnostic run did not capture the target scene draw with its input layout and depth attachment, so the fixture alone does not establish a scene-rendering fix.
R0Y00 commented 2026-11-24 19:01:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T18:16:53Z.


P0 work to get the main executable past loading

  • Identify the first failure after acceptance: #1758 measurement task. On the reported RX 9070 XT configuration, 14 GiB runs stopped earlier during the storage burst. Runs with a 32 GiB cap passed that point and then hit the BVH builder exception. The thrown value and its first failing call or missing input still need to be identified. Include the cap and peak commit so the two endpoints stay separate.
  • Make storage outcomes comparable: #1198 counter task. Existing request results stay in place. The new aggregate counts should make it possible to correlate capacity, decode and EOF failures with the loading endpoint.
  • Continue rendering evidence in parallel: #1629 already has a claim and draft #1725 for the screen-position input metadata. #1732 is on main at 48d9571d; the translated root-signature fixtures and existing CBV/draw controls passed 9/9 in an independent Windows Release run. These fixtures do not establish scene output or character control in the executable.

Please use the linked issues for claims and only post sanitized observations or source-built evidence.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7140419532 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7140419532). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T18:16:53Z. --- ### P0 work to get the main executable past loading - **Identify the first failure after acceptance:** [#1758 measurement task](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7140389448). On the reported RX 9070 XT configuration, 14 GiB runs stopped earlier during the storage burst. Runs with a 32 GiB cap passed that point and then hit the BVH builder exception. The thrown value and its first failing call or missing input still need to be identified. Include the cap and peak commit so the two endpoints stay separate. - **Make storage outcomes comparable:** [#1198 counter task](https://github.com/R0Y00/Xbox2Windows/issues/1198#issuecomment-7140391241). Existing request results stay in place. The new aggregate counts should make it possible to correlate capacity, decode and EOF failures with the loading endpoint. - **Continue rendering evidence in parallel:** #1629 already has a claim and draft #1725 for the screen-position input metadata. #1732 is on main at 48d9571d; the translated root-signature fixtures and existing CBV/draw controls passed 9/9 in an independent Windows Release run. These fixtures do not establish scene output or character control in the executable. Please use the linked issues for claims and only post sanitized observations or source-built evidence.
Lifither commented 2026-11-24 19:01:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T18:48:53Z.


Independent Polaris retest of the public vertex-fetch fixture on c23e3ffe9d14c1422ed9bdf4fdea74a4a7326fe9.

  • Windows 11 x64 build 26300.9974. Hardware: Radeon RX 590 Series (1002:67df), driver 31.0.21923.1000. WARP: Microsoft Basic Render Driver, version 10.0.26100.9818.
  • D3D12 debug layer reported unavailable in a separate adapter check with the same executable and adapter selection.
  • Release build of offscreen_check using Ninja, clang-cl 23.1.6 targeting x64 MSVC with /EHa, Windows SDK 10.0.26100, and DXC 1.9.2609.5.
cmake --build <build> --target offscreen_check
$env:XBOX2WINDOWS_ADAPTER = 'RX 590'
ctest --test-dir <build> --no-tests=error -R '^startup_vertex_fetch_formats_(controls|hardware|warp)$' -V
Test Result Time
startup_vertex_fetch_formats_controls PASS 0.24 s
startup_vertex_fetch_formats_hardware PASS 7.25 s
startup_vertex_fetch_formats_warp PASS 4.61 s

Three passes, zero failures, zero skips. Both backends checked 10 formats with 16 vertices per format and 320 compared words per format, with zero mismatches. Every wrong reference and all seven shader mutations were rejected as expected on both backends.

Source-built fixture only. Codex assisted with the build, test run and report.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7141189358 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7141189358). Originally posted by [Lifither](https://github.com/Lifither) on 2026-11-24T18:48:53Z. --- Independent Polaris retest of the [public vertex-fetch fixture](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7139624164) on `c23e3ffe9d14c1422ed9bdf4fdea74a4a7326fe9`. - Windows 11 x64 build 26300.9974. Hardware: Radeon RX 590 Series (1002:67df), driver 31.0.21923.1000. WARP: Microsoft Basic Render Driver, version 10.0.26100.9818. - D3D12 debug layer reported unavailable in a separate adapter check with the same executable and adapter selection. - Release build of `offscreen_check` using Ninja, clang-cl 23.1.6 targeting x64 MSVC with `/EHa`, Windows SDK 10.0.26100, and DXC 1.9.2609.5. ```powershell cmake --build <build> --target offscreen_check $env:XBOX2WINDOWS_ADAPTER = 'RX 590' ctest --test-dir <build> --no-tests=error -R '^startup_vertex_fetch_formats_(controls|hardware|warp)$' -V ``` | Test | Result | Time | | --- | --- | ---: | | `startup_vertex_fetch_formats_controls` | PASS | 0.24 s | | `startup_vertex_fetch_formats_hardware` | PASS | 7.25 s | | `startup_vertex_fetch_formats_warp` | PASS | 4.61 s | Three passes, zero failures, zero skips. Both backends checked 10 formats with 16 vertices per format and 320 compared words per format, with zero mismatches. Every wrong reference and all seven shader mutations were rejected as expected on both backends. Source-built fixture only. Codex assisted with the build, test run and report.
R0Y00 commented 2026-11-24 19:01:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T18:52:14Z.


P0 loading follow-up: the matched community runs in #1758 now isolate two sequential failures. The first is the BVH destination address exceeding the builder's 40-bit limit. A local low-address experiment passed that check and reached a later failure where command-list slot 148 returned no upload memory. Both failures were reproduced twice on the reported RX 9070 XT. The open work is the address-placement contract and the guest upload slot/lifetime check using the existing #1774 arena. The local experiment has not established a rendered 3D scene.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7141267194 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7141267194). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T18:52:14Z. --- P0 loading follow-up: the [matched community runs in #1758](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141035594) now isolate two sequential failures. The first is the BVH destination address exceeding the builder's 40-bit limit. A local low-address experiment passed that check and reached a later failure where command-list slot 148 returned no upload memory. Both failures were reproduced twice on the reported RX 9070 XT. The open work is the address-placement contract and the guest upload slot/lifetime check using the existing #1774 arena. The local experiment has not established a rendered 3D scene.
Lifither commented 2026-11-24 20:01:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T19:59:00Z.


RX 590 startup follow-up on 0631667dd20370ea7da3eeb9582bce32fba66114. Windows 11 x64 build 26300.9974, Radeon RX 590 driver 31.0.21923.1000, Release with clang-cl 23.1.6 and /EHa. The runs used the offline AppContainer and a cache compiled with FXC from the four requests emitted by this build.

The 45-second run loaded all four translated pipelines. The last render heartbeat reported 2,674 translated draws and zero omitted draws. All three early presented-surface readbacks reported mean RGB 0.00/255, and the final window capture was black.

I then ran two 12-second diagnostics on the same runtime, using X2W_DRAW_DUMP_FRAME=60 for fence-completed GPU readbacks:

Measurement Unmodified shader cache Color control
First captured draw target Entirely black Entirely black
Target after the color-multiply draw Entirely black All 8,294,400 pixels green
Target after the following textured draw Entirely black All 8,294,400 pixels green
Presented-surface readback mean 0.00/255 in both available samples 85.00/255 in all three samples

In the four logged original bindings, the 16 bytes at offset 32 of the buffer read by the color-multiply pixel shader were all zero. The control substituted a constant (0, 1, 0, 1) for those four loads in a separate compiled shader-cache copy. The existing vertex shader, interpolated color, texture sampling and presentation path were used in both runs.

The control shows that this early draw can produce color and that the following textured draw and presenter can carry it through on the RX 590. The zero values explain the observed shader output in the logged cases. Whether those values are an intentional black fill or the result of missing or incorrect input data remains open. A useful follow-up is to identify the writer of those bytes and compare the bound range with what the draw expects. Menu rendering remains unverified. This is a diagnostic substitution on the recorded commit.

Codex assisted with testing and analysis.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7142877148 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7142877148). Originally posted by [Lifither](https://github.com/Lifither) on 2026-11-24T19:59:00Z. --- RX 590 startup follow-up on `0631667dd20370ea7da3eeb9582bce32fba66114`. Windows 11 x64 build 26300.9974, Radeon RX 590 driver 31.0.21923.1000, Release with clang-cl 23.1.6 and `/EHa`. The runs used the offline AppContainer and a cache compiled with FXC from the four requests emitted by this build. The 45-second run loaded all four translated pipelines. The last render heartbeat reported 2,674 translated draws and zero omitted draws. All three early presented-surface readbacks reported mean RGB 0.00/255, and the final window capture was black. I then ran two 12-second diagnostics on the same runtime, using `X2W_DRAW_DUMP_FRAME=60` for fence-completed GPU readbacks: | Measurement | Unmodified shader cache | Color control | | --- | --- | --- | | First captured draw target | Entirely black | Entirely black | | Target after the color-multiply draw | Entirely black | All 8,294,400 pixels green | | Target after the following textured draw | Entirely black | All 8,294,400 pixels green | | Presented-surface readback mean | 0.00/255 in both available samples | 85.00/255 in all three samples | In the four logged original bindings, the 16 bytes at offset 32 of the buffer read by the color-multiply pixel shader were all zero. The control substituted a constant (0, 1, 0, 1) for those four loads in a separate compiled shader-cache copy. The existing vertex shader, interpolated color, texture sampling and presentation path were used in both runs. The control shows that this early draw can produce color and that the following textured draw and presenter can carry it through on the RX 590. The zero values explain the observed shader output in the logged cases. Whether those values are an intentional black fill or the result of missing or incorrect input data remains open. A useful follow-up is to identify the writer of those bytes and compare the bound range with what the draw expects. Menu rendering remains unverified. This is a diagnostic substitution on the recorded commit. Codex assisted with testing and analysis.
R0Y00 commented 2026-11-24 21:01:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T20:36:06Z.


The fence-completed green control narrows the RX 590 result to the input of the colour-multiply draw. The zero binding could be an intentional black fill or missing input data.

Open for one follow-up in this RX 590 comparison: identify which producer last wrote the bound range and whether that range was visible after its submission fence. Please use a source-only example with two distinct colour regions and a producer that writes the intended region before drawing. Binding the neighbouring or stale range should change the readback. The per-draw capture from #1642 can be reused. Report writer class, range relationship, order and the sampled outcomes; keep original executable data, addresses and dumps local. #1629 still tracks the separate packed-position metadata question.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7143797809 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7143797809). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T20:36:06Z. --- The fence-completed green control narrows the RX 590 result to the input of the colour-multiply draw. The zero binding could be an intentional black fill or missing input data. Open for one follow-up in this RX 590 comparison: identify which producer last wrote the bound range and whether that range was visible after its submission fence. Please use a source-only example with two distinct colour regions and a producer that writes the intended region before drawing. Binding the neighbouring or stale range should change the readback. The per-draw capture from #1642 can be reused. Report writer class, range relationship, order and the sampled outcomes; keep original executable data, addresses and dumps local. #1629 still tracks the separate packed-position metadata question.
R0Y00 commented 2026-11-24 23:03:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T22:50:47Z.


The source-built bound-range writer comparison in #1991 is on main. I ran the Release startup_range_provenance tests on WARP and RTX 4060 Laptop, 2/2 with no skips. Binding the neighbouring range or moving the rewrite ahead of the consumer changes the sampled result. A clear-to-zero and a never-written window produce identical pixels, so the RX 590 follow-up still needs the last writer and its fence for the actual bound byte range. The fixture does not reproduce that startup run.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7146712545 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7146712545). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T22:50:47Z. --- The source-built bound-range writer comparison in #1991 is on main. I ran the Release `startup_range_provenance` tests on WARP and RTX 4060 Laptop, 2/2 with no skips. Binding the neighbouring range or moving the rewrite ahead of the consumer changes the sampled result. A clear-to-zero and a never-written window produce identical pixels, so the RX 590 follow-up still needs the last writer and its fence for the actual bound byte range. The fixture does not reproduce that startup run.
mumba17 commented 2026-11-24 23:54:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-24T23:54:50Z.


Past acceptance: frames render after confirm (with one local slot 148 stand-in)

Sanitized report: no captures, names or internals are attached. Screenshots stay local.

Setup

Build main at 06cdc47d + #2058, release
Machine Windows 11 build 26300, RTX 3090 (driver 32.0.16.1664), Ryzen 5 5600X
Launch run.ps1 -Render -FakeUser -GpuMirror -StartupBelow40 -MemoryGiB 24, offline
Cache Warm: 100 pipelines translated before the run. The first run on this main recorded new keys.
Input One fixed input script through first-run setup and the acceptance page

1. Stock main (run 16)

  • Acceptance: after confirming it, -StartupBelow40 (#1860) gets the first build batch past the 40-bit check.
  • Stop: the run then stops at 90.5 s on the builder's Failed to allocate upload buffer, the slot 148 stop from #1758.

2. Same build plus one local diagnostic: a stand-in for command-list slot 148 (run 17)

The stand-in:

  • It is a bump allocator that returns a CPU pointer for (list, size, alignment).
  • It does no GPU-address translation or lifetime handling. It is not a proposed fix: production wiring stays with #1774.

What happens:

  • Builder: it completes, with no builder exception.
  • Audio: XDsp activation now returns XDSP_E_NO_DEVICE_RESOURCES (#1907), and the title continues. On the older stub this was the null-handle fault I reported on #1758.
  • Rendering: about 60 s after acceptance the title renders frames again, 2D layers only, at about 25 fps. The window diagnostics read frame 4,320 and 55,204 translated draws.
  • Visible defect: 2D layers that should replace each other overlap and stay on screen.
  • Missing pipelines: most of the frame's other draws wait on pipelines not yet in the cache.
  • Still running at 200 s: about 24 fps, 67,000 translated draws and 478,649 not drawn, 12 pipelines translated against 173 missing in this phase.

Storage failures by cause at 200 s (#1781): capacity 3,706, BCPack 318, zlib 7, at or past EOF 2, other 1.

Memory: peak process commit is 24.3 GiB against the 24 GiB cap. A longer run needs a higher cap; I'll add that run's end point here.

Next locally

  • Translate the 173 new requests and rerun with a higher cap and a longer timeout.
  • Separately: in my cache, 16 slot 57 requests arrive with their two stages in the opposite order. With the order swapped back and #2058, they translate. I'll file that as its own issue.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147932392 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147932392). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-24T23:54:50Z. --- ## Past acceptance: frames render after confirm (with one local slot 148 stand-in) Sanitized report: no captures, names or internals are attached. Screenshots stay local. **Setup** | | | |---|---| | Build | `main` at `06cdc47d` + #2058, release | | Machine | Windows 11 build 26300, RTX 3090 (driver 32.0.16.1664), Ryzen 5 5600X | | Launch | `run.ps1 -Render -FakeUser -GpuMirror -StartupBelow40 -MemoryGiB 24`, offline | | Cache | Warm: 100 pipelines translated before the run. The first run on this `main` recorded new keys. | | Input | One fixed input script through first-run setup and the acceptance page | ### 1. Stock `main` (run 16) - **Acceptance:** after confirming it, `-StartupBelow40` (#1860) gets the first build batch past the 40-bit check. - **Stop:** the run then stops at **90.5 s** on the builder's `Failed to allocate upload buffer`, the slot 148 stop from #1758. ### 2. Same build plus one local diagnostic: a stand-in for command-list slot 148 (run 17) **The stand-in:** - It is a bump allocator that returns a CPU pointer for `(list, size, alignment)`. - It does no GPU-address translation or lifetime handling. It is not a proposed fix: production wiring stays with #1774. **What happens:** - **Builder:** it completes, with no builder exception. - **Audio:** XDsp activation now returns `XDSP_E_NO_DEVICE_RESOURCES` (#1907), and the title continues. On the older stub this was the null-handle fault I reported on #1758. - **Rendering:** about 60 s after acceptance the title **renders frames again**, 2D layers only, at about 25 fps. The window diagnostics read frame 4,320 and 55,204 translated draws. - **Visible defect:** 2D layers that should replace each other overlap and stay on screen. - **Missing pipelines:** most of the frame's other draws wait on pipelines not yet in the cache. - **Still running at 200 s:** about 24 fps, 67,000 translated draws and 478,649 not drawn, 12 pipelines translated against 173 missing in this phase. **Storage failures by cause at 200 s** (#1781): capacity 3,706, BCPack 318, zlib 7, at or past EOF 2, other 1. **Memory:** peak process commit is 24.3 GiB against the 24 GiB cap. A longer run needs a higher cap; I'll add that run's end point here. ### Next locally - Translate the 173 new requests and rerun with a higher cap and a longer timeout. - Separately: in my cache, 16 slot 57 requests arrive with their two stages in the opposite order. With the order swapped back and #2058, they translate. I'll file that as its own issue. AI-assisted (Claude Code).
Lifither commented 2026-11-25 01:01:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T23:06:02Z.


RX 590 follow-up: independent source-built #1991 fixture check on 06a494c81c215ad17cdca56b75f338ad048efb34 (Release, clang-cl 23.1.6, /EHa). Windows 11 x64 26300.9974; Radeon RX 590 driver 31.0.21923.1000; WARP 10.0.26100.9818. The D3D12 debug layer was unavailable on both.

cmake --build <build> --target offscreen_check
$env:XBOX2WINDOWS_ADAPTER = 'RX 590'
ctest --test-dir <build> --no-tests=error -V -R '^startup_range_provenance'

Both startup_range_provenance_hardware and startup_range_provenance_warp passed, with no skips. On each backend all five cases had 0/64 sampled and 0/256 store mismatches; both negative controls produced the expected 64/64 mismatches. Producer fence completion was reported for each case. The clear and never-written cases both sampled zero, so this fixture does not identify the writer or establish fence visibility for the earlier RX 590 startup range. That investigation remains open.

Codex assisted with the build, test and report.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147012765 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147012765). Originally posted by [Lifither](https://github.com/Lifither) on 2026-11-24T23:06:02Z. --- RX 590 follow-up: independent source-built #1991 fixture check on `06a494c81c215ad17cdca56b75f338ad048efb34` (Release, clang-cl 23.1.6, `/EHa`). Windows 11 x64 26300.9974; Radeon RX 590 driver 31.0.21923.1000; WARP 10.0.26100.9818. The D3D12 debug layer was unavailable on both. ```powershell cmake --build <build> --target offscreen_check $env:XBOX2WINDOWS_ADAPTER = 'RX 590' ctest --test-dir <build> --no-tests=error -V -R '^startup_range_provenance' ``` Both `startup_range_provenance_hardware` and `startup_range_provenance_warp` passed, with no skips. On each backend all five cases had 0/64 sampled and 0/256 store mismatches; both negative controls produced the expected 64/64 mismatches. Producer fence completion was reported for each case. The clear and never-written cases both sampled zero, so this fixture does not identify the writer or establish fence visibility for the earlier RX 590 startup range. That investigation remains open. Codex assisted with the build, test and report.
R0Y00 commented 2026-11-25 01:01:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T23:26:24Z.


Thanks for the repeated Windows 10 / GTX 1050 Ti result. This is a separate, earlier stop from the post-confirm slot 148 runs. The Present count is useful timing evidence. Please replace the raw register, stack and instruction excerpt with a short summary.

For the next bounded comparison, capture the last successful call that produces an object or view and the first failing call immediately before the stop. Report the caller-visible HRESULT and whether the output was null or unchanged. Match two runs of the same build and settings, and keep offsets and raw logs local. The slot 70 refusal counts are candidate leads, so a source-built follow-up should first tie one specific refusal or unwritten output to the observed stop.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147401585 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147401585). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T23:26:24Z. --- Thanks for the repeated Windows 10 / GTX 1050 Ti result. This is a separate, earlier stop from the post-confirm slot 148 runs. The Present count is useful timing evidence. Please replace the raw register, stack and instruction excerpt with a short summary. For the next bounded comparison, capture the last successful call that produces an object or view and the first failing call immediately before the stop. Report the caller-visible HRESULT and whether the output was null or unchanged. Match two runs of the same build and settings, and keep offsets and raw logs local. The slot 70 refusal counts are candidate leads, so a source-built follow-up should first tie one specific refusal or unwritten output to the observed stop.
Lifither commented 2026-11-25 01:01:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T23:32:55Z.


RX 590 follow-up to the bound-range question. One 12 s offline diagnostic run with local instrumentation on historical base 0631667dd20370ea7da3eeb9582bce32fba66114. Windows 11 x64 build 26300.9974, Radeon RX 590 driver 31.0.21923.1000, Release with clang-cl 23.1.6 and /EHa. The D3D12 debug layer was not enabled for this run.

  • Last observed CPU write: A write watchpoint armed before one later colour-multiply draw caught a C-runtime copy into both halves of the 16-byte source window that the runtime then copied into the draw’s bound upload buffer. The copy came from a different memory range. The source was sampled after the hit and contained zeros at that point.
  • Readback: The runtime's CPU snapshot of that window contained 16/16 zero bytes. A copy of the same upload-ring slice, recorded after the draw on the same command list, returned 16/16 zero bytes after the executing queue's readback fence completed.
  • Controls: Four separate source-built diagnostic cases (changed and unchanged input on RX 590 and on WARP) matched both the expected red/blue upload bytes and pixels. The public #1991 fixture results and commands are a separate check.

The CPU copy has no GPU producer fence of its own. The measured fence covers the draw and readback submission. The original producer of the copied zeros, its synchronization before the CPU copy, and whether those values were intended are still open. The observation covers one window in the instrumented run.

Codex assisted with instrumentation, testing and review.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147524664 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147524664). Originally posted by [Lifither](https://github.com/Lifither) on 2026-11-24T23:32:55Z. --- RX 590 follow-up to the [bound-range question](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7146712545). One 12 s offline diagnostic run with local instrumentation on historical base `0631667dd20370ea7da3eeb9582bce32fba66114`. Windows 11 x64 build 26300.9974, Radeon RX 590 driver 31.0.21923.1000, Release with clang-cl 23.1.6 and `/EHa`. The D3D12 debug layer was not enabled for this run. - **Last observed CPU write:** A write watchpoint armed before one later colour-multiply draw caught a C-runtime copy into both halves of the 16-byte source window that the runtime then copied into the draw’s bound upload buffer. The copy came from a different memory range. The source was sampled after the hit and contained zeros at that point. - **Readback:** The runtime's CPU snapshot of that window contained 16/16 zero bytes. A copy of the same upload-ring slice, recorded after the draw on the same command list, returned 16/16 zero bytes after the executing queue's readback fence completed. - **Controls:** Four separate source-built diagnostic cases (changed and unchanged input on RX 590 and on WARP) matched both the expected red/blue upload bytes and pixels. The [public #1991 fixture results and commands](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147012765) are a separate check. The CPU copy has no GPU producer fence of its own. The measured fence covers the draw and readback submission. The original producer of the copied zeros, its synchronization before the CPU copy, and whether those values were intended are still open. The observation covers one window in the instrumented run. Codex assisted with instrumentation, testing and review.
charliejeanes1-debug commented 2026-11-25 01:01:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by charliejeanes1-debug on 2026-11-24T23:34:17Z.


Thanks for the repeated Windows 10 / GTX 1050 Ti result. This is a separate, earlier stop from the post-confirm slot 148 runs. The Present count is useful timing evidence. Please replace the raw register, stack and instruction excerpt with a short summary.

For the next bounded comparison, capture the last successful call that produces an object or view and the first failing call immediately before the stop. Report the caller-visible HRESULT and whether the output was null or unchanged. Match two runs of the same build and settings, and keep offsets and raw logs local. The slot 70 refusal counts are candidate leads, so a source-built follow-up should first tie one specific refusal or unwritten output to the observed stop.

Thanks for the reply, and sorry, I'm fairly new to this and still learning the terms, so please bear with me. I'm keen to help where I can. I've edited my earlier comment to replace the raw register/stack/instruction dump with a summary, and I'll keep offsets and raw logs local from now on.

Summary
Second-chance access violation (null object read) in the main executable, 8.6–9.7 s after launch, with 133–134 frames presented beforehand (~26.7 fps). Same stop in 16 runs.

  • Commit 0d20c5e2, Windows 10 Pro 19045, GTX 1050 Ti (driver 32.0.15.8228), Ryzen 7 3800X, 32 GB
  • run.ps1 -Seconds 180 -MemoryGiB 14 -ContinueAsserts 1000 -InputScript 4@70 -Render -FakeUser -GpuMirror -StartupBelow40, package root mounted as G:\

Comparison: three runs, same build and settings (8.8 s, 8.9 s and 11.9 s stops)
My best reading of the logs, which I may have wrong:

  • Last successful calls before the stop: two storage stand-in Factory::OpenFile calls, the core licenses pack and then the main executable itself. Both return ok (err 0), about 1.0 s and 0.5 s before the stop.
  • Last object-producing call: a batch of Device::slot133 placed resources about 2 s before the stop. All return 0x00000000 (S_OK), outputs written.
  • First failing call immediately before the stop: I couldn't find one. There's no failing HRESULT in the stand-in output between those opens and the stop.
  • Earlier failures (all within the first ~4 s):
    • the slot70 refusals listed in the triage
    • one CreateCommandSignature returning 0x80070057, replaced by a placeholder
    • two XMemAlloc refusals that fell back to process memory

One thing I noticed, in case it's useful: in all three runs the last x2w-dstorage "read batch complete" line is at ~3–5 s (4201 chunks, 0 failed). There's no batch-complete line after the two opens above, so I'm not sure their reads finished before the stop.

If you can tell me which log line or setting to capture next (for example whether a particular output was null or unchanged), I'm happy to run it again and report back. Thanks for your patience.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147550487 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147550487). Originally posted by [charliejeanes1-debug](https://github.com/charliejeanes1-debug) on 2026-11-24T23:34:17Z. --- > Thanks for the repeated Windows 10 / GTX 1050 Ti result. This is a separate, earlier stop from the post-confirm slot 148 runs. The Present count is useful timing evidence. Please replace the raw register, stack and instruction excerpt with a short summary. > > For the next bounded comparison, capture the last successful call that produces an object or view and the first failing call immediately before the stop. Report the caller-visible HRESULT and whether the output was null or unchanged. Match two runs of the same build and settings, and keep offsets and raw logs local. The slot 70 refusal counts are candidate leads, so a source-built follow-up should first tie one specific refusal or unwritten output to the observed stop. Thanks for the reply, and sorry, I'm fairly new to this and still learning the terms, so please bear with me. I'm keen to help where I can. I've edited my earlier comment to replace the raw register/stack/instruction dump with a summary, and I'll keep offsets and raw logs local from now on. **Summary** Second-chance access violation (null object read) in the main executable, 8.6–9.7 s after launch, with 133–134 frames presented beforehand (~26.7 fps). Same stop in 16 runs. - Commit `0d20c5e2`, Windows 10 Pro 19045, GTX 1050 Ti (driver 32.0.15.8228), Ryzen 7 3800X, 32 GB - `run.ps1 -Seconds 180 -MemoryGiB 14 -ContinueAsserts 1000 -InputScript 4@70 -Render -FakeUser -GpuMirror -StartupBelow40`, package root mounted as `G:\` **Comparison: three runs, same build and settings (8.8 s, 8.9 s and 11.9 s stops)** My best reading of the logs, which I may have wrong: - **Last successful calls before the stop:** two storage stand-in `Factory::OpenFile` calls, the core licenses pack and then the main executable itself. Both return ok (err 0), about 1.0 s and 0.5 s before the stop. - **Last object-producing call:** a batch of `Device::slot133` placed resources about 2 s before the stop. All return `0x00000000` (S_OK), outputs written. - **First failing call immediately before the stop:** I couldn't find one. There's no failing HRESULT in the stand-in output between those opens and the stop. - **Earlier failures (all within the first ~4 s):** - the `slot70` refusals listed in the triage - one `CreateCommandSignature` returning `0x80070057`, replaced by a placeholder - two `XMemAlloc` refusals that fell back to process memory One thing I noticed, in case it's useful: in all three runs the last `x2w-dstorage` "read batch complete" line is at ~3–5 s (4201 chunks, 0 failed). There's no batch-complete line after the two opens above, so I'm not sure their reads finished before the stop. If you can tell me which log line or setting to capture next (for example whether a particular output was null or unchanged), I'm happy to run it again and report back. Thanks for your patience.
charliejeanes1-debug commented 2026-11-25 01:01:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by charliejeanes1-debug on 2026-11-24T23:18:33Z.


Startup run: second-chance stop at game_scarlett_master.exe+0xb5a5f8 after 9.68 s

Same stop in 11 run(s); 134 frames presented before it. Offline run through tools/startup/run.ps1, package root mounted as G:\.

  • Commit: a0bc0f9a (2026-11-25)
  • Command: run.ps1 -Exe G:\game_scarlett_master.exe -DataDir G:\ -Seconds 180 -MemoryGiB 14 -ContinueAsserts 1000 -InputScript 4@70 -Render -FakeUser -GpuMirror -StartupBelow40
  • Title build: 1.0.2.1 (MicrosoftGame.config)
  • Environment: Microsoft Windows 10 Pro build 19045, NVIDIA GeForce GTX 1050 Ti (driver 32.0.15.8228), AMD Ryzen 7 3800X 8-Core Processor, 32 GB RAM

Stop report

stopped at access violation (0xc0000005) at game_scarlett_master.exe+0xb5a5f8 after 9.68 s (second chance) params=['0x0', '0x68']
  rax=0x0 rcx=0x0 rdx=0x0 rbx=0x3 rsp=0xae44afeca0 rbp=0x13f rsi=0xae44afed68 rdi=0xae44afee10 r8=0xffffffff00000000 r9=0xffffffff00000000 r10=0x7ff78c431fc8 r11=0x22c1bc59e70 r12=0x22c19a0ba78 r13=0x0 r14=0x0 r15=0x651e95c4d06fbfb1 rip=0x7ff785dca5f8
  stack: 0xae44afedc4 game_scarlett_master.exe+0x18194c7 0x1 0x22c9ccc5100 0x22ca686bf20 0x3 0x3 game_scarlett_master.exe+0x75b30f8 0xae44afedc4 0x0 0x0 0x3 0x13f 0xae44afee10 0x22c19a0b770 0x22c19a0ba78
  return addresses:
  region base=0x0 alloc=0x0 size=0x1600000 state=0x10000 protect=0x1 type=0x0
  code at rip-32: 56 57 55 53 48 83 ec 58 48 8b 01 48 89 ce 48 8b 49 08 49 bf b1 bf 6f d0 c4 95 1e 65 88 54 24 2f 4c 8b 70 68 48 85 c9 0f 85 f0 06 00 00 31 ff 80
  offline: 2 network opens refused (\Device\Afd\Endpoint x2)
  window capture: 1600x900 -> window.png (client area as on screen; title text length 107)
modules loaded: 133
Triage (tools/startup/triage_run.py)

Startup Run Triage Summary

  • Log files scanned: 6
  • slot70 memory SRV refusals: 8 (5 unique)
  • x2w-d3d12 / trap slot events: 126 (44 unique)
  • x2w-d3d12-debug messages: 0 (0 unique)
  • x2w-dstorage failures: 0 (0 unique)
  • x2w-runtime failing calls: 0 (0 unique)
  • X2W_SHADER_CACHE .fail shaders: 0 (0 unique reasons)

Device::slot70 Memory SRV Refusals

Count Reason Res Dim Res Fmt View Dim View Fmt Layout Flags
3 unsupported_description 3 28 4 28 0x0 0x300000
2 buffer_unavailable 1 0 1 57 0x1 0x0
1 texture_unavailable 3 61 4 61 0x0 0x300000
1 buffer_unavailable 1 0 1 39 0x1 0x0
1 unsupported_description 3 30 4 30 0x0 0x300000

Unhandled / Stubbed x2w-d3d12 & Trap Calls

Count Call / Slot
24 Device::slot62
8 Device::slot86
4 Device::slot36
4 Device::slot48
4 Device::slot9
4 Device::slot73
4 Device::slot79
4 Device::slot39
4 Device::slot27
4 Device::slot41
4 Device::slot80
3 Device::slot78
3 Device::slot18
3 Device::slot19
3 Device::slot20
3 x2w-noop other (text omitted)
Showing top 16 of 44 unique entries (126 total events).

Device::slot133 Placed Resources

Count Outcome
4 aliased
12 not_aliased

x2w-dstorage Failures & Status HRESULTs

None observed.

x2w-runtime Failing Methods

None observed.

X2W_SHADER_CACHE .fail Reasons

None observed.

Last debugger events
  6.250 thread 16596 created
  6.278 thread 20164 created
  6.286 thread 20304 created
  6.327 thread 6624 created
  6.347 thread 8376 created
  6.359 thread 25760 created
  6.399 thread 24896 created
  6.470 thread 24436 created
  6.548 thread 6076 created
  9.205 thread 23556 created
  9.678 exception 0xc0000005 access violation at game_scarlett_master.exe+0xb5a5f8 first-chance params=['0x0', '0x68']
  9.678 exception 0xc0000005 access violation at game_scarlett_master.exe+0xb5a5f8 second-chance params=['0x0', '0x68']

No game files, dumps or private logs attached; local logs available on request.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147251779 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147251779). Originally posted by [charliejeanes1-debug](https://github.com/charliejeanes1-debug) on 2026-11-24T23:18:33Z. --- ### Startup run: second-chance stop at `game_scarlett_master.exe+0xb5a5f8` after 9.68 s Same stop in 11 run(s); 134 frames presented before it. Offline run through `tools/startup/run.ps1`, package root mounted as `G:\`. - **Commit:** `a0bc0f9a` (2026-11-25) - **Command:** `run.ps1 -Exe G:\game_scarlett_master.exe -DataDir G:\ -Seconds 180 -MemoryGiB 14 -ContinueAsserts 1000 -InputScript 4@70 -Render -FakeUser -GpuMirror -StartupBelow40` - **Title build:** 1.0.2.1 (MicrosoftGame.config) - **Environment:** Microsoft Windows 10 Pro build 19045, NVIDIA GeForce GTX 1050 Ti (driver 32.0.15.8228), AMD Ryzen 7 3800X 8-Core Processor, 32 GB RAM **Stop report** ```text stopped at access violation (0xc0000005) at game_scarlett_master.exe+0xb5a5f8 after 9.68 s (second chance) params=['0x0', '0x68'] rax=0x0 rcx=0x0 rdx=0x0 rbx=0x3 rsp=0xae44afeca0 rbp=0x13f rsi=0xae44afed68 rdi=0xae44afee10 r8=0xffffffff00000000 r9=0xffffffff00000000 r10=0x7ff78c431fc8 r11=0x22c1bc59e70 r12=0x22c19a0ba78 r13=0x0 r14=0x0 r15=0x651e95c4d06fbfb1 rip=0x7ff785dca5f8 stack: 0xae44afedc4 game_scarlett_master.exe+0x18194c7 0x1 0x22c9ccc5100 0x22ca686bf20 0x3 0x3 game_scarlett_master.exe+0x75b30f8 0xae44afedc4 0x0 0x0 0x3 0x13f 0xae44afee10 0x22c19a0b770 0x22c19a0ba78 return addresses: region base=0x0 alloc=0x0 size=0x1600000 state=0x10000 protect=0x1 type=0x0 code at rip-32: 56 57 55 53 48 83 ec 58 48 8b 01 48 89 ce 48 8b 49 08 49 bf b1 bf 6f d0 c4 95 1e 65 88 54 24 2f 4c 8b 70 68 48 85 c9 0f 85 f0 06 00 00 31 ff 80 offline: 2 network opens refused (\Device\Afd\Endpoint x2) window capture: 1600x900 -> window.png (client area as on screen; title text length 107) modules loaded: 133 ``` <details><summary>Triage (tools/startup/triage_run.py)</summary> ## Startup Run Triage Summary - Log files scanned: `6` - `slot70` memory SRV refusals: `8` (5 unique) - `x2w-d3d12` / trap slot events: `126` (44 unique) - `x2w-d3d12-debug` messages: `0` (0 unique) - `x2w-dstorage` failures: `0` (0 unique) - `x2w-runtime` failing calls: `0` (0 unique) - `X2W_SHADER_CACHE` `.fail` shaders: `0` (0 unique reasons) ### `Device::slot70` Memory SRV Refusals | Count | Reason | Res Dim | Res Fmt | View Dim | View Fmt | Layout | Flags | | --- | --- | --- | --- | --- | --- | --- | --- | | 3 | unsupported_description | 3 | 28 | 4 | 28 | 0x0 | 0x300000 | | 2 | buffer_unavailable | 1 | 0 | 1 | 57 | 0x1 | 0x0 | | 1 | texture_unavailable | 3 | 61 | 4 | 61 | 0x0 | 0x300000 | | 1 | buffer_unavailable | 1 | 0 | 1 | 39 | 0x1 | 0x0 | | 1 | unsupported_description | 3 | 30 | 4 | 30 | 0x0 | 0x300000 | ### Unhandled / Stubbed `x2w-d3d12` & Trap Calls | Count | Call / Slot | | --- | --- | | 24 | `Device::slot62` | | 8 | `Device::slot86` | | 4 | `Device::slot36` | | 4 | `Device::slot48` | | 4 | `Device::slot9` | | 4 | `Device::slot73` | | 4 | `Device::slot79` | | 4 | `Device::slot39` | | 4 | `Device::slot27` | | 4 | `Device::slot41` | | 4 | `Device::slot80` | | 3 | `Device::slot78` | | 3 | `Device::slot18` | | 3 | `Device::slot19` | | 3 | `Device::slot20` | | 3 | `x2w-noop other (text omitted)` | _Showing top 16 of 44 unique entries (126 total events)._ ### `Device::slot133` Placed Resources | Count | Outcome | | --- | --- | | 4 | aliased | | 12 | not_aliased | ### `x2w-dstorage` Failures & Status HRESULTs _None observed._ ### `x2w-runtime` Failing Methods _None observed._ ### `X2W_SHADER_CACHE` `.fail` Reasons _None observed._ </details> <details><summary>Last debugger events</summary> ```text 6.250 thread 16596 created 6.278 thread 20164 created 6.286 thread 20304 created 6.327 thread 6624 created 6.347 thread 8376 created 6.359 thread 25760 created 6.399 thread 24896 created 6.470 thread 24436 created 6.548 thread 6076 created 9.205 thread 23556 created 9.678 exception 0xc0000005 access violation at game_scarlett_master.exe+0xb5a5f8 first-chance params=['0x0', '0x68'] 9.678 exception 0xc0000005 access violation at game_scarlett_master.exe+0xb5a5f8 second-chance params=['0x0', '0x68'] ``` </details> No game files, dumps or private logs attached; local logs available on request.
R0Y00 commented 2026-11-25 01:01:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T23:39:28Z.


Two bounded follow-ups on the RX 590 report and the GTX 1050 Ti report.

  • RX 590: The CPU snapshot and fence-completed readback agree for the sampled window. Please follow the source range of that CPU copy one step upstream. A useful comparison is whether it was already zero at the last CPU write or whether it was populated by a queue whose completion the CPU had yet to observe. Report the producer category, completion ordering and byte counts only.
  • GTX 1050 Ti: Thanks for checking for a failing HRESULT. A successful file open does not tell us whether a request from that handle was submitted or consumed. For one bounded rerun, report only enqueue, submit and completion counts for the last two successful opens, plus whether a destination was published before the first null-object read. If there is no enqueue, report that directly. Keep paths, addresses and raw logs local. Earlier slot 70 refusals remain a separate lead.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147649600 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147649600). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T23:39:28Z. --- Two bounded follow-ups on the [RX 590 report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147524664) and the [GTX 1050 Ti report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147550487). - **RX 590:** The CPU snapshot and fence-completed readback agree for the sampled window. Please follow the source range of that CPU copy one step upstream. A useful comparison is whether it was already zero at the last CPU write or whether it was populated by a queue whose completion the CPU had yet to observe. Report the producer category, completion ordering and byte counts only. - **GTX 1050 Ti:** Thanks for checking for a failing HRESULT. A successful file open does not tell us whether a request from that handle was submitted or consumed. For one bounded rerun, report only enqueue, submit and completion counts for the last two successful opens, plus whether a destination was published before the first null-object read. If there is no enqueue, report that directly. Keep paths, addresses and raw logs local. Earlier slot 70 refusals remain a separate lead.
R0Y00 commented 2026-11-25 01:02:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T23:56:00Z.


Thanks for the matched RTX 3090 comparison. It gives us a checkpoint beyond the post-confirmation allocation stop in #1758. With the local slot 148 stand-in, the builder completed and the opening sequence rendered, with overlapping title cards and many draws still missing. Keep this as diagnostic evidence for slot 148.

The production retest belongs on the existing #1774 path. First check both payloads in the source-built delayed-fence A/B test, then repeat the same startup input and report the first visible checkpoint or first failure, the missing-pipeline count and the storage failure categories at that point. Keep the #2058 pixel export review separate so the combined startup run is attributable.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147953716 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147953716). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T23:56:00Z. --- Thanks for the matched RTX 3090 comparison. It gives us a checkpoint beyond the post-confirmation allocation stop in #1758. With the local slot 148 stand-in, the builder completed and the opening sequence rendered, with overlapping title cards and many draws still missing. Keep this as diagnostic evidence for slot 148. The production retest belongs on the existing #1774 path. First check both payloads in the source-built delayed-fence A/B test, then repeat the same startup input and report the first visible checkpoint or first failure, the missing-pipeline count and the storage failure categories at that point. Keep the #2058 pixel export review separate so the combined startup run is attributable.
Lifither commented 2026-11-25 01:02:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-25T00:02:51Z.


Thanks for the follow-up on my RX 590 report. I don’t have the bandwidth for the deeper source-range investigation, so I’m leaving it open for anyone who wants to pick it up. The source range’s producer and its completion ordering are still open.

I’d be happy to run small, self-contained hardware tests on the RX 590 when I have time.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7148078391 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7148078391). Originally posted by [Lifither](https://github.com/Lifither) on 2026-11-25T00:02:51Z. --- Thanks for the follow-up on my [RX 590 report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147524664). I don’t have the bandwidth for the deeper source-range investigation, so I’m leaving it open for anyone who wants to pick it up. The source range’s producer and its completion ordering are still open. I’d be happy to run small, self-contained hardware tests on the RX 590 when I have time.
charliejeanes1-debug commented 2026-11-25 01:02:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by charliejeanes1-debug on 2026-11-25T00:03:03Z.


Two bounded follow-ups on the RX 590 report and the GTX 1050 Ti report.

  • RX 590: The CPU snapshot and fence-completed readback agree for the sampled window. Please follow the source range of that CPU copy one step upstream. A useful comparison is whether it was already zero at the last CPU write or whether it was populated by a queue whose completion the CPU had yet to observe. Report the producer category, completion ordering and byte counts only.
  • GTX 1050 Ti: Thanks for checking for a failing HRESULT. A successful file open does not tell us whether a request from that handle was submitted or consumed. For one bounded rerun, report only enqueue, submit and completion counts for the last two successful opens, plus whether a destination was published before the first null-object read. If there is no enqueue, report that directly. Keep paths, addresses and raw logs local. Earlier slot 70 refusals remain a separate lead.

hope this helps?

Stop after 9.51 s (second chance).

  • Second-to-last successful open (a data pack (.rpf)): 4 enqueued, 4 queue submit(s) after its first enqueue, 4 completed (4 with the destination written); outcomes: done, inflated.
  • Last successful open (the main executable): no enqueue.
  • Destination published before the first null-object read: yes.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7148081946 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7148081946). Originally posted by [charliejeanes1-debug](https://github.com/charliejeanes1-debug) on 2026-11-25T00:03:03Z. --- > Two bounded follow-ups on the [RX 590 report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147524664) and the [GTX 1050 Ti report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7147550487). > > * **RX 590:** The CPU snapshot and fence-completed readback agree for the sampled window. Please follow the source range of that CPU copy one step upstream. A useful comparison is whether it was already zero at the last CPU write or whether it was populated by a queue whose completion the CPU had yet to observe. Report the producer category, completion ordering and byte counts only. > * **GTX 1050 Ti:** Thanks for checking for a failing HRESULT. A successful file open does not tell us whether a request from that handle was submitted or consumed. For one bounded rerun, report only enqueue, submit and completion counts for the last two successful opens, plus whether a destination was published before the first null-object read. If there is no enqueue, report that directly. Keep paths, addresses and raw logs local. Earlier slot 70 refusals remain a separate lead. hope this helps? Stop after 9.51 s (second chance). - Second-to-last successful open (a data pack (.rpf)): 4 enqueued, 4 queue submit(s) after its first enqueue, 4 completed (4 with the destination written); outcomes: done, inflated. - Last successful open (the main executable): no enqueue. - Destination published before the first null-object read: yes.
R0Y00 commented 2026-11-25 01:02:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T00:12:48Z.


Thanks for the follow-up. The four observed pack requests all completed and wrote their destinations before the 9.51-second stop. The final file open produced no enqueue. This comparison leaves the null object’s producer unresolved. A useful next report is just the category of the operation expected to create that object and whether its output was null, unchanged or published, if that can be observed without sharing a trace. This remains separate from the later slot 148 stop.

The RX 590 source-range investigation is available to pick up. Reuse the #1991 two-colour controls, then identify the last producer for the copied window and its ordering before the CPU reads it. Report written-byte counts and queue completion only. The RX 590 reporter is available for a small source-built hardware retest once there is a candidate.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7148269364 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7148269364). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T00:12:48Z. --- Thanks for the follow-up. The four observed pack requests all completed and wrote their destinations before the 9.51-second stop. The final file open produced no enqueue. This comparison leaves the null object’s producer unresolved. A useful next report is just the category of the operation expected to create that object and whether its output was null, unchanged or published, if that can be observed without sharing a trace. This remains separate from the later slot 148 stop. The RX 590 source-range investigation is available to pick up. Reuse the #1991 two-colour controls, then identify the last producer for the copied window and its ordering before the CPU reads it. Report written-byte counts and queue completion only. The RX 590 reporter is available for a small source-built hardware retest once there is a candidate.
charliejeanes1-debug commented 2026-11-25 01:02:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by charliejeanes1-debug on 2026-11-25T00:18:51Z.


Thanks for the follow-up. The four observed pack requests all completed and wrote their destinations before the 9.51-second stop. The final file open produced no enqueue. This comparison leaves the null object’s producer unresolved. A useful next report is just the category of the operation expected to create that object and whether its output was null, unchanged or published, if that can be observed without sharing a trace. This remains separate from the later slot 148 stop.

The RX 590 source-range investigation is available to pick up. Reuse the #1991 two-colour controls, then identify the last producer for the copied window and its ordering before the CPU reads it. Report written-byte counts and queue completion only. The RX 590 reporter is available for a small source-built hardware retest once there is a candidate.

does this mean anything to you? sorry using ai the logs and what your asking to try and help here..

Category: user sign-in. The last gaming-runtime call before the stop is user API slot 7, about 0.5 s before the null-object read and right after the final file open. Going by slot 8 being XUserAddResult, slot 7 is likely XUserAddAsync. Its first argument is 0x1, which matches add-default-user-silently. The slot name is my inference.

Output:

  • -FakeUser doesn't answer slot 7, so the call is forwarded to the real runtime, which returns S_OK.
  • XUserAddResult (slot 8), the call that would publish the user handle, is not called before the stop.
  • So the user handle stays unchanged (never published) up to the null-object read.

The call appears once per run, as the last runtime call before the stop, in both runs I checked (same build and settings). This is separate from the slot 148 stop.

AI-assisted (Claude).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7148378559 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7148378559). Originally posted by [charliejeanes1-debug](https://github.com/charliejeanes1-debug) on 2026-11-25T00:18:51Z. --- > Thanks for the follow-up. The four observed pack requests all completed and wrote their destinations before the 9.51-second stop. The final file open produced no enqueue. This comparison leaves the null object’s producer unresolved. A useful next report is just the category of the operation expected to create that object and whether its output was null, unchanged or published, if that can be observed without sharing a trace. This remains separate from the later slot 148 stop. > > The RX 590 source-range investigation is available to pick up. Reuse the [#1991](https://github.com/R0Y00/Xbox2Windows/pull/1991) two-colour controls, then identify the last producer for the copied window and its ordering before the CPU reads it. Report written-byte counts and queue completion only. The RX 590 reporter is available for a small source-built hardware retest once there is a candidate. does this mean anything to you? sorry using ai the logs and what your asking to try and help here.. **Category:** user sign-in. The last gaming-runtime call before the stop is user API slot 7, about 0.5 s before the null-object read and right after the final file open. Going by slot 8 being `XUserAddResult`, slot 7 is likely `XUserAddAsync`. Its first argument is `0x1`, which matches add-default-user-silently. The slot name is my inference. **Output:** - `-FakeUser` doesn't answer slot 7, so the call is forwarded to the real runtime, which returns `S_OK`. - `XUserAddResult` (slot 8), the call that would publish the user handle, is not called before the stop. - So the user handle stays **unchanged (never published)** up to the null-object read. The call appears once per run, as the last runtime call before the stop, in both runs I checked (same build and settings). This is separate from the slot 148 stop. AI-assisted (Claude).
R0Y00 commented 2026-11-25 01:02:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T00:26:31Z.


The two runs give us a useful sign-in boundary. The add call returned S_OK and there was no result call before the stop. The documented API separates accepting the async request from retrieving a user handle, so the missing observation is whether the request was still pending or the completion was available and did not reach its consumer. XUserAddAsync · GDK task queues

If it is possible with the existing logging, please report whether initialization succeeded and whether the same async operation reached a terminal status or a completion callback before the first null read. Codes and counts are enough. #1853 covers the separate fallback after initialization fails. A useful independent source-built comparison is start → status → completion dispatch → result, with an unpumped manual queue as the control. Keep the real provider result, callback and handle publication distinct so the comparison can identify the first missing step.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7148513152 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7148513152). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T00:26:31Z. --- The two runs give us a useful sign-in boundary. The add call returned S_OK and there was no result call before the stop. The documented API separates accepting the async request from retrieving a user handle, so the missing observation is whether the request was still pending or the completion was available and did not reach its consumer. [XUserAddAsync](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xuser/functions/xuseraddasync) · [GDK task queues](https://learn.microsoft.com/en-us/gaming/gdk/docs/features/common/async/async-programming-model) If it is possible with the existing logging, please report whether initialization succeeded and whether the same async operation reached a terminal status or a completion callback before the first null read. Codes and counts are enough. #1853 covers the separate fallback after initialization fails. A useful independent source-built comparison is start → status → completion dispatch → result, with an unpumped manual queue as the control. Keep the real provider result, callback and handle publication distinct so the comparison can identify the first missing step.
charliejeanes1-debug commented 2026-11-25 01:02:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by charliejeanes1-debug on 2026-11-25T00:41:09Z.


The two runs give us a useful sign-in boundary. The add call returned S_OK and there was no result call before the stop. The documented API separates accepting the async request from retrieving a user handle, so the missing observation is whether the request was still pending or the completion was available and did not reach its consumer. XUserAddAsync · GDK task queues

If it is possible with the existing logging, please report whether initialization succeeded and whether the same async operation reached a terminal status or a completion callback before the first null read. Codes and counts are enough. #1853 covers the separate fallback after initialization fails. A useful independent source-built comparison is start → status → completion dispatch → result, with an unpumped manual queue as the control. Keep the real provider result, callback and handle publication distinct so the comparison can identify the first missing step.

Thanks. I did a run with X2W_TRACE_API=1 and -TraceCalls (same build and command otherwise; same null-object read stop). Codes and counts up to the first null read:

  • Initialization: InitializeApiImplEx2 → S_OK ×2. QueryApiImpl → S_OK ×474, 0 failures. 9 providers answered by the real runtime, 0 local fallbacks, so not the #1853 path.
  • Start: user provider slot 7 (add) ×1 → S_OK, real runtime.
  • Status: XAsync-family (073b7dcb) calls after the add: 0.
  • Result: user provider slot 8 (add result) ×0 before the stop.
  • Other calls after the add: 101. These were connectivity hint (37e56907 slot 15) ×50, answered by the stand-in as "initialized, no connectivity", each followed by a Release (slot 2) ×50, plus a Release on the user provider ×1. So the title kept calling the runtime, but never checked or consumed the add.
  • Coverage: API trace on, so every provider call is logged and these counts are complete.
  • Completion callback: not observable through the proxy. Its consumer (slot 8) did not run.

So the first missing step I can see is status/result: the request was accepted with S_OK, and nothing queried its status or retrieved its result before the stop. From this side I can't tell whether it was still pending or completed without being dispatched. Paths, addresses and raw logs kept local.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7148769947 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7148769947). Originally posted by [charliejeanes1-debug](https://github.com/charliejeanes1-debug) on 2026-11-25T00:41:09Z. --- > The two runs give us a useful sign-in boundary. The add call returned S_OK and there was no result call before the stop. The documented API separates accepting the async request from retrieving a user handle, so the missing observation is whether the request was still pending or the completion was available and did not reach its consumer. [XUserAddAsync](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xuser/functions/xuseraddasync) · [GDK task queues](https://learn.microsoft.com/en-us/gaming/gdk/docs/features/common/async/async-programming-model) > > If it is possible with the existing logging, please report whether initialization succeeded and whether the same async operation reached a terminal status or a completion callback before the first null read. Codes and counts are enough. [#1853](https://github.com/R0Y00/Xbox2Windows/pull/1853) covers the separate fallback after initialization fails. A useful independent source-built comparison is start → status → completion dispatch → result, with an unpumped manual queue as the control. Keep the real provider result, callback and handle publication distinct so the comparison can identify the first missing step. Thanks. I did a run with `X2W_TRACE_API=1` and `-TraceCalls` (same build and command otherwise; same null-object read stop). Codes and counts up to the first null read: - **Initialization:** `InitializeApiImplEx2` → `S_OK` ×2. `QueryApiImpl` → `S_OK` ×474, 0 failures. 9 providers answered by the real runtime, 0 local fallbacks, so not the #1853 path. - **Start:** user provider slot 7 (add) ×1 → `S_OK`, real runtime. - **Status:** XAsync-family (`073b7dcb`) calls after the add: 0. - **Result:** user provider slot 8 (add result) ×0 before the stop. - **Other calls after the add:** 101. These were connectivity hint (`37e56907` slot 15) ×50, answered by the stand-in as "initialized, no connectivity", each followed by a Release (slot 2) ×50, plus a Release on the user provider ×1. So the title kept calling the runtime, but never checked or consumed the add. - **Coverage:** API trace on, so every provider call is logged and these counts are complete. - **Completion callback:** not observable through the proxy. Its consumer (slot 8) did not run. So the first missing step I can see is status/result: the request was accepted with `S_OK`, and nothing queried its status or retrieved its result before the stop. From this side I can't tell whether it was still pending or completed without being dispatched. Paths, addresses and raw logs kept local.
R0Y00 commented 2026-11-25 01:02:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T00:52:18Z.


The follow-up rules out the initialization-failure fallback in this run: initialization succeeded, all queried providers answered through the real runtime, and the accepted add had no observed status or result call. The proxy cannot see completion dispatch, so the pending-versus-undispatched distinction is still open.

Available to claim: one source-built Windows comparison of the same async operation on a manual completion queue. Reuse the real-runtime test harness in startup_gamesave_read_async where practical, with a synthetic provider result and no account or application input. Record four separate observations: start return, terminal status, callback count, and result publication. Let work finish while deliberately leaving the completion port unpumped, then dispatch that port and verify exactly one callback and that the consumer retrieves the expected result. Keep the unpumped phase as the negative control. Please post the commit, exact build/CTest commands and skip conditions here. This fixture isolates the dispatch boundary. It does not require changing sign-in behavior. GDK async model

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7148975352 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7148975352). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T00:52:18Z. --- The follow-up rules out the initialization-failure fallback in this run: initialization succeeded, all queried providers answered through the real runtime, and the accepted add had no observed status or result call. The proxy cannot see completion dispatch, so the pending-versus-undispatched distinction is still open. Available to claim: one source-built Windows comparison of the same async operation on a manual completion queue. Reuse the real-runtime test harness in `startup_gamesave_read_async` where practical, with a synthetic provider result and no account or application input. Record four separate observations: start return, terminal status, callback count, and result publication. Let work finish while deliberately leaving the completion port unpumped, then dispatch that port and verify exactly one callback and that the consumer retrieves the expected result. Keep the unpumped phase as the negative control. Please post the commit, exact build/CTest commands and skip conditions here. This fixture isolates the dispatch boundary. It does not require changing sign-in behavior. [GDK async model](https://learn.microsoft.com/en-us/gaming/gdk/docs/features/common/async/async-programming-model)
R0Y00 commented 2026-11-25 02:02:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T01:10:53Z.


The opt-in cold-cache watcher is on main in #2120 (6921dcfd), based on the original #1749 work. Source-built checks confirm that it consumes ready requests, retries a broken worker pool, and exits with its child processes on both Windows PowerShell versions. For a cold-cache report, use the documented startup command with -Render -Translate and a fresh cache directory. Report translated/missing pipeline counts, the first non-black checkpoint if any, and the first distinct failure category if the run still stops. A warm-cache run on the same commit is the control. This is the cold-cache rendering path; the earlier accepted-but-unconsumed sign-in request remains a separate boundary. https://github.com/R0Y00/Xbox2Windows/blob/main/docs/startup-runtime.md#translating-shaders-during-a-run

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7149287455 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7149287455). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T01:10:53Z. --- The opt-in cold-cache watcher is on main in #2120 (6921dcfd), based on the original #1749 work. Source-built checks confirm that it consumes ready requests, retries a broken worker pool, and exits with its child processes on both Windows PowerShell versions. For a cold-cache report, use the documented startup command with -Render -Translate and a fresh cache directory. Report translated/missing pipeline counts, the first non-black checkpoint if any, and the first distinct failure category if the run still stops. A warm-cache run on the same commit is the control. This is the cold-cache rendering path; the earlier accepted-but-unconsumed sign-in request remains a separate boundary. https://github.com/R0Y00/Xbox2Windows/blob/main/docs/startup-runtime.md#translating-shaders-during-a-run
R0Y00 commented 2026-11-25 02:02:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T01:28:45Z.


Separate storage progress: #2129 has merged the DirectStorage request-field correction, with real worker recovery and EOF-order controls in the source-built Release fixture. The #2133 author also reports 18 first-run read refusals becoming zero to the same checkpoint with a 4 KiB allocation-size candidate. That is a local diagnostic comparison. I independently confirmed its current XG copy returns success after writing only 16 of 32 rows, so the complete layout/copy/upload path is still under review. This does not change the sign-in or post-confirm startup boundaries.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7149591644 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7149591644). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T01:28:45Z. --- Separate storage progress: #2129 has merged the DirectStorage request-field correction, with real worker recovery and EOF-order controls in the source-built Release fixture. The #2133 author also reports 18 first-run read refusals becoming zero to the same checkpoint with a 4 KiB allocation-size candidate. That is a local diagnostic comparison. I independently confirmed its current XG copy returns success after writing only 16 of 32 rows, so the complete layout/copy/upload path is still under review. This does not change the sign-in or post-confirm startup boundaries.
SimSalabimse commented 2026-11-25 03:01:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-25T02:02:15Z.


Cold-cache black frames: fixed locally with -Translate (after #2120)

Previously at 06cdc47d with -Render only: mean level 0.00/255, pipelines translated 0 / missing 6, translated draws 0 (not drawn 54879).

After #2120 (run.ps1 -Render -Translate), same-style run:

  • presented surface 3840x2160 ... mean level 36.20/255 (earlier readbacks were still 0 while pipelines warmed)
  • translated draws 2003 (not drawn 0), pipelines translated 6 / missing 0
  • Account-picker Y is visible; pressing Y animates the button but does not advance (input / next-screen still open).
  • textures uploaded 0 unchanged.

Command shape: -Render -Translate -FakeUser -GpuMirror -ContinueAsserts 1000 -InputScript "4@70" (local package + mapped data dir). Synthetic ctests startup_gfx2hlsl_watch, startup_translator, startup_run_ps1 passed on Windows.

No game files attached.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7150243670 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7150243670). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-25T02:02:15Z. --- ## Cold-cache black frames: fixed locally with `-Translate` (after #2120) Previously at `06cdc47d` with `-Render` only: mean level `0.00/255`, `pipelines translated 0 / missing 6`, `translated draws 0 (not drawn 54879)`. After [#2120](https://github.com/R0Y00/Xbox2Windows/pull/2120) (`run.ps1 -Render -Translate`), same-style run: - `presented surface 3840x2160 ... mean level 36.20/255` (earlier readbacks were still 0 while pipelines warmed) - `translated draws 2003 (not drawn 0), pipelines translated 6 / missing 0` - Account-picker **Y** is visible; pressing Y animates the button but does not advance (input / next-screen still open). - `textures uploaded 0` unchanged. Command shape: `-Render -Translate -FakeUser -GpuMirror -ContinueAsserts 1000 -InputScript "4@70"` (local package + mapped data dir). Synthetic ctests `startup_gfx2hlsl_watch`, `startup_translator`, `startup_run_ps1` passed on Windows. No game files attached.
R0Y00 commented 2026-11-25 03:01:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T02:05:53Z.


Thanks for the A/B. With cold-cache translation enabled your report reached 6 translated pipelines, 0 missing and 2003 translated draws, with a visible account prompt. The Y-button animation shows the input reaches that screen. Progress after confirmation is still open. The other report's accepted user-add without an observed result remains a separate run.

If you repeat this on the same build and configuration, please report just the first observable difference after pressing Y: whether a user-add starts, whether the same operation reaches a terminal status or completion, and whether a result is consumed. A run with no press is the control. The existing source-built manual-completion comparison remains the independent way to check what an unpumped callback looks like. Existing fixture scope

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7150313716 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7150313716). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T02:05:53Z. --- Thanks for the A/B. With cold-cache translation enabled your report reached 6 translated pipelines, 0 missing and 2003 translated draws, with a visible account prompt. The Y-button animation shows the input reaches that screen. Progress after confirmation is still open. The other report's accepted user-add without an observed result remains a separate run. If you repeat this on the same build and configuration, please report just the first observable difference after pressing Y: whether a user-add starts, whether the same operation reaches a terminal status or completion, and whether a result is consumed. A run with no press is the control. The existing source-built manual-completion comparison remains the independent way to check what an unpumped callback looks like. [Existing fixture scope](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7148975352)
Jess-Doit commented 2026-11-25 03:01:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T02:23:58Z.


I'd like to take the source-built manual-completion comparison from this comment.

Scope: build on the startup_gamesave_read_async harness. One async operation with a synthetic provider result runs on a manual task queue, and the test records four observations separately: the start return, terminal status, callback count and result publication. Negative control: the work finishes while the completion port stays unpumped. The status must show the work is done, with zero callbacks and nothing published. Then the test dispatches the completion port once and checks for exactly one callback, after which the consumer must retrieve the expected result. I'll run the controlled scheduler, plus the system variant where the installed runtime loads (otherwise exit 77). I'll post the commit, exact build and CTest commands and skip conditions with the PR.

Environment: Windows 10 build 19045, GTX 1060 6GB and WARP. Source-built inputs only, with no account or application input. I'm leaving the startup rerun and the sign-in proxy wiring to main development, and the RX 590 source-range follow-up to whoever picks it up.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7150669021 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7150669021). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T02:23:58Z. --- I'd like to take the source-built manual-completion comparison from [this comment](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7148975352). Scope: build on the `startup_gamesave_read_async` harness. One async operation with a synthetic provider result runs on a manual task queue, and the test records four observations separately: the start return, terminal status, callback count and result publication. Negative control: the work finishes while the completion port stays unpumped. The status must show the work is done, with zero callbacks and nothing published. Then the test dispatches the completion port once and checks for exactly one callback, after which the consumer must retrieve the expected result. I'll run the controlled scheduler, plus the system variant where the installed runtime loads (otherwise exit 77). I'll post the commit, exact build and CTest commands and skip conditions with the PR. Environment: Windows 10 build 19045, GTX 1060 6GB and WARP. Source-built inputs only, with no account or application input. I'm leaving the startup rerun and the sign-in proxy wiring to main development, and the RX 590 source-range follow-up to whoever picks it up. AI-assisted.
R0Y00 commented 2026-11-25 03:01:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T02:27:09Z.


Jess-Doit is taking the source-built manual completion comparison. The controlled scheduler and the optional system-runtime case are the right split. Please bound the wait for terminal status and keep callback count and result publication separate until the completion port is dispatched. The unpumped case should fail if a callback runs early or if the consumer receives a published result early. Report the system-runtime skip separately. This gives us a portable way to identify the dispatch boundary while the actual post-confirm startup remains open. Claim and test scope

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7150739852 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7150739852). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T02:27:09Z. --- Jess-Doit is taking the source-built manual completion comparison. The controlled scheduler and the optional system-runtime case are the right split. Please bound the wait for terminal status and keep callback count and result publication separate until the completion port is dispatched. The unpumped case should fail if a callback runs early or if the consumer receives a published result early. Report the system-runtime skip separately. This gives us a portable way to identify the dispatch boundary while the actual post-confirm startup remains open. [Claim and test scope](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7150669021)
Jess-Doit commented 2026-11-25 03:01:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T02:38:45Z.


The manual-completion comparison is up as #2170 (startup_async_manual_completion_{controlled,system,inline_control}). Per phase it prints the four observations separately: start return, non-waiting status and result size, callback count, and result consumed. Here the controlled variant passes and the inline-callback control fails as expected. The system variant skips (77) because this host has no Gaming Services. A run of _system on a host with the runtime shows whether the real runtime reports S_OK or E_PENDING for a completed but undispatched block.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7150993236 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7150993236). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T02:38:45Z. --- The manual-completion comparison is up as #2170 (`startup_async_manual_completion_{controlled,system,inline_control}`). Per phase it prints the four observations separately: start return, non-waiting status and result size, callback count, and result consumed. Here the controlled variant passes and the inline-callback control fails as expected. The system variant skips (77) because this host has no Gaming Services. A run of `_system` on a host with the runtime shows whether the real runtime reports `S_OK` or `E_PENDING` for a completed but undispatched block. AI-assisted.
Jess-Doit commented 2026-11-25 03:01:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T02:54:38Z.


Cold-cache run on Windows 10 / GTX 1060

Setup: main at 498c23cc, Release, Windows 10 build 19045. NVIDIA GeForce GTX 1060 6GB, driver 32.0.15.6094, debug layer off. Ryzen 5 1500X (-HostCpu rewrote one clwb site), 16 GB RAM. Gaming Services 39.118.30001.0. X2W_FAKE_USER=1, X2W_RUNTIME_LOCAL=1. The run was offline: two socket opens were refused. The package was mapped to G: with subst.

.\tools\startup\run.ps1 -Exe <run folder>\<title>.exe -DataDir G:\ -LogDir <log> -Seconds 300 -MemoryGiB 10 `
    -Render -Translate -FakeUser -GpuMirror -HostCpu -ContinueAsserts 1000 -InputScript "4@70" `
    -StoragePath <storage> -ShaderCache <fresh cache>      # X2W_TRANSLATE_JOBS=2
Observation Value
Window 1600×900, black in the capture at frame 960
Presents 959 in 36.6 s (26.2 fps)
Pipelines 3 translated / 0 missing. The watcher translated 4 requests, all ok, with no failures
Translated draws 2,494 drawn, 198 not drawn (30 s totals)
DirectStorage 2,169 requests done, 0 failed. Commit peak 6,455 MiB
Stop 44.4 s, second-chance access violation in the main image: a read through a null object pointer. The input at 70 s was never reached

Just before the stop: the runtime's game-save service object was created (debug output). About 35 ms later, two directory opens under D:\decorations\ failed with path-not-found, and the null read followed. On this host D: is an ordinary data drive, so that path does not exist. This is a candidate lead only, and I have not tied it to the object that was null.

Without Gaming Services: the same build, with no xgameruntime.dll on the host, exited with code 1 at 14.7 s, during the storage burst, with 0 failed requests. That looks like a different, earlier boundary. It matches the shape of the Windows 10 / GTX 1050 Ti stop rather than this one.

Next, unless someone already has it: one matched rerun to find out whether the null object belongs to the save path. I'll report the category of the operation expected to produce it and whether its output was null, unchanged or published. Raw logs, offsets and the run folder stay local.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7151346462 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7151346462). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T02:54:38Z. --- ## Cold-cache run on Windows 10 / GTX 1060 **Setup:** `main` at `498c23cc`, Release, Windows 10 build 19045. NVIDIA GeForce GTX 1060 6GB, driver 32.0.15.6094, debug layer off. Ryzen 5 1500X (`-HostCpu` rewrote one `clwb` site), 16 GB RAM. Gaming Services 39.118.30001.0. `X2W_FAKE_USER=1`, `X2W_RUNTIME_LOCAL=1`. The run was offline: two socket opens were refused. The package was mapped to `G:` with `subst`. ```powershell .\tools\startup\run.ps1 -Exe <run folder>\<title>.exe -DataDir G:\ -LogDir <log> -Seconds 300 -MemoryGiB 10 ` -Render -Translate -FakeUser -GpuMirror -HostCpu -ContinueAsserts 1000 -InputScript "4@70" ` -StoragePath <storage> -ShaderCache <fresh cache> # X2W_TRANSLATE_JOBS=2 ``` | Observation | Value | |---|---| | Window | 1600×900, black in the capture at frame 960 | | Presents | 959 in 36.6 s (26.2 fps) | | Pipelines | 3 translated / 0 missing. The watcher translated 4 requests, all ok, with no failures | | Translated draws | 2,494 drawn, 198 not drawn (30 s totals) | | DirectStorage | 2,169 requests done, 0 failed. Commit peak 6,455 MiB | | Stop | 44.4 s, second-chance access violation in the main image: a read through a null object pointer. The input at 70 s was never reached | **Just before the stop:** the runtime's game-save service object was created (debug output). About 35 ms later, two directory opens under `D:\decorations\` failed with path-not-found, and the null read followed. On this host `D:` is an ordinary data drive, so that path does not exist. This is a candidate lead only, and I have not tied it to the object that was null. **Without Gaming Services:** the same build, with no `xgameruntime.dll` on the host, exited with code 1 at 14.7 s, during the storage burst, with 0 failed requests. That looks like a different, earlier boundary. It matches the shape of the Windows 10 / GTX 1050 Ti stop rather than this one. **Next, unless someone already has it:** one matched rerun to find out whether the null object belongs to the save path. I'll report the category of the operation expected to produce it and whether its output was null, unchanged or published. Raw logs, offsets and the run folder stay local. AI-assisted.
R0Y00 commented 2026-11-25 03:01:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T02:59:54Z.


Independent Windows 11 Release retest of #2170 at 0435874c: all three source-built cases passed, including the installed Windows gaming runtime. Before the provider completed the synthetic block, status and result-size both returned E_PENDING. After completion, both returned S_OK with 8 bytes available and no callback or provider GetResult call. The work port was empty. One completion-port dispatch ran the callback and consumed the exact 8 bytes; a second dispatch found no work. The immediate queue callback ran without dispatch, and the forced early-callback control detected the mismatch.

ctest --preset release --no-tests=error -R '^startup_async_manual_completion_' -V

For the sign-in trace, the useful next comparison is the existing block's non-waiting status and whether its completion port is actually dispatched, when a block is observed. This fixture uses no account or application input. The separate GTX 1060 run above stopped before the scheduled input, so its possible save-path null-object lead stays separate.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7151481647 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7151481647). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T02:59:54Z. --- Independent Windows 11 Release retest of #2170 at `0435874c`: all three source-built cases passed, including the installed Windows gaming runtime. Before the provider completed the synthetic block, status and result-size both returned `E_PENDING`. After completion, both returned `S_OK` with 8 bytes available and no callback or provider GetResult call. The work port was empty. One completion-port dispatch ran the callback and consumed the exact 8 bytes; a second dispatch found no work. The immediate queue callback ran without dispatch, and the forced early-callback control detected the mismatch. `ctest --preset release --no-tests=error -R '^startup_async_manual_completion_' -V` For the sign-in trace, the useful next comparison is the existing block's non-waiting status and whether its completion port is actually dispatched, when a block is observed. This fixture uses no account or application input. The separate GTX 1060 run above stopped before the scheduled input, so its possible save-path null-object lead stays separate.
R0Y00 commented 2026-11-25 04:04:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T03:26:52Z.


#2166 is now on main at 72c16092. With the existing proxy enabled, the source-built Windows loader fixture confirms a late package helper can reach the proxy after the worker scan, the same-named decoy stays untouched, and the forwarding target survives release of the caller's DLL references. The next useful application comparison is the same input before/after this revision, recording whether an in-scope helper was patched before its first runtime query, then whether a user-add block is observed. A helper call before the scan can still be missed. Fixture and review evidence

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7151922787 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7151922787). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T03:26:52Z. --- #2166 is now on main at `72c16092`. With the existing proxy enabled, the source-built Windows loader fixture confirms a late package helper can reach the proxy after the worker scan, the same-named decoy stays untouched, and the forwarding target survives release of the caller's DLL references. The next useful application comparison is the same input before/after this revision, recording whether an in-scope helper was patched before its first runtime query, then whether a user-add block is observed. A helper call before the scan can still be missed. [Fixture and review evidence](https://github.com/R0Y00/Xbox2Windows/pull/2166#issuecomment-7151845557)
R0Y00 commented 2026-11-25 05:04:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T04:23:03Z.


The source-built save-provider path in #2179 is on main at fd457299. Windows Release verified that an early result call returns E_PENDING and preserves the queued completion, one dispatch publishes the callback and one provider result, and a waiting dispatch wakes when completion arrives. This covers a shim-owned Manual/Manual queue. For the existing application retest, record whether a user-add block appears, which queue it uses, and the first missing output or failure code. If the separate pre-input null-object case reproduces, leave its save attribution open until the producer is identified. Source-built controls

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7152793057 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7152793057). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T04:23:03Z. --- The source-built save-provider path in #2179 is on main at `fd457299`. Windows Release verified that an early result call returns `E_PENDING` and preserves the queued completion, one dispatch publishes the callback and one provider result, and a waiting dispatch wakes when completion arrives. This covers a shim-owned Manual/Manual queue. For the existing application retest, record whether a user-add block appears, which queue it uses, and the first missing output or failure code. If the separate pre-input null-object case reproduces, leave its save attribution open until the producer is identified. [Source-built controls](https://github.com/R0Y00/Xbox2Windows/pull/2179)
Jess-Doit commented 2026-11-25 05:04:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T04:24:05Z.


Windows 10 / GTX 1060 follow-up: the null-object stop is a root-signature refusal by the in-box D3D12 runtime

This continues the earlier GTX 1060 report. Same host: Windows 10 build 19045, GTX 1060 6GB (32.0.15.6094), main at 498c23cc. The runtime is the in-box D3D12Core.dll 10.0.19041.5794, with no Agility SDK. Counts only; logs and offsets stay local.

What the null object was. A static trace plus bounded per-hit logging (#2190) showed that the object was a slot in a table of combined shader-stage records. The builder for each record prepares a D3D12 root signature and stores null when that fails. The first required lookup then read the null slot. In one run:

Stage Result
Container and header checks passed
d3d12_xs!D3D12SerializeVersionedRootSignature 26,757 × E_INVALIDARG, 26 × S_OK
Device CreateRootSignature 26 calls, all S_OK
Builder overall 25,094 null results out of 25,949

Why. I logged the desktop error blob locally; the caller passes a null error output. Every refusal is a version 1.1 description that desktop serialization rejects with Unsupported bit-flag set. The flags are 0x801, 0xc00 or 0x401, which means 0x400 and/or 0x800 (CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED and SAMPLER_HEAP_DIRECTLY_INDEXED), sometimes with 0x1. The in-box Windows 10 runtime does not know those two flags. Windows 11 hosts accept them, which would explain why this stop has only shown up on Windows 10 so far. The Windows 10 / GTX 1050 Ti stop above may be the same; I have not verified that.

Local experiment, opt-in and not posted as a PR yet. When desktop serialization returns E_INVALIDARG for a 1.1 or 1.2 description that has 0x400/0x800 set, the d3d12_xs serializer retries once without those two bits.

  • Root signatures: 0 refusals remain, and the null-object stop is gone.
  • With a 10 GiB job cap: the run then hit ERROR_COMMITMENT_LIMIT (1455) in XMemMapPhysicalPages, 18,496 null maps that the caller continues past, and a later null read. That is this host's memory cap, not a separate bug.
  • With -MemoryGiB 16: the run went to the 300 s timeout with no stop. 8,516 presents (29.4 fps), 122,884 translated draws (42,237 not drawn), 8 pipelines translated / 3 missing, 0 failed storage requests. The scheduled button press was read by the title at 82 s. The window shows a first non-black screen: a text screen with a loading indicator, with the content offset to the right and clipped.

Question for the fix direction: is a serializer fallback acceptable? It would strip the two heap-indexing flags only when the runtime refuses exactly them, with a one-time log line and a source-built test: a description with 0x400 and 0x800 serializes through d3d12_xs on a runtime that refuses it natively, and passes through unchanged where it is accepted. The translated shaders bind explicitly, so they do not depend on those flags. A native pipeline that really indexes the heap would still need a capable runtime. The alternative is to document Windows 11 or the Agility SDK as a requirement. I'll prepare whichever you prefer.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7152808564 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7152808564). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T04:24:05Z. --- ## Windows 10 / GTX 1060 follow-up: the null-object stop is a root-signature refusal by the in-box D3D12 runtime This continues the [earlier GTX 1060 report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7151346462). Same host: Windows 10 build 19045, GTX 1060 6GB (32.0.15.6094), `main` at `498c23cc`. The runtime is the in-box `D3D12Core.dll` 10.0.19041.5794, with no Agility SDK. Counts only; logs and offsets stay local. **What the null object was.** A static trace plus bounded per-hit logging (#2190) showed that the object was a slot in a table of combined shader-stage records. The builder for each record prepares a D3D12 root signature and stores null when that fails. The first required lookup then read the null slot. In one run: | Stage | Result | |---|---| | Container and header checks | passed | | `d3d12_xs!D3D12SerializeVersionedRootSignature` | **26,757 × `E_INVALIDARG`**, 26 × `S_OK` | | Device `CreateRootSignature` | 26 calls, all `S_OK` | | Builder overall | 25,094 null results out of 25,949 | **Why.** I logged the desktop error blob locally; the caller passes a null error output. Every refusal is a version 1.1 description that desktop serialization rejects with `Unsupported bit-flag set`. The flags are `0x801`, `0xc00` or `0x401`, which means `0x400` and/or `0x800` (`CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED` and `SAMPLER_HEAP_DIRECTLY_INDEXED`), sometimes with `0x1`. The in-box Windows 10 runtime does not know those two flags. Windows 11 hosts accept them, which would explain why this stop has only shown up on Windows 10 so far. The Windows 10 / GTX 1050 Ti stop above may be the same; I have not verified that. **Local experiment, opt-in and not posted as a PR yet.** When desktop serialization returns `E_INVALIDARG` for a 1.1 or 1.2 description that has `0x400`/`0x800` set, the `d3d12_xs` serializer retries once without those two bits. - **Root signatures:** 0 refusals remain, and the null-object stop is gone. - **With a 10 GiB job cap:** the run then hit `ERROR_COMMITMENT_LIMIT` (1455) in `XMemMapPhysicalPages`, 18,496 null maps that the caller continues past, and a later null read. That is this host's memory cap, not a separate bug. - **With `-MemoryGiB 16`:** the run went to the 300 s timeout with no stop. 8,516 presents (29.4 fps), 122,884 translated draws (42,237 not drawn), 8 pipelines translated / 3 missing, 0 failed storage requests. The scheduled button press was read by the title at 82 s. The window shows a **first non-black screen**: a text screen with a loading indicator, with the content offset to the right and clipped. **Question for the fix direction:** is a serializer fallback acceptable? It would strip the two heap-indexing flags only when the runtime refuses exactly them, with a one-time log line and a source-built test: a description with `0x400` and `0x800` serializes through `d3d12_xs` on a runtime that refuses it natively, and passes through unchanged where it is accepted. The translated shaders bind explicitly, so they do not depend on those flags. A native pipeline that really indexes the heap would still need a capable runtime. The alternative is to document Windows 11 or the Agility SDK as a requirement. I'll prepare whichever you prefer. AI-assisted.
R0Y00 commented 2026-11-25 05:04:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T04:45:04Z.


Thanks for tracing the null slot to the serializer and for separating the job-memory cap from that failure. Please use the existing opt-in candidate #1277 rather than opening a second retry PR. It preserves the original heap-indexing bits for the translator and uses the stripped blob only for the desktop root. Native shaders that actually index the heaps still require a capable runtime. D3D12 direct heap indexing specification

An independent GTX 1060 retest of #1277 would help close the Windows 10 part of #1160. If you can, use the same build, the in-box runtime, the same memory budget and cache state, first with the opt-in unset and then with X2W_D3D12_PERMISSIVE=1. Run ctest --preset release --no-tests=error -R '^(d3d12_xs_shim_heap_indexing|startup_heap_indexed_root.*)$' -V as the source-built control. Please report the commit, serializer HRESULT counts, and the first visible screen or next failure. A matched translated draw and a refused native heap-indexed use are the relevant behaviors. The clipped loading screen is an independent report from your local retry.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7153130167 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7153130167). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T04:45:04Z. --- Thanks for tracing the null slot to the serializer and for separating the job-memory cap from that failure. Please use the existing opt-in candidate #1277 rather than opening a second retry PR. It preserves the original heap-indexing bits for the translator and uses the stripped blob only for the desktop root. Native shaders that actually index the heaps still require a capable runtime. [D3D12 direct heap indexing specification](https://microsoft.github.io/DirectX-Specs/d3d/HLSL_SM_6_6_DynamicResources.html) An independent GTX 1060 retest of #1277 would help close the Windows 10 part of #1160. If you can, use the same build, the in-box runtime, the same memory budget and cache state, first with the opt-in unset and then with `X2W_D3D12_PERMISSIVE=1`. Run `ctest --preset release --no-tests=error -R '^(d3d12_xs_shim_heap_indexing|startup_heap_indexed_root.*)$' -V` as the source-built control. Please report the commit, serializer HRESULT counts, and the first visible screen or next failure. A matched translated draw and a refused native heap-indexed use are the relevant behaviors. The clipped loading screen is an independent report from your local retry.
MasterDomino commented 2026-11-25 05:04:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T04:47:47Z.


Cold- and warm-cache pair through confirmation on RX 9070 XT (main at 19e04be9)

The runs were on one build, with the same input and settings. The input goes past the account prompt and the acceptance page and confirms, so this covers the post-confirmation loading that the earlier cold-cache reports stopped before. Counts only; images and logs stay local.

Setup:

  • Build: main at 19e04be9, Release, MSVC 19.44. The build also carries one local counting-only storage diagnostic, not for PR.
  • Machine: Windows 11 build 26300, AMD Radeon RX 9070 XT (1002:7550, driver 32.0.31044.16), debug layer off.
  • Command:
    run.ps1 -Render -Translate -FakeUser -GpuMirror -StartupBelow40 -MemoryGiB 32 -ContinueAsserts 100000 -Seconds 420 -InputScript <27 timed presses> -StoragePath <fresh> -ShaderCache <cache>
    
  • Storage: a fresh storage folder for each run. The cold run started from an empty shader cache, and the warm run reused the cache the cold run filled.
Cold (empty cache) Warm (same cache)
End builder C++ exception at 293.0 s builder C++ exception at 290.6 s
Pipelines translated / missing 15 / 3 18 / 0
Translated draws (not drawn) 253,833 (1,945) 256,002 (0)
Executes 8,400 8,400
Textures uploaded 1,297 1,387
Presented picture non-black after the first presents (mean level 87.86/255) same
Translation refusals in the watcher's output s_load with a register offset through the resource heap: 2 the same 2, plus the first-pass retries of earlier failures: v_mul_hi_u32 3, MRTZ shape 2, v_mad_u32_u16 1, v_cvt_pknorm_u16_f32 1, s_pack_ll_b32_b16 1
  • Effect of -Translate: on a cold cache, all but 3 pipelines were translated during the run. On the warm cache nothing is missing and no draw is skipped.
  • Stop position: both runs stop at the same post-confirmation point: the acceleration-structure builder's Failed to allocate upload buffer from command-list slot 148, as in #1758. Cache state does not move it.
  • Sign-in (#2166, #2179): with -FakeUser on this Windows 11 host, no user-add call was observed in either run. Sign-in and acceptance pass, so the accepted-but-unconsumed user-add boundary from the Windows 10 reports does not appear in this configuration.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7153171389 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7153171389). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T04:47:47Z. --- ## Cold- and warm-cache pair through confirmation on RX 9070 XT (`main` at `19e04be9`) The runs were on one build, with the same input and settings. The input goes past the account prompt and the acceptance page and confirms, so this covers the post-confirmation loading that the earlier cold-cache reports stopped before. Counts only; images and logs stay local. **Setup:** - **Build:** `main` at `19e04be9`, Release, MSVC 19.44. The build also carries one local counting-only storage diagnostic, not for PR. - **Machine:** Windows 11 build 26300, AMD Radeon RX 9070 XT (1002:7550, driver 32.0.31044.16), debug layer off. - **Command:** ```powershell run.ps1 -Render -Translate -FakeUser -GpuMirror -StartupBelow40 -MemoryGiB 32 -ContinueAsserts 100000 -Seconds 420 -InputScript <27 timed presses> -StoragePath <fresh> -ShaderCache <cache> ``` - **Storage:** a fresh storage folder for each run. The cold run started from an empty shader cache, and the warm run reused the cache the cold run filled. | | Cold (empty cache) | Warm (same cache) | |---|---|---| | End | builder C++ exception at **293.0 s** | builder C++ exception at **290.6 s** | | Pipelines translated / missing | 15 / 3 | **18 / 0** | | Translated draws (not drawn) | 253,833 (1,945) | 256,002 (**0**) | | Executes | 8,400 | 8,400 | | Textures uploaded | 1,297 | 1,387 | | Presented picture | non-black after the first presents (mean level 87.86/255) | same | | Translation refusals in the watcher's output | `s_load` with a register offset through the resource heap: 2 | the same 2, plus the first-pass retries of earlier failures: `v_mul_hi_u32` 3, MRTZ shape 2, `v_mad_u32_u16` 1, `v_cvt_pknorm_u16_f32` 1, `s_pack_ll_b32_b16` 1 | - **Effect of `-Translate`:** on a cold cache, all but 3 pipelines were translated during the run. On the warm cache nothing is missing and no draw is skipped. - **Stop position:** both runs stop at the same post-confirmation point: the acceleration-structure builder's `Failed to allocate upload buffer` from command-list slot 148, as in #1758. Cache state does not move it. - **Sign-in (#2166, #2179):** with `-FakeUser` on this Windows 11 host, no user-add call was observed in either run. Sign-in and acceptance pass, so the accepted-but-unconsumed user-add boundary from the Windows 10 reports does not appear in this configuration. AI-assisted.
R0Y00 commented 2026-11-25 05:04:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T05:01:23Z.


Saved-profile loading artwork — matched local comparison, 25 November

The default slot-70 path from #2015 restored two distinct illustrated loading panels on this machine. With X2W_MEMORY_SRV_NARROW=1, the panels had black interiors. This comparison covers the transition after the opening ident in a run with an existing save. Correct rendering of the subsequent 3D scene remains unverified.

Windows 11 build 26200.9974, RTX 4060 Laptop, driver 32.0.16.1656, Release. This was a local integration of the slot-70 changes at 96853add onto the 56b801be startup host with the previously tested local slot-148 implementation and the same revision-8 shader cache. The candidate DLL's SHA-256 starts with e84ecdc92955faae. The existing partial-tile checks were retained. This measures the switch within that integration.

Both offline launches used the original on-disk executable. Before each launch, we copied and hashed the same six save files, 911 cache files and 26 binary-directory files. Both used the same process-relative controller script (base=start,4@65,4@90,4@106,4@114,4@122,4@130,4@138,4@146). Each ran to its 210-second observation limit.

Configuration Opening ident, capture time Subsequent presentation-surface samples
Narrow, value 1 79.8 s Black tilted panels at 89.0 and 98.4 s
Default, variable unset 80.0 s Two different full-colour illustrations at 86.3 and 95.6 s

The executable observed the first button press at 64.8 s in both runs. The visual comparison uses the common ident and the following panel sequence. The account picker appeared earlier in both. Both sets of images came from the same presentation-surface readback. The independent window recorder for the default arm stopped before this interval.

The PR's source-built texture checks also passed on this candidate on both WARP and the physical GPU. All seven textures per backend matched all 65,536 expected RGBA pixels per case. The two invocations were python -B tests/startup_address_console_check.py <startup_stream_consumer.exe> warp and the same command with hardware. Upload lifetime under a delayed GPU fence remains a separate review item on #2015.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7153376691 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7153376691). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T05:01:23Z. --- ### Saved-profile loading artwork — matched local comparison, 25 November The default slot-70 path from [#2015](https://github.com/R0Y00/Xbox2Windows/pull/2015) restored two distinct illustrated loading panels on this machine. With `X2W_MEMORY_SRV_NARROW=1`, the panels had black interiors. This comparison covers the transition after the opening ident in a run with an existing save. Correct rendering of the subsequent 3D scene remains unverified. Windows 11 build 26200.9974, RTX 4060 Laptop, driver 32.0.16.1656, Release. This was a local integration of the slot-70 changes at `96853add` onto the `56b801be` startup host with the previously tested local slot-148 implementation and the same revision-8 shader cache. The candidate DLL's SHA-256 starts with `e84ecdc92955faae`. The existing partial-tile checks were retained. This measures the switch within that integration. Both offline launches used the original on-disk executable. Before each launch, we copied and hashed the same six save files, 911 cache files and 26 binary-directory files. Both used the same process-relative controller script (`base=start,4@65,4@90,4@106,4@114,4@122,4@130,4@138,4@146`). Each ran to its 210-second observation limit. | Configuration | Opening ident, capture time | Subsequent presentation-surface samples | | --- | --- | --- | | Narrow, value 1 | 79.8 s | Black tilted panels at 89.0 and 98.4 s | | Default, variable unset | 80.0 s | Two different full-colour illustrations at 86.3 and 95.6 s | The executable observed the first button press at 64.8 s in both runs. The visual comparison uses the common ident and the following panel sequence. The account picker appeared earlier in both. Both sets of images came from the same presentation-surface readback. The independent window recorder for the default arm stopped before this interval. The PR's source-built texture checks also passed on this candidate on both WARP and the physical GPU. All seven textures per backend matched all 65,536 expected RGBA pixels per case. The two invocations were `python -B tests/startup_address_console_check.py <startup_stream_consumer.exe> warp` and the same command with `hardware`. Upload lifetime under a delayed GPU fence remains a separate review item on #2015.
R0Y00 commented 2026-11-25 06:01:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T05:27:06Z.


The source-built non-XOR slot-70 texture path is now on main in #2015 (b9da095a). The final candidate passed 12 Windows Release tests, including the 18-submit fence case on WARP and RTX 4060 Laptop. Deliberately using the old ring reproduced the wrong first payload. This merge covers the texture upload and its lifetime. The saved-profile artwork comparison above used a separate local slot-148 implementation; the tracked production upload slot remains #1758.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7153787288 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7153787288). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T05:27:06Z. --- The source-built non-XOR slot-70 texture path is now on main in #2015 (`b9da095a`). The final candidate passed 12 Windows Release tests, including the 18-submit fence case on WARP and RTX 4060 Laptop. Deliberately using the old ring reproduced the wrong first payload. This merge covers the texture upload and its lifetime. The saved-profile artwork comparison above used a separate local slot-148 implementation; the tracked production upload slot remains #1758.
Jess-Doit commented 2026-11-25 06:01:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T05:27:16Z.


Independent GTX 1060 retest of #1277 (Windows 10)

Build:

  • #1277 head 9398fce1 merged locally into main ab9a020c, giving local commit 816612c3. It merged cleanly and is not pushed.
  • I merged it because the PR head is 506 commits behind main.
  • Release, MSVC 19.44. One build was used for everything below.

Host: Windows 10 build 19045, in-box D3D12Core.dll 10.0.19041.5794 (no Agility SDK). GTX 1060 6GB, driver 32.0.15.6094. Gaming Services 39.118.30001.0. Debug layer off for the startup runs.

Source-built control

ctest --preset release --no-tests=error -R '^(d3d12_xs_shim_heap_indexing|startup_heap_indexed_root.*)$' -V

4 of 4 passed, 0 skipped.

  • startup_heap_indexed_root: 3,222 of 3,222 decisions as expected. Both _control mutants fail their matrix as intended.
  • d3d12_xs_shim_heap_indexing: this runtime refuses 0xc00, the retry succeeds and records 0xc00, and every provenance case is ok. Translation flags 0x402/0x802/0xc02 are kept, slot 34 heap flags are 0x0, and a copied blob gets no restored bits.

Matched startup pair

Same build, -MemoryGiB 16, identical copies of one warm shader cache, fresh storage, X2W_FAKE_USER=1 X2W_RUNTIME_LOCAL=1, offline, -Render -Translate -GpuMirror -HostCpu, 300 s. The serializer return and the builder's overall HRESULT were counted at the title's two call sites with X2W_LOG_AT (#2190).

Opt-in unset X2W_D3D12_PERMISSIVE=1
End null-pointer read at 1.85 s, before any D3D12XboxCreateDevice 300 s timeout, no stop
Serializer results none reached 89 × S_OK, 0 × E_INVALIDARG
Builder overall none reached 11,519 × S_OK, 0 failures
Retry log line none refuses the heap-indexing bits once (first-call log)
Presents none 8,413 in 290 s (29.0 fps)
Translated draws none 114,878 drawn, 1,309 not drawn; 5 pipelines translated, 1 missing
Window at the end none uniform dark, non-black background (frame 8,490)

Notes:

  • The unset row is not a serializer comparison. On this branch X2W_D3D12_PERMISSIVE also gates the stand-in's device path, so without it the run stops before any D3D12 device exists. The same build and host without the retry have been measured before: on main 498c23cc (#870 above), 26,757 × E_INVALIDARG against 26 × S_OK, then a null-slot stop at about 40 s.
  • Fewer serializer calls with the retry. 89 calls against 26,757 refusals before is consistent with successful roots being reused from the title's root-signature cache, while failures were retried each time. That is an inference from the call-site counts.
  • Input: the scheduled press at 70 s was not observed as read in this run. The earlier local-retry run saw it read at 82 s. That is one run each, so I am not drawing a conclusion yet.
  • Not separated here: the matched translated draw and a refused native heap-indexed use. Neither run isolated a pipeline that really indexes the heaps. If you have a specific pipeline or log line to look for, I can rerun with it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7153790393 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7153790393). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T05:27:16Z. --- ## Independent GTX 1060 retest of #1277 (Windows 10) **Build:** - #1277 head `9398fce1` merged locally into `main` `ab9a020c`, giving local commit `816612c3`. It merged cleanly and is not pushed. - I merged it because the PR head is 506 commits behind `main`. - Release, MSVC 19.44. One build was used for everything below. **Host:** Windows 10 build 19045, in-box `D3D12Core.dll` 10.0.19041.5794 (no Agility SDK). GTX 1060 6GB, driver 32.0.15.6094. Gaming Services 39.118.30001.0. Debug layer off for the startup runs. ### Source-built control ```powershell ctest --preset release --no-tests=error -R '^(d3d12_xs_shim_heap_indexing|startup_heap_indexed_root.*)$' -V ``` **4 of 4 passed, 0 skipped.** - `startup_heap_indexed_root`: 3,222 of 3,222 decisions as expected. Both `_control` mutants fail their matrix as intended. - `d3d12_xs_shim_heap_indexing`: this runtime refuses `0xc00`, the retry succeeds and records `0xc00`, and every provenance case is `ok`. Translation flags `0x402`/`0x802`/`0xc02` are kept, slot 34 heap flags are `0x0`, and a copied blob gets no restored bits. ### Matched startup pair Same build, `-MemoryGiB 16`, identical copies of one warm shader cache, fresh storage, `X2W_FAKE_USER=1 X2W_RUNTIME_LOCAL=1`, offline, `-Render -Translate -GpuMirror -HostCpu`, 300 s. The serializer return and the builder's overall HRESULT were counted at the title's two call sites with `X2W_LOG_AT` (#2190). | | Opt-in unset | `X2W_D3D12_PERMISSIVE=1` | |---|---|---| | End | null-pointer read at **1.85 s**, before any `D3D12XboxCreateDevice` | **300 s timeout, no stop** | | Serializer results | none reached | 89 × `S_OK`, 0 × `E_INVALIDARG` | | Builder overall | none reached | 11,519 × `S_OK`, 0 failures | | Retry log line | none | `refuses the heap-indexing bits` once (first-call log) | | Presents | none | 8,413 in 290 s (29.0 fps) | | Translated draws | none | 114,878 drawn, 1,309 not drawn; 5 pipelines translated, 1 missing | | Window at the end | none | uniform dark, non-black background (frame 8,490) | **Notes:** - **The unset row is not a serializer comparison.** On this branch `X2W_D3D12_PERMISSIVE` also gates the stand-in's device path, so without it the run stops before any D3D12 device exists. The same build and host without the retry have been measured before: on `main` `498c23cc` (#870 above), 26,757 × `E_INVALIDARG` against 26 × `S_OK`, then a null-slot stop at about 40 s. - **Fewer serializer calls with the retry.** 89 calls against 26,757 refusals before is consistent with successful roots being reused from the title's root-signature cache, while failures were retried each time. That is an inference from the call-site counts. - **Input:** the scheduled press at 70 s was not observed as read in this run. The earlier local-retry run saw it read at 82 s. That is one run each, so I am not drawing a conclusion yet. - **Not separated here:** the matched translated draw and a refused native heap-indexed use. Neither run isolated a pipeline that really indexes the heaps. If you have a specific pipeline or log line to look for, I can rerun with it. AI-assisted.
R0Y00 commented 2026-11-25 06:01:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T05:31:51Z.


Thanks for separating the runtime test from the startup comparison. #1277 is on main at a8a7b1d6. Your GTX 1060 run exercises the retry and provenance on the preceding revision. The unset-switch arm stops before device creation, so it does not isolate the serializer. The remaining comparison can keep X2W_D3D12_PERMISSIVE=1 in both builds and vary only the serializer change, with identical cache and input. For native-heap behavior, use the source-built indexed-root fixture rather than searching for a title pipeline. Please keep the last visible frame and observed input response separate from the fixture result.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7153863931 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7153863931). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T05:31:51Z. --- Thanks for separating the runtime test from the startup comparison. #1277 is on main at `a8a7b1d6`. Your GTX 1060 run exercises the retry and provenance on the preceding revision. The unset-switch arm stops before device creation, so it does not isolate the serializer. The remaining comparison can keep `X2W_D3D12_PERMISSIVE=1` in both builds and vary only the serializer change, with identical cache and input. For native-heap behavior, use the source-built indexed-root fixture rather than searching for a title pipeline. Please keep the last visible frame and observed input response separate from the fixture result.
R0Y00 commented 2026-11-25 06:01:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T05:42:35Z.


Mainline retest at 940cd178

The default slot-70 console-texture path landed in #2015, the discarded-recording and view checks in #2214, and production command-list upload allocation in #2216. The combined Windows Release verification passed 32/32 tests. The unchanged independent client from #2210 also passed on WARP and the RTX 4060 Laptop with the debug layer on and off (4/4). The layer reported zero errors in the enabled runs.

A local offline replay used the shim from main at 940cd178, the same original on-disk executable, saved profile (six files), input script and initial revision-8 shader cache (911 files). The launcher and cache were held at the earlier comparison baseline. Windows 11 build 26200.9974, RTX 4060 Laptop, driver 32.0.16.1656. The window recording showed two distinct illustrated loading panels, then a solid red background interspersed with title and credit cards, including the flamingo. The run crossed the earlier 131-second stop and ended with a second-chance read access violation at 202.60 seconds on the debugger clock. The cause of the access violation and its relationship to the missing scene colour remain open. No rendered 3D scene was verified in this replay.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154063846 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7154063846). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T05:42:35Z. --- ### Mainline retest at 940cd178 The default slot-70 console-texture path landed in #2015, the discarded-recording and view checks in #2214, and production command-list upload allocation in #2216. The combined Windows Release verification passed 32/32 tests. The unchanged independent client from #2210 also passed on WARP and the RTX 4060 Laptop with the debug layer on and off (4/4). The layer reported zero errors in the enabled runs. A local offline replay used the shim from main at 940cd178, the same original on-disk executable, saved profile (six files), input script and initial revision-8 shader cache (911 files). The launcher and cache were held at the earlier comparison baseline. Windows 11 build 26200.9974, RTX 4060 Laptop, driver 32.0.16.1656. The window recording showed two distinct illustrated loading panels, then a solid red background interspersed with title and credit cards, including the flamingo. The run crossed the earlier 131-second stop and ended with a second-chance read access violation at 202.60 seconds on the debugger clock. The cause of the access violation and its relationship to the missing scene colour remain open. No rendered 3D scene was verified in this replay.
Jess-Doit commented 2026-11-25 06:01:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T05:49:05Z.


GTX 1060 / Windows 10: #1277 + -StartupBelow40 reaches readable setup and the opening movie

This follows the #1277 retest. It uses the same local build (#1277 merged onto main ab9a020c), the same host (Windows 10 19045, in-box D3D12Core 10.0.19041, GTX 1060 6GB 32.0.15.6094), offline, -MemoryGiB 16, a warm shader cache, fresh storage and X2W_FAKE_USER=1 X2W_RUNTIME_LOCAL=1. A person drove the input by hand; there was no input script. Counts and observations only; nothing captured is posted.

run.ps1 -Render -Translate -FakeUser -GpuMirror -HostCpu -StartupBelow40 -MemoryGiB 16 -ContinueAsserts 200000 -Seconds 540

What the person at the screen saw:

  • Blank until about frame 5,500.
  • The opening movie, with correct picture and audio.
  • All the setup screens: navigation, UI text size, subtitles, brightness, finish setup, the notices and the privacy policy. All the text was readable and correct. In the same run without #1277's translation-copy restore, the setup text was mangled.
  • After the privacy policy, a blank screen until the 540 s limit ended the run. No stop and no crash.

Log counts:

Without #1277, local strip only, 400 s #1277 + -StartupBelow40, 540 s
Pipelines translated / missing 10 / 7 16 / 1
s_load through s… holding None translation failures 6 6 in translate.txt (not separated into new or retried)
BVH 40-bit stop yes, at 400 s (DestAccelerationStructureData can not have more than 40b of address set) no; startup blocks were placed below 2^40
Presents 11,233 14,159 (26.5 fps)
Title-read A presses 14 15 (262–418 s)
Storage requests failed 527 414: destination-capacity 332, bcpack 78, zlib 3, read-at-or-past-EOF 1
Startup translator compute requests — 2,689 refused, compute stage not supported
Commit peak 12.9 GiB 12.4 GiB

Open after the privacy policy:

  • The blank phase is either loading that does not finish or loading whose output is not drawn.
  • The storage failures start right after confirmation, and most are destination-capacity. That is the category #2133's 4 KiB allocation-info candidate addresses.
  • The refused compute requests would leave anything drawn through compute empty.
  • I have not separated those two. A longer run on the same build is next, to see whether the blank phase ends in a screen or a specific failure. I will report the first distinct failure category if there is one.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154166855 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7154166855). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T05:49:05Z. --- ## GTX 1060 / Windows 10: #1277 + `-StartupBelow40` reaches readable setup and the opening movie This follows the [#1277 retest](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7153790393). It uses the same local build (#1277 merged onto `main` `ab9a020c`), the same host (Windows 10 19045, in-box D3D12Core 10.0.19041, GTX 1060 6GB 32.0.15.6094), offline, `-MemoryGiB 16`, a warm shader cache, fresh storage and `X2W_FAKE_USER=1 X2W_RUNTIME_LOCAL=1`. A person drove the input by hand; there was no input script. Counts and observations only; nothing captured is posted. ```powershell run.ps1 -Render -Translate -FakeUser -GpuMirror -HostCpu -StartupBelow40 -MemoryGiB 16 -ContinueAsserts 200000 -Seconds 540 ``` **What the person at the screen saw:** - Blank until about frame 5,500. - The opening movie, with correct picture and audio. - All the setup screens: navigation, UI text size, subtitles, brightness, finish setup, the notices and the privacy policy. All the text was **readable and correct**. In the same run without #1277's translation-copy restore, the setup text was mangled. - After the privacy policy, a blank screen until the 540 s limit ended the run. No stop and no crash. **Log counts:** | | Without #1277, local strip only, 400 s | #1277 + `-StartupBelow40`, 540 s | |---|---|---| | Pipelines translated / missing | 10 / 7 | **16 / 1** | | `s_load through s… holding None` translation failures | 6 | 6 in `translate.txt` (not separated into new or retried) | | BVH 40-bit stop | yes, at 400 s (`DestAccelerationStructureData can not have more than 40b of address set`) | **no**; startup blocks were placed below 2^40 | | Presents | 11,233 | 14,159 (26.5 fps) | | Title-read A presses | 14 | 15 (262–418 s) | | Storage requests failed | 527 | 414: destination-capacity 332, bcpack 78, zlib 3, read-at-or-past-EOF 1 | | Startup translator compute requests | — | 2,689 refused, `compute stage not supported` | | Commit peak | 12.9 GiB | 12.4 GiB | **Open after the privacy policy:** - The blank phase is either loading that does not finish or loading whose output is not drawn. - The storage failures start right after confirmation, and most are destination-capacity. That is the category #2133's 4 KiB allocation-info candidate addresses. - The refused compute requests would leave anything drawn through compute empty. - I have not separated those two. A longer run on the same build is next, to see whether the blank phase ends in a screen or a specific failure. I will report the first distinct failure category if there is one. AI-assisted.
Jess-Doit commented 2026-11-25 06:01:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T05:59:37Z.


Follow-up to the driven run above: same build (#1277 on main ab9a020c), same host and flags, fresh storage, 1,200 s limit, input by hand.

  • Before the policy screen: the setup and notices were readable again, and a loading spinner was visible.
  • After the privacy policy: blank with no spinner from about frame 6,000. The last title-read press was at 219.6 s.
  • Stop at 493.7 s (14,187 presents, 29.5 fps): the second-chance C++ exception in the BVH builder, right after D3D12 XDXR Error: Failed to allocate upload buffer. The builder's preceding command-list calls are x2w-noop d3d12_xs.dll!CommandList::slot148.
  • So: with #1277 and -StartupBelow40, the GTX 1060 / Windows 10 path reaches the same slot 148 upload boundary as the RX 9070 XT, RTX 5080 and RTX 3090 reports in #1758. It no longer stops at the BVH 40-bit check, which -StartupBelow40 cleared.
  • Pipelines: 17 translated, 0 missing, 141,346 translated draws with 0 not drawn. The blank phase is not missing translations in this run.
  • Storage by the stop: 10,778 requests done, 1,565 failed: destination-capacity 1,410, bcpack 151, zlib 3, read-at-or-past-EOF 1. Commit peak 14.7 GiB under the 16 GiB cap.

I can rerun this exact configuration on the GTX 1060 once the slot 148 wiring is available.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154334636 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7154334636). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T05:59:37Z. --- Follow-up to the [driven run above](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7154166855): same build (#1277 on `main` `ab9a020c`), same host and flags, fresh storage, 1,200 s limit, input by hand. - **Before the policy screen:** the setup and notices were readable again, and a loading spinner was visible. - **After the privacy policy:** blank with no spinner from about frame 6,000. The last title-read press was at 219.6 s. - **Stop at 493.7 s** (14,187 presents, 29.5 fps): the second-chance C++ exception in the BVH builder, right after `D3D12 XDXR Error: Failed to allocate upload buffer`. The builder's preceding command-list calls are `x2w-noop d3d12_xs.dll!CommandList::slot148`. - **So:** with #1277 and `-StartupBelow40`, the GTX 1060 / Windows 10 path reaches the same **slot 148 upload** boundary as the RX 9070 XT, RTX 5080 and RTX 3090 reports in #1758. It no longer stops at the BVH 40-bit check, which `-StartupBelow40` cleared. - **Pipelines:** 17 translated, 0 missing, 141,346 translated draws with 0 not drawn. The blank phase is not missing translations in this run. - **Storage by the stop:** 10,778 requests done, **1,565 failed**: destination-capacity 1,410, bcpack 151, zlib 3, read-at-or-past-EOF 1. Commit peak 14.7 GiB under the 16 GiB cap. I can rerun this exact configuration on the GTX 1060 once the slot 148 wiring is available. AI-assisted.
R0Y00 commented 2026-11-25 07:01:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T06:31:15Z.


Jess-Doit, #2216 is now on main with the real slot 148, and #2210 adds the source-built acceptance. The matched GTX 1060 replay you offered would help: keep the #1277 changes, Windows 10 adapter, input, startup flags and initial cache state the same, and record the new commit, whether the former upload allocation stop clears, and the first later stop or last visible screen. If you can first run the source-built check, build startup_slot148_acceptance and run ctest --preset release --no-tests=error -R "^startup_slot148_acceptance(_nodebug)?_hardware$" -V. A summary with pass, fail or capability skip is enough. The blank phase before the old stop and the storage failure counts can stay as separate observations.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154875185 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7154875185). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T06:31:15Z. --- Jess-Doit, #2216 is now on main with the real slot 148, and #2210 adds the source-built acceptance. The matched GTX 1060 replay you offered would help: keep the #1277 changes, Windows 10 adapter, input, startup flags and initial cache state the same, and record the new commit, whether the former upload allocation stop clears, and the first later stop or last visible screen. If you can first run the source-built check, build startup_slot148_acceptance and run ctest --preset release --no-tests=error -R "^startup_slot148_acceptance(_nodebug)?_hardware$" -V. A summary with pass, fail or capability skip is enough. The blank phase before the old stop and the storage failure counts can stay as separate observations.
Jess-Doit commented 2026-11-25 07:01:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T06:50:04Z.


GTX 1060 / Windows 10: replay on main b7707495 (includes #2216 and #1277)

This replies to the request above. Same host as the earlier reports: Windows 10 build 19045, in-box D3D12, GTX 1060 6GB, driver 32.0.15.6094, Release. The flags are unchanged: -Render -Translate -FakeUser -GpuMirror -HostCpu -StartupBelow40 -ContinueAsserts 200000, with X2W_D3D12_PERMISSIVE=1 from run.ps1.

These runs differ from a matched replay in two ways:

  • Input was by hand, not scripted.
  • The shader cache started warm, copied from the previous run's end state, not from the earlier run's initial state.

1. Source-built check

ctest --preset release --no-tests=error -R "^startup_slot148_acceptance(_nodebug)?_(hardware|warp)$" -V
Test Result
startup_slot148_acceptance_hardware (GTX 1060, debug layer requested) pass
startup_slot148_acceptance_nodebug_hardware (GTX 1060, debug layer off) pass
startup_slot148_acceptance_warp (WARP 10.0.19041, debug layer requested) pass
startup_slot148_acceptance_nodebug_warp (WARP 10.0.19041, debug layer off) fail, 4 of 4 runs

The failing case is WARP-only and occurs only with the debug layer off:

  • Each run waits the full 10 s and exits 18 (ordering or timeout). In two of the four runs the process then segfaulted on the way out.
  • The last logged step is a queue Wait on the gate fence, followed by two ExecuteCommandLists and two Signals.

I have not looked further. It may be specific to the Windows 10 WARP; startup_image_load_d16_warp also fails on this host, on main as well.

2. Startup replay, two runs with different job memory caps

Run A, 16 GiB cap Run B, 22 GiB cap
Former upload-allocation stop cleared: no slot 148 no-op, no Failed to allocate upload buffer cleared
Blank loading phase after the policy screen from about frame 6,650, spinner now shown from about frame 5,610, spinner shown
Spinner disappears, screen goes black about frame 19,000 about frame 14,850
First later stop second-chance access violation, a write to a null address in the package BVH builder, at 697.4 s DEVICE_HUNG first noticed after an ExecuteCommandLists at 518.5 s; every later call returns DEVICE_REMOVED
Frames presented 19,248 14,861
Commit peak 16,301 MiB, at the cap 15,242 MiB, below the cap
Placed-resource creations refused with E_OUTOFMEMORY 5, all just before the stop 0
Storage: requests done / failed 10,897 / 2,330 10,833 / 2,105
Failure cause, mostly destination-capacity destination-capacity

For comparison, the previous report stopped at 493.7 s and 14,187 frames, at the upload allocation.

What I take from these runs:

  • The upload stop is gone on this adapter. Both runs got past it.
  • Run A's null write follows the out-of-memory refusals. It reached the job cap, and its last few placed-resource creations were refused. I take the null destination to come from those refusals. That is an inference from the log order; I have not traced the write.
  • Run B never reached its cap and stopped earlier, on a GPU hang. I don't have a breadcrumb or DRED capture for it. Host paging is possible: 22 GiB of commit on 16 GB of RAM. So is a shader loop that does not end on a wrong input.
  • Neither run showed a rendered 3D scene. The last visible screen was black in both.

If a breadcrumb or DRED capture of the hang would help, I can repeat Run B with that enabled.

Ready for more review.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7155206626 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7155206626). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T06:50:04Z. --- ## GTX 1060 / Windows 10: replay on `main` `b7707495` (includes #2216 and #1277) This replies to the request above. Same host as the earlier reports: Windows 10 build 19045, in-box D3D12, GTX 1060 6GB, driver 32.0.15.6094, Release. The flags are unchanged: `-Render -Translate -FakeUser -GpuMirror -HostCpu -StartupBelow40 -ContinueAsserts 200000`, with `X2W_D3D12_PERMISSIVE=1` from `run.ps1`. These runs differ from a matched replay in two ways: - Input was by hand, not scripted. - The shader cache started warm, copied from the previous run's end state, not from the earlier run's initial state. ### 1. Source-built check ```powershell ctest --preset release --no-tests=error -R "^startup_slot148_acceptance(_nodebug)?_(hardware|warp)$" -V ``` | Test | Result | |---|---| | `startup_slot148_acceptance_hardware` (GTX 1060, debug layer requested) | pass | | `startup_slot148_acceptance_nodebug_hardware` (GTX 1060, debug layer off) | pass | | `startup_slot148_acceptance_warp` (WARP 10.0.19041, debug layer requested) | pass | | `startup_slot148_acceptance_nodebug_warp` (WARP 10.0.19041, debug layer off) | **fail**, 4 of 4 runs | The failing case is WARP-only and occurs only with the debug layer off: - Each run waits the full 10 s and exits 18 (ordering or timeout). In two of the four runs the process then segfaulted on the way out. - The last logged step is a queue Wait on the gate fence, followed by two ExecuteCommandLists and two Signals. I have not looked further. It may be specific to the Windows 10 WARP; `startup_image_load_d16_warp` also fails on this host, on main as well. ### 2. Startup replay, two runs with different job memory caps | | Run A, 16 GiB cap | Run B, 22 GiB cap | |---|---|---| | Former upload-allocation stop | cleared: no slot 148 no-op, no `Failed to allocate upload buffer` | cleared | | Blank loading phase after the policy screen | from about frame 6,650, **spinner now shown** | from about frame 5,610, spinner shown | | Spinner disappears, screen goes black | about frame 19,000 | about frame 14,850 | | First later stop | second-chance access violation, a write to a null address in the package BVH builder, at 697.4 s | `DEVICE_HUNG` first noticed after an ExecuteCommandLists at 518.5 s; every later call returns `DEVICE_REMOVED` | | Frames presented | 19,248 | 14,861 | | Commit peak | 16,301 MiB, at the cap | 15,242 MiB, below the cap | | Placed-resource creations refused with `E_OUTOFMEMORY` | 5, all just before the stop | 0 | | Storage: requests done / failed | 10,897 / 2,330 | 10,833 / 2,105 | | Failure cause, mostly | destination-capacity | destination-capacity | For comparison, the previous report stopped at 493.7 s and 14,187 frames, at the upload allocation. What I take from these runs: - **The upload stop is gone on this adapter.** Both runs got past it. - **Run A's null write follows the out-of-memory refusals.** It reached the job cap, and its last few placed-resource creations were refused. I take the null destination to come from those refusals. That is an inference from the log order; I have not traced the write. - **Run B never reached its cap and stopped earlier, on a GPU hang.** I don't have a breadcrumb or DRED capture for it. Host paging is possible: 22 GiB of commit on 16 GB of RAM. So is a shader loop that does not end on a wrong input. - **Neither run showed a rendered 3D scene.** The last visible screen was black in both. If a breadcrumb or DRED capture of the hang would help, I can repeat Run B with that enabled. Ready for more review.
R0Y00 commented 2026-11-25 07:01:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T06:57:55Z.


Thanks for the replay. Both GTX 1060 runs cleared the old upload-allocation stop. Please take the 22 GiB run for the focused follow-up and keep the build, flags, input path and warm cache fixed where possible. If DRED is available, enable it before the device is created and report the last completed breadcrumb, first outstanding command, first device-removal HRESULT and whether DRED reports a page fault. Please post a short summary only. The 16 GiB null write followed allocation refusals at the cap and should be tracked separately. For the Windows 10 WARP no-debug timeout, please add the existing source-built command, exact build and exit-18 result to #2210 so that the hardware hang and fixture timing can be reproduced independently.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7155342738 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7155342738). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T06:57:55Z. --- Thanks for the replay. Both GTX 1060 runs cleared the old upload-allocation stop. Please take the 22 GiB run for the focused follow-up and keep the build, flags, input path and warm cache fixed where possible. If DRED is available, enable it before the device is created and report the last completed breadcrumb, first outstanding command, first device-removal HRESULT and whether DRED reports a page fault. Please post a short summary only. The 16 GiB null write followed allocation refusals at the cap and should be tracked separately. For the Windows 10 WARP no-debug timeout, please add the existing source-built command, exact build and exit-18 result to #2210 so that the hardware hang and fixture timing can be reproduced independently.
Jess-Doit commented 2026-11-25 08:05:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T07:15:19Z.


DRED repeat of the 22 GiB run: the hang did not recur

This used the same build (b7707495) and flags, plus a local DRED switch. The input was by hand, and the run started from the same warm cache as the 22 GiB run.

  • DRED: ID3D12DeviceRemovedExtendedDataSettings1 was available on this Windows 10 runtime. Auto-breadcrumbs, breadcrumb contexts and page-fault reporting were all forced on before device creation.
  • No device removal this time. So there is no breadcrumb, outstanding command, removal HRESULT or page fault to report.
  • Stop: a second-chance read access violation at address 0x28 in the title's own code, at 602.2 s and 17,109 frames.
  • Before the stop: 10 placed-resource creations were refused with E_OUTOFMEMORY, between 537 and 589 s.
    • Commit peaked at 16,293 MiB, below the 22 GiB cap.
    • So these refusals are not the job cap. I suspect the 6 GB adapter's video memory, but I have not measured it.

I'll repeat with DRED on and the adapter's video-memory budget and usage logged each heartbeat. I'll report the DRED fields if the hang recurs.

Ready for more review.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7155658024 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7155658024). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T07:15:19Z. --- ### DRED repeat of the 22 GiB run: the hang did not recur This used the same build (`b7707495`) and flags, plus a local DRED switch. The input was by hand, and the run started from the same warm cache as the 22 GiB run. - **DRED:** `ID3D12DeviceRemovedExtendedDataSettings1` was available on this Windows 10 runtime. Auto-breadcrumbs, breadcrumb contexts and page-fault reporting were all forced on before device creation. - **No device removal this time.** So there is no breadcrumb, outstanding command, removal HRESULT or page fault to report. - **Stop:** a second-chance read access violation at address `0x28` in the title's own code, at 602.2 s and 17,109 frames. - **Before the stop:** 10 placed-resource creations were refused with `E_OUTOFMEMORY`, between 537 and 589 s. - Commit peaked at 16,293 MiB, below the 22 GiB cap. - So these refusals are not the job cap. I suspect the 6 GB adapter's video memory, but I have not measured it. I'll repeat with DRED on and the adapter's video-memory budget and usage logged each heartbeat. I'll report the DRED fields if the hang recurs. Ready for more review.
Jess-Doit commented 2026-11-25 08:05:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T07:25:54Z.


DRED capture of the GTX 1060 hang (second repeat)

This run used the same build, flags, warm cache and input path. Local DRED was forced on before device creation, and each heartbeat logged the adapter's video memory budget and usage (IDXGIAdapter3::QueryVideoMemoryInfo).

The hang recurred at about 432 s, after 12,104 presented frames.

DRED field Result
First removal HRESULT 0x887a0006 (DXGI_ERROR_DEVICE_HUNG), first noticed after queue slot 35 (ExecuteCommandLists)
Breadcrumbs 374 nodes, none unfinished: every recorded list's last completed breadcrumb equals its count
First outstanding command none
Page fault none reported (VA 0)

Local video memory against the driver's budget, from the per-heartbeat log:

Time Local usage Local budget
35 s 1,521 MiB 5,261 MiB
65 s 5,429 MiB 5,107 MiB
215 s 6,990 MiB 5,106 MiB
305 s 8,778 MiB 5,107 MiB
432 s, the last heartbeat before removal 9,201 MiB 5,114 MiB

Non-local usage stayed at about 2.9 GiB of a 7.5 GiB budget. No placed-resource creation was refused in this run.

My reading:

  • No GPU work was left unfinished. All recorded work completed, and there was no fault.
  • The process was far over its local budget. It was above budget from about 65 s and reached about 1.8 times the budget at the hang.
  • So this looks like a residency or paging timeout, not a shader that failed to terminate. That is an inference; DRED does not record the cause.
  • The E_OUTOFMEMORY refusals before the two crashing runs fit the same pressure.

Ready for more review.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7155851979 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7155851979). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T07:25:54Z. --- ### DRED capture of the GTX 1060 hang (second repeat) This run used the same build, flags, warm cache and input path. Local DRED was forced on before device creation, and each heartbeat logged the adapter's video memory budget and usage (`IDXGIAdapter3::QueryVideoMemoryInfo`). The hang recurred at about 432 s, after 12,104 presented frames. | DRED field | Result | |---|---| | First removal HRESULT | `0x887a0006` (`DXGI_ERROR_DEVICE_HUNG`), first noticed after queue slot 35 (ExecuteCommandLists) | | Breadcrumbs | 374 nodes, **none unfinished**: every recorded list's last completed breadcrumb equals its count | | First outstanding command | none | | Page fault | none reported (VA 0) | Local video memory against the driver's budget, from the per-heartbeat log: | Time | Local usage | Local budget | |---|---|---| | 35 s | 1,521 MiB | 5,261 MiB | | 65 s | 5,429 MiB | 5,107 MiB | | 215 s | 6,990 MiB | 5,106 MiB | | 305 s | 8,778 MiB | 5,107 MiB | | 432 s, the last heartbeat before removal | 9,201 MiB | 5,114 MiB | Non-local usage stayed at about 2.9 GiB of a 7.5 GiB budget. No placed-resource creation was refused in this run. My reading: - **No GPU work was left unfinished.** All recorded work completed, and there was no fault. - **The process was far over its local budget.** It was above budget from about 65 s and reached about 1.8 times the budget at the hang. - **So this looks like a residency or paging timeout, not a shader that failed to terminate.** That is an inference; DRED does not record the cause. - **The `E_OUTOFMEMORY` refusals before the two crashing runs fit the same pressure.** Ready for more review.
R0Y00 commented 2026-11-25 08:05:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T07:42:08Z.


Saved-profile rendering follow-up, 25 November. A local integration on RTX 4060 Laptop (driver 32.0.16.1656, Windows 11 build 26200.9974) ran to the 310 s test limit. Loading artwork and credit overlays were visible. The final readback had a red center pixel. A 3D scene remains unverified on this configuration. The test used the existing save and input sequence, storage windows enabled, the translated indirect draw option, and a diagnostic shim with SHA-256 prefix 4c6be50f. This was a local integration build.

  • At the first 32 sampled pipeline/root combinations for a refused indirect mesh dispatch, 30 pipeline objects came directly from device slot 57 and two referenced a slot 57 object through slot 55. None had a desktop pipeline at dispatch. A source-built slot 86 test now distinguishes desktop AS and console MS using the actual shader stage. The live observations above are for slot 57. Slot 86 fixture and controls
  • A separate translated triangle reached its first raw SRV at table 0, offset 0. It requested 57,600 bytes at stride 4. The desktop buffer did not alias the application backing and the recording had no proof that its contents were current. The runtime refused the draw. A separate indexed draw reached a different guard. Table binding · GPU copy-range tracking
  • In a separate saved-profile run, a fenced readback through two submitted draws found the center texel already red before each draw and still red after it. This narrows the search to an earlier write or an upstream resource. The public fixture exercises the same measurement with controlled colors. Presentation trace

For independent retests, the most useful result is the creating device slot, the root actually bound when the indirect mesh dispatch is consumed, and the first reason that dispatch is refused. Please share aggregate results or source-built controls only.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7156155480 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7156155480). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T07:42:08Z. --- **Saved-profile rendering follow-up, 25 November.** A local integration on RTX 4060 Laptop (driver 32.0.16.1656, Windows 11 build 26200.9974) ran to the 310 s test limit. Loading artwork and credit overlays were visible. The final readback had a red center pixel. A 3D scene remains unverified on this configuration. The test used the existing save and input sequence, storage windows enabled, the translated indirect draw option, and a diagnostic shim with SHA-256 prefix `4c6be50f`. This was a local integration build. - At the first 32 sampled pipeline/root combinations for a refused indirect mesh dispatch, 30 pipeline objects came directly from device slot 57 and two referenced a slot 57 object through slot 55. None had a desktop pipeline at dispatch. A source-built slot 86 test now distinguishes desktop AS and console MS using the actual shader stage. The live observations above are for slot 57. [Slot 86 fixture and controls](https://github.com/R0Y00/Xbox2Windows/pull/2248) - A separate translated triangle reached its first raw SRV at table 0, offset 0. It requested 57,600 bytes at stride 4. The desktop buffer did not alias the application backing and the recording had no proof that its contents were current. The runtime refused the draw. A separate indexed draw reached a different guard. [Table binding](https://github.com/R0Y00/Xbox2Windows/pull/2236) · [GPU copy-range tracking](https://github.com/R0Y00/Xbox2Windows/pull/2240) - In a separate saved-profile run, a fenced readback through two submitted draws found the center texel already red before each draw and still red after it. This narrows the search to an earlier write or an upstream resource. The public fixture exercises the same measurement with controlled colors. [Presentation trace](https://github.com/R0Y00/Xbox2Windows/pull/2239) For independent retests, the most useful result is the creating device slot, the root actually bound when the indirect mesh dispatch is consumed, and the first reason that dispatch is refused. Please share aggregate results or source-built controls only.
R0Y00 commented 2026-11-25 08:05:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T07:42:35Z.


Thanks for the DRED repeat. The last sample was 9,201 MiB used against a 5,114 MiB local budget. All 374 recorded breadcrumb nodes were complete and DRED reported no fault address. This supports investigating residency pressure, but does not yet identify what triggered removal. For the next replay, keep the workload fixed and add aggregate live resource and heap bytes by category at each budget sample, splitting placed resources from committed textures, buffers and upload/readback heaps. Count underlying heaps once. A source-built allocate/release sequence should return each category to its baseline and catch missed retirement. If the hang recurs, share only the budget/count summary and DRED status. This can use the existing #874 tracking thread and does not need a new issue.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7156163956 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7156163956). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T07:42:35Z. --- Thanks for the DRED repeat. The last sample was 9,201 MiB used against a 5,114 MiB local budget. All 374 recorded breadcrumb nodes were complete and DRED reported no fault address. This supports investigating residency pressure, but does not yet identify what triggered removal. For the next replay, keep the workload fixed and add aggregate live resource and heap bytes by category at each budget sample, splitting placed resources from committed textures, buffers and upload/readback heaps. Count underlying heaps once. A source-built allocate/release sequence should return each category to its baseline and catch missed retirement. If the hang recurs, share only the budget/count summary and DRED status. This can use the existing #874 tracking thread and does not need a new issue.
lukaslw-lab commented 2026-11-25 08:05:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-25T07:53:14Z.


How much memory the post-confirmation load needs, for the 16 GiB allocation refusals in Jess-Doit's Run A above: about 22 GiB of process commit, or about 21.5 GiB with #2209's switches on. A 16 GiB cap is too small either way.

Setup:

  • Windows 10 19045, 16 GB RAM, RTX 3080 Ti, Release, the same post-confirmation input.
  • -Render -Translate -FakeUser -GpuMirror -HostCpu -StartupBelow40, 26 GiB job cap, 480 s.
  • Build ac423c5f (main 3f310ba4 + #2209, which is now merged as 45fa67fa).
  • Two runs: switches off, and X2W_XMEM_LAZY_COMMIT=1 X2W_XMEM_LAZY_STARTUP=1.

Process commit at the same load progress (inflated storage blocks, from the heartbeat), so the timing of the manual presses does not matter:

Inflated blocks Switches off Switches on Saved
25k 12,852 MiB 12,460 MiB 0.38 GiB
50k 16,796 MiB 15,851 MiB 0.92 GiB
100k 19,202 MiB 18,161 MiB 1.02 GiB
150k 20,504 MiB 19,371 MiB 1.11 GiB
200k 22,575 MiB 21,336 MiB 1.21 GiB
Peak 22,759 MiB 21,464 MiB 1.27 GiB
  • Neither run stopped. Both reached the 480 s limit with no E_OUTOFMEMORY and no second-chance exception.
  • The post-confirmation load needs about 21.5–22.8 GiB of process commit here, with or without the switches. A 16 GiB cap refuses allocations either way. An earlier run on 8150d800 with a 16 GiB cap and the switches on hit the cap at about 190 s and stopped on a null read after 9 placed-resource E_OUTOFMEMORY refusals, the same pattern as Run A. The switches only move that stop later in the load.
  • The working set is about the same (8.2 GiB off, 8.7 GiB on). The switches save commit for memory the title never touches; they don't reduce what it does use.

Counts only; logs stay local.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7156362699 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7156362699). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-25T07:53:14Z. --- How much memory the post-confirmation load needs, for the 16 GiB allocation refusals in Jess-Doit's Run A above: about 22 GiB of process commit, or about 21.5 GiB with #2209's switches on. A 16 GiB cap is too small either way. Setup: - Windows 10 19045, 16 GB RAM, RTX 3080 Ti, Release, the same post-confirmation input. - `-Render -Translate -FakeUser -GpuMirror -HostCpu -StartupBelow40`, 26 GiB job cap, 480 s. - Build `ac423c5f` (main `3f310ba4` + #2209, which is now merged as `45fa67fa`). - Two runs: switches off, and `X2W_XMEM_LAZY_COMMIT=1 X2W_XMEM_LAZY_STARTUP=1`. Process commit at the same load progress (inflated storage blocks, from the heartbeat), so the timing of the manual presses does not matter: | Inflated blocks | Switches off | Switches on | Saved | |---|---|---|---| | 25k | 12,852 MiB | 12,460 MiB | 0.38 GiB | | 50k | 16,796 MiB | 15,851 MiB | 0.92 GiB | | 100k | 19,202 MiB | 18,161 MiB | 1.02 GiB | | 150k | 20,504 MiB | 19,371 MiB | 1.11 GiB | | 200k | 22,575 MiB | 21,336 MiB | 1.21 GiB | | Peak | 22,759 MiB | 21,464 MiB | 1.27 GiB | - **Neither run stopped.** Both reached the 480 s limit with no `E_OUTOFMEMORY` and no second-chance exception. - **The post-confirmation load needs about 21.5–22.8 GiB of process commit here, with or without the switches.** A 16 GiB cap refuses allocations either way. An earlier run on `8150d800` with a 16 GiB cap and the switches on hit the cap at about 190 s and stopped on a null read after 9 placed-resource `E_OUTOFMEMORY` refusals, the same pattern as Run A. The switches only move that stop later in the load. - **The working set is about the same** (8.2 GiB off, 8.7 GiB on). The switches save commit for memory the title never touches; they don't reduce what it does use. Counts only; logs stay local. _AI-assisted (Claude Code)._
R0Y00 commented 2026-11-25 09:04:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T08:46:27Z.


#2142 is on main at a540a479. Its source-built any-lane control matched all 1,024 pixels at each of six thresholds on WARP and RTX 4060 Laptop. This clears the evaluator prerequisite for the wait/barrier follow-up. The application replay still needs the follow-up and an actual slot 57 dispatch result. For the independent GTX 1060 budget replay, the merged telemetry and measurement instructions are in #874.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7157452544 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7157452544). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T08:46:27Z. --- [#2142](https://github.com/R0Y00/Xbox2Windows/pull/2142) is on main at `a540a479`. Its source-built any-lane control matched all 1,024 pixels at each of six thresholds on WARP and RTX 4060 Laptop. This clears the evaluator prerequisite for the [wait/barrier follow-up](https://github.com/R0Y00/Xbox2Windows/pull/2142#issuecomment-7156856136). The application replay still needs the follow-up and an actual slot 57 dispatch result. For the independent GTX 1060 budget replay, the merged telemetry and measurement instructions are in [#874](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7157342486).
R0Y00 commented 2026-11-25 10:05:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T09:07:34Z.


Saved-profile mesh retest on RTX 4060 Laptop (32.0.16.1656), using the same initial save, shader cache and scripted input. With the default creation result the first 32 sampled mesh dispatches used fixed slot 57. An experimental build returned E_NOTIMPL and a null pipeline for the unsupported fixed mesh shape. The first 32 sampled dispatches then used stream slot 86. The samples establish a change in the route selected during the run. A one-to-one retry of individual requests has yet to be established.

The stream sample contained 14 depth-only and 18 mesh-plus-pixel states. Digests taken at pipeline creation matched the captured stages, and the root bound at dispatch matched the creation root in all 32 cases. In separate desktop replay, the 32 captured states each built on hardware and WARP using SDK-validated translated stages. Source-built execution and readback, including the D16 and multi-target cases and the WARP depth-only limitation, are documented in #2270.

The original process forwarded 0 of the 32 sampled mesh dispatches. All 32 had a root SRV without a proven desktop backing at the point of consumption. The indirect arguments also need a proven writer and queue ordering. The 230 s and 251 s captures still showed a red surface. Next comparison is physical page identity plus GPU copy/fence provenance for one consumed argument and its root SRV. No new scene milestone claimed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7157908927 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7157908927). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T09:07:34Z. --- Saved-profile mesh retest on RTX 4060 Laptop (32.0.16.1656), using the same initial save, shader cache and scripted input. With the default creation result the first 32 sampled mesh dispatches used fixed slot 57. An experimental build returned E_NOTIMPL and a null pipeline for the unsupported fixed mesh shape. The first 32 sampled dispatches then used stream slot 86. The samples establish a change in the route selected during the run. A one-to-one retry of individual requests has yet to be established. The stream sample contained 14 depth-only and 18 mesh-plus-pixel states. Digests taken at pipeline creation matched the captured stages, and the root bound at dispatch matched the creation root in all 32 cases. In separate desktop replay, the 32 captured states each built on hardware and WARP using SDK-validated translated stages. Source-built execution and readback, including the D16 and multi-target cases and the WARP depth-only limitation, are documented in #2270. The original process forwarded 0 of the 32 sampled mesh dispatches. All 32 had a root SRV without a proven desktop backing at the point of consumption. The indirect arguments also need a proven writer and queue ordering. The 230 s and 251 s captures still showed a red surface. Next comparison is physical page identity plus GPU copy/fence provenance for one consumed argument and its root SRV. No new scene milestone claimed.
lukaslw-lab commented 2026-11-25 11:02:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-25T10:25:03Z.


After #2279, the post-confirmation load runs at the paced 30 fps on this host instead of about 1–2.5 fps.

Setup: Windows 10 19045, 16 GB RAM, RTX 3080 Ti, Release, tools/startup/run.ps1 -Render -Translate -FakeUser -GpuMirror -HostCpu -StartupBelow40, the same post-confirmation input. Before: main e94e14ff with the old translation. After: the same requests translated with #2279's head b55187e5.

During the load (process commit rising to about 22 GiB) Before #2279 After #2279
Presents per 5 s (from the D3D12 heartbeat) 5–13 (about 1–2.5 fps) 150 (30 fps, the 33 ms frame pacing)
CPU wait for the GPU per present 330–440 ms 2–8 ms
GPU time per direct-queue execute 36–44 ms 3.6–4.9 ms
  • The rows other than the first come from local timing-only diagnostics: QueryPerformanceCounter around the present path, and GPU timestamps around each execute. They are not on main.
  • Before #2279, three translated full-screen pixel passes took about 99% of the GPU frame. Their loops ran to the 65,536-iteration guard (#2278).

Next, from two runs (both after the load had finished):

  • Frame rate after the load: about 1–4 fps from about 130,000 inflated blocks on, while the GPU is mostly idle. The CPU time is in the D3D12 stand-in: command-list calls take 3.5–7.5 s and view creation 5–6.8 s per 5 s report. Free RAM was down to 1 GB with about 24,000 page reads per second, so part of this may be paging on a 16 GB host rather than stand-in cost.
  • Presents stop after the animation sequence: at about 616 s and 667 s; input is no longer read. Four thread snapshots over 150 s: 100 of 103 threads are unchanged, waiting in the title's own code. None is inside the D3D12 stand-in apart from its window message loop. The only recurring call is the connectivity hint (37e56907 slot 15, about 118 a second), which the stand-in answers as "initialized, no connectivity". A system text-to-speech thread (sapi_onecore) is also active. What the title waits for is not yet known.

Counts only; logs stay local.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7159665547 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7159665547). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-25T10:25:03Z. --- After #2279, the post-confirmation load runs at the paced 30 fps on this host instead of about 1–2.5 fps. Setup: Windows 10 19045, 16 GB RAM, RTX 3080 Ti, Release, `tools/startup/run.ps1 -Render -Translate -FakeUser -GpuMirror -HostCpu -StartupBelow40`, the same post-confirmation input. Before: `main` `e94e14ff` with the old translation. After: the same requests translated with #2279's head `b55187e5`. | During the load (process commit rising to about 22 GiB) | Before #2279 | After #2279 | |---|---|---| | Presents per 5 s (from the D3D12 heartbeat) | 5–13 (about 1–2.5 fps) | 150 (30 fps, the 33 ms frame pacing) | | CPU wait for the GPU per present | 330–440 ms | 2–8 ms | | GPU time per direct-queue execute | 36–44 ms | 3.6–4.9 ms | - The rows other than the first come from local timing-only diagnostics: QueryPerformanceCounter around the present path, and GPU timestamps around each execute. They are not on `main`. - Before #2279, three translated full-screen pixel passes took about 99% of the GPU frame. Their loops ran to the 65,536-iteration guard (#2278). Next, from two runs (both after the load had finished): - **Frame rate after the load:** about 1–4 fps from about 130,000 inflated blocks on, while the GPU is mostly idle. The CPU time is in the D3D12 stand-in: command-list calls take 3.5–7.5 s and view creation 5–6.8 s per 5 s report. Free RAM was down to 1 GB with about 24,000 page reads per second, so part of this may be paging on a 16 GB host rather than stand-in cost. - **Presents stop after the animation sequence:** at about 616 s and 667 s; input is no longer read. Four thread snapshots over 150 s: 100 of 103 threads are unchanged, waiting in the title's own code. None is inside the D3D12 stand-in apart from its window message loop. The only recurring call is the connectivity hint (`37e56907` slot 15, about 118 a second), which the stand-in answers as "initialized, no connectivity". A system text-to-speech thread (`sapi_onecore`) is also active. What the title waits for is not yet known. Counts only; logs stay local. AI-assisted (Claude Code).
tedin7 commented 2026-11-25 11:02:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T10:28:23Z.


Claiming a focused slice: XPackageMountWithUiAsync + XPackageMountWithUiResult in src/xgameruntime_shim.cpp (manual-queue async, same contract as #2179/#2201).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7159741914 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7159741914). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T10:28:23Z. --- Claiming a focused slice: XPackageMountWithUiAsync + XPackageMountWithUiResult in src/xgameruntime_shim.cpp (manual-queue async, same contract as #2179/#2201).
sydney-0o commented 2026-11-25 12:01:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by sydney-0o on 2026-11-25T11:11:11Z.


PR #2303 adds the focused source-built coverage for the mesh root SRV follow-up in #1914. The fixture uses slot 15 on a COPY queue and a cached slot 86 mesh draw on a DIRECT queue. It checks writer ordering, rejects a mismatched page or byte range, and verifies page reuse after the consumer fence. Both mesh cases pass on app-local WARP 1.0.22 with zero D3D12 debug warnings or errors. The GTX 1080 Ti passes the writer fixture and reports capability skips for mesh. This update covers the source-built queue and shader path.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160708615 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7160708615). Originally posted by [sydney-0o](https://github.com/sydney-0o) on 2026-11-25T11:11:11Z. --- [PR #2303](https://github.com/R0Y00/Xbox2Windows/pull/2303) adds the focused source-built coverage for the mesh root SRV follow-up in #1914. The fixture uses slot 15 on a COPY queue and a cached slot 86 mesh draw on a DIRECT queue. It checks writer ordering, rejects a mismatched page or byte range, and verifies page reuse after the consumer fence. Both mesh cases pass on app-local WARP 1.0.22 with zero D3D12 debug warnings or errors. The GTX 1080 Ti passes the writer fixture and reports capability skips for mesh. This update covers the source-built queue and shader path.
R0Y00 commented 2026-11-25 12:01:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T11:46:33Z.


#2303 is on main at 209938b0. The source-built Release suite passed 19/19 on WARP and RTX 4060 Laptop. In the COPY-to-DIRECT mesh case, the ordered path read the updated word, omitting the wait read the old word, and a wrong page or range left the target clear. The page stayed pinned through the gated consumer.

For the existing saved-profile replay, use X2W_MESH86_XMEM_SRV=1 and record whether the slot-15 writer publishes the same page and byte range the slot-86 list consumes, whether the consumer waits and forwards the command, and the first refusal if it stops. The source-built entry point is ctest --preset release --no-tests=error -j 1 -R '^startup_indirect_mesh_lease_' -V. The indirect-argument writer and fence still need separate evidence.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7161483472 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7161483472). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T11:46:33Z. --- #2303 is on `main` at `209938b0`. The source-built Release suite passed 19/19 on WARP and RTX 4060 Laptop. In the COPY-to-DIRECT mesh case, the ordered path read the updated word, omitting the wait read the old word, and a wrong page or range left the target clear. The page stayed pinned through the gated consumer. For the existing saved-profile replay, use `X2W_MESH86_XMEM_SRV=1` and record whether the slot-15 writer publishes the same page and byte range the slot-86 list consumes, whether the consumer waits and forwards the command, and the first refusal if it stops. The source-built entry point is `ctest --preset release --no-tests=error -j 1 -R '^startup_indirect_mesh_lease_' -V`. The indirect-argument writer and fence still need separate evidence.
R0Y00 commented 2026-11-25 14:05:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T13:04:51Z.


#2332 landed at fcc8d925. In an independent Windows Release run, the source-built lease tests passed 8/8 on WARP and RTX 4060 Laptop. The 12-byte DispatchMesh argument record produced 8/8 pixels with the producer wait and 4/8 with the wait omitted. An unsubmitted writer, different page or shifted range left the target clear. Reproduce after building startup_indirect_draw_indexed and xmem_shim:

ctest --preset release --no-tests=error -j 1 -R '^startup_indirect_mesh_(xmem_arguments|lease_)' -V

This covers the uncached mesh argument path. The prior #2303 cached slot-86 root SRV fixture and the new indirect argument fixture show the two handoffs separately. The next claimable source-built check, if unclaimed, is one cached slot-86 command that needs both independently published ranges. Use a root word and an argument group count that affect different parts of the readback. Omit each writer wait separately and remap one range as refusal controls. Report both writers and their fence outcomes. This extends the existing #1759 and #1914 work; the saved-profile replay result remains unchanged.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7163262516 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7163262516). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T13:04:51Z. --- #2332 landed at fcc8d925. In an independent Windows Release run, the source-built lease tests passed 8/8 on WARP and RTX 4060 Laptop. The 12-byte DispatchMesh argument record produced 8/8 pixels with the producer wait and 4/8 with the wait omitted. An unsubmitted writer, different page or shifted range left the target clear. Reproduce after building startup_indirect_draw_indexed and xmem_shim: ```powershell ctest --preset release --no-tests=error -j 1 -R '^startup_indirect_mesh_(xmem_arguments|lease_)' -V ``` This covers the uncached mesh argument path. The prior #2303 cached slot-86 root SRV fixture and the new indirect argument fixture show the two handoffs separately. The next claimable source-built check, if unclaimed, is one cached slot-86 command that needs both independently published ranges. Use a root word and an argument group count that affect different parts of the readback. Omit each writer wait separately and remap one range as refusal controls. Report both writers and their fence outcomes. This extends the existing #1759 and #1914 work; the saved-profile replay result remains unchanged.
SimSalabimse commented 2026-11-25 14:05:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-25T13:14:04Z.


Account-picker Y / QueryApiImpl follow-up

Tip-of-main after #2166/#2201 still showed zero QueryApiImpl / provider … proxied with Y=0x20 (scoped package GPA patch live). Dig: delay-imported QueryApiImpl can bind via the CRT helper’s unhooked GetProcAddress, and a pre-attach GPA cache is never rewritten by IAT hooks.

PR: https://github.com/R0Y00/Xbox2Windows/pull/2349 (draft, 95f0f675) — rewrite bound delay QueryApiImpl slots only; always-log that GPA name; remember-via / status diagnostics. Synthetic + Windows scope fixture with unbound-delay and pre-attach-cache negatives. Not a FakeUser slot-7 change.

Claimable follow-ups (Discord / smaller-model contributors; search before duping):

  1. Export trampoline for pre-attach QueryApiImpl caches (decoy export must stay untouched).
  2. Optional run.ps1 -TraceApi → X2W_TRACE_API=1 (-TraceCalls ≠ TRACE_API).

Retest after rebuilding the proxy from that PR: $env:X2W_TRACE_API='1', press Y once the picker is up; look for QueryApiImpl remembered via, bound-delay rewrite lines, and provider … proxied. Still zero providers → trampoline path. Title-neutral; no game files.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7163480984 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7163480984). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-25T13:14:04Z. --- ## Account-picker Y / QueryApiImpl follow-up Tip-of-main after #2166/#2201 still showed **zero** `QueryApiImpl` / `provider … proxied` with Y=`0x20` (scoped package GPA patch live). Dig: delay-imported `QueryApiImpl` can bind via the CRT helper’s unhooked `GetProcAddress`, and a pre-attach GPA cache is never rewritten by IAT hooks. **PR:** https://github.com/R0Y00/Xbox2Windows/pull/2349 (draft, `95f0f675`) — rewrite **bound** delay `QueryApiImpl` slots only; always-log that GPA name; remember-via / status diagnostics. Synthetic + Windows scope fixture with unbound-delay and pre-attach-cache negatives. **Not** a FakeUser slot-7 change. **Claimable follow-ups** (Discord / smaller-model contributors; search before duping): 1. Export trampoline for pre-attach `QueryApiImpl` caches (decoy export must stay untouched). 2. Optional `run.ps1 -TraceApi` → `X2W_TRACE_API=1` (`-TraceCalls` ≠ TRACE_API). Retest after rebuilding the proxy from that PR: `$env:X2W_TRACE_API='1'`, press Y once the picker is up; look for `QueryApiImpl remembered via`, bound-delay rewrite lines, and `provider … proxied`. Still zero providers → trampoline path. Title-neutral; no game files.
SimSalabimse commented 2026-11-25 14:05:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-25T13:14:14Z.


Claimable issues opened for Discord handoff:

PR remains https://github.com/R0Y00/Xbox2Windows/pull/2349.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7163484999 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7163484999). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-25T13:14:14Z. --- Claimable issues opened for Discord handoff: - https://github.com/R0Y00/Xbox2Windows/issues/2350 — trampoline `xgameruntime!QueryApiImpl` for pre-attach GPA caches (`help wanted` / `good first issue`) - https://github.com/R0Y00/Xbox2Windows/issues/2351 — optional `run.ps1 -TraceApi` / `X2W_TRACE_API` (`help wanted` / `good first issue`) PR remains https://github.com/R0Y00/Xbox2Windows/pull/2349.
R0Y00 commented 2026-11-25 15:02:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T14:39:35Z.


The paired-input slot 86 slice landed in #2377 at afd02a24. My independent Windows Release run passed 20/20 on the selected mesh and refusal checks. On WARP and RTX 4060 Laptop, both writers gave eight red pixels, omitting the root wait gave eight green pixels, and omitting the arguments wait left four red and four clear. Running only the argument initializer gave zero pixels. The argument-page remap was refused at submission.

Build startup_indirect_draw_indexed and xmem_shim, then run ctest --preset release --no-tests=error -j 1 -R '^(startup_mesh86_srv_proof|startup_indirect_(mesh_(xmem_arguments.*|lease_.*)|translated_refusal_census_.*))$' -V. #2375 has additional paired-retirement and root-page remap controls worth preserving as a follow-up. The next executable retest still needs the same command's real root SRV writer and argument writer, their waits, the first refusal or forward count, and the late surface. Share aggregate values only.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7165614960 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7165614960). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T14:39:35Z. --- The paired-input slot 86 slice landed in #2377 at `afd02a24`. My independent Windows Release run passed 20/20 on the selected mesh and refusal checks. On WARP and RTX 4060 Laptop, both writers gave eight red pixels, omitting the root wait gave eight green pixels, and omitting the arguments wait left four red and four clear. Running only the argument initializer gave zero pixels. The argument-page remap was refused at submission. Build `startup_indirect_draw_indexed` and `xmem_shim`, then run `ctest --preset release --no-tests=error -j 1 -R '^(startup_mesh86_srv_proof|startup_indirect_(mesh_(xmem_arguments.*|lease_.*)|translated_refusal_census_.*))$' -V`. #2375 has additional paired-retirement and root-page remap controls worth preserving as a follow-up. The next executable retest still needs the same command's real root SRV writer and argument writer, their waits, the first refusal or forward count, and the late surface. Share aggregate values only.
sydney-0o commented 2026-11-25 16:05:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by sydney-0o on 2026-11-25T15:37:46Z.


Claiming the producer and fence investigation for one cached slot 86 mesh call after #2377. I’ll trace the root SRV and indirect argument ranges for the same call back to their last observed writers, check the physical page and byte-range matches, and correlate producer submission with DIRECT queue ordering. I’ll report the first refusal or forwarded count and late-surface outcome if available from a matched replay. I’ll use the paired-writer fixture as a control on Windows x64 (10.0.19045, Release), with WARP and hardware capability reported separately. The relevant interfaces are the startup command-list and queue wrappers and their XMem publication and lease checks. I’ll share only aggregate observations and link any diagnostic changes here.

Saved-profile baseline · Post-#2377 follow-up · #1412, #1759, #1914

Codex-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7167137113 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7167137113). Originally posted by [sydney-0o](https://github.com/sydney-0o) on 2026-11-25T15:37:46Z. --- Claiming the producer and fence investigation for one cached slot 86 mesh call after #2377. I’ll trace the root SRV and indirect argument ranges for the same call back to their last observed writers, check the physical page and byte-range matches, and correlate producer submission with DIRECT queue ordering. I’ll report the first refusal or forwarded count and late-surface outcome if available from a matched replay. I’ll use the paired-writer fixture as a control on Windows x64 (10.0.19045, Release), with WARP and hardware capability reported separately. The relevant interfaces are the startup command-list and queue wrappers and their XMem publication and lease checks. I’ll share only aggregate observations and link any diagnostic changes here. [Saved-profile baseline](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7157908927) · [Post-#2377 follow-up](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7165614960) · #1412, #1759, #1914 Codex-assisted.
charliejeanes1-debug commented 2026-11-25 19:04:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by charliejeanes1-debug on 2026-11-25T18:40:50Z.


audio now plays breifly of a helicopter and then stops black screen but not crashing and no intro or video loading on 1050ti

update i left this and now i have a grey screen from black with an e in bottom right corner

navigation experience loaded to but broken

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171244091 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7171244091). Originally posted by [charliejeanes1-debug](https://github.com/charliejeanes1-debug) on 2026-11-25T18:40:50Z. --- audio now plays breifly of a helicopter and then stops black screen but not crashing and no intro or video loading on 1050ti update i left this and now i have a grey screen from black with an e in bottom right corner navigation experience loaded to but broken
charliejeanes1-debug commented 2026-11-25 19:04:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by charliejeanes1-debug on 2026-11-25T18:46:30Z.


stuck at legal notice wont let me click past

image
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171380492 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7171380492). Originally posted by [charliejeanes1-debug](https://github.com/charliejeanes1-debug) on 2026-11-25T18:46:30Z. --- stuck at legal notice wont let me click past <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/0b45c438-c973-4f64-a5c7-1f8b298dd40e" />
sydney-0o commented 2026-11-25 19:04:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by sydney-0o on 2026-11-25T18:42:53Z.


Update to my claim: #2504 adds the opt-in one-call writer and fence trace. At rebased head 2b87fcfc, the app-local WARP selection in Windows Sandbox passed 15 checks including two expected-failure controls. The trace identifies both independent writer submissions and DIRECT waits in the source-built fixture. It also reports the unsubmitted argument writer and separate root and argument remap refusals.

The cold-profile sandbox did not supply real writer evidence. A local-initialization run reached the local storage implementation and D3D12, then used its 1,000-assert continuation allowance. It emitted zero slot 86 requests. The real saved-profile writer and fence attribution remains open.

If the existing saved-profile setup can be rerun, set X2W_MESH86_WRITER_TRACE=1 with both XMem mesh handoffs enabled. The useful output is the aggregate input ranges and ordering for one call, the first refusal or forward result, and the late-surface observation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171293410 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7171293410). Originally posted by [sydney-0o](https://github.com/sydney-0o) on 2026-11-25T18:42:53Z. --- Update to [my claim](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7167137113): #2504 adds the opt-in one-call writer and fence trace. At rebased head `2b87fcfc`, the app-local WARP selection in Windows Sandbox passed 15 checks including two expected-failure controls. The trace identifies both independent writer submissions and DIRECT waits in the source-built fixture. It also reports the unsubmitted argument writer and separate root and argument remap refusals. The cold-profile sandbox did not supply real writer evidence. A local-initialization run reached the local storage implementation and D3D12, then used its 1,000-assert continuation allowance. It emitted zero slot 86 requests. The real saved-profile writer and fence attribution remains open. If the existing saved-profile setup can be rerun, set `X2W_MESH86_WRITER_TRACE=1` with both XMem mesh handoffs enabled. The useful output is the aggregate input ranges and ordering for one call, the first refusal or forward result, and the late-surface observation.
charliejeanes1-debug commented 2026-11-25 19:04:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by charliejeanes1-debug on 2026-11-25T18:57:56Z.


stuck on black screen after accepting terms and conditions and terms of service.

image
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171640616 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7171640616). Originally posted by [charliejeanes1-debug](https://github.com/charliejeanes1-debug) on 2026-11-25T18:57:56Z. --- stuck on black screen after accepting terms and conditions and terms of service. <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/7cb9e52a-4b43-4309-9c08-a7baee2aba1e" />
R0Y00 commented 2026-11-25 20:04:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T19:30:12Z.


Thanks for the follow-up on the post-terms black screen. Please share the tested revision, Windows build, GPU driver, and the last visible response after you accepted the terms. If the process stays alive through a fixed observation window, include how long you waited. For a newer build, the triage report from #2510 can also distinguish forwarded indirect calls from graphics and compute refusals. A short summary with those counts is enough. Keep the local executable, inputs and raw logs private.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7172386064 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7172386064). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T19:30:12Z. --- Thanks for the follow-up on the post-terms black screen. Please share the tested revision, Windows build, GPU driver, and the last visible response after you accepted the terms. If the process stays alive through a fixed observation window, include how long you waited. For a newer build, the triage report from #2510 can also distinguish forwarded indirect calls from graphics and compute refusals. A short summary with those counts is enough. Keep the local executable, inputs and raw logs private.
R0Y00 commented 2026-11-25 20:04:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T19:44:36Z.


The paired slot 86 writer/fence trace from #2504 is now on main at 510f7f5b. Its source-built check correlates two independent writers with the DIRECT waits and detects either input page being remapped. Sydney’s claim still owns the matched executable replay. The next evidence is one selected attempt with its first refusal or forwarding result, the two writer/wait relationships if observed, and the last visible stage. Please share only the aggregate result and keep the trace local.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7172707314 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7172707314). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T19:44:36Z. --- The paired slot 86 writer/fence trace from #2504 is now on main at `510f7f5b`. Its source-built check correlates two independent writers with the DIRECT waits and detects either input page being remapped. Sydney’s claim still owns the matched executable replay. The next evidence is one selected attempt with its first refusal or forwarding result, the two writer/wait relationships if observed, and the last visible stage. Please share only the aggregate result and keep the trace local.
charliejeanes1-debug commented 2026-11-25 21:01:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by charliejeanes1-debug on 2026-11-25T20:11:09Z.


Thanks for the follow-up on the post-terms black screen. Please share the tested revision, Windows build, GPU driver, and the last visible response after you accepted the terms. If the process stays alive through a fixed observation window, include how long you waited. For a newer build, the triage report from #2510 can also distinguish forwarded indirect calls from graphics and compute refusals. A short summary with those counts is enough. Keep the local executable, inputs and raw logs private.

Thanks. Here are the details:

  • Revision: the four post-terms failures were on commits after a6c8d80d, up to the one before bfba03c9 (auto-update ran during the evening). The bfba03c9 run had API trace and call tracing on, ran at about 14 fps and didn't get past the terms screen in 300 s. I'll repeat on bfba03c9 without tracing.
  • Windows: Windows 10 Pro 22H2, build 19045
  • GPU / driver: GTX 1050 Ti 4 GB, driver 32.0.15.8228 (582.28)
  • Command: run.ps1 -Exe G:\game_scarlett_master.exe -DataDir G:\ -Seconds 300 -MemoryGiB 24 -ContinueAsserts 1000 -Render -FakeUser -GpuMirror -StartupBelow40

Last visible response after accepting the terms: for me it isn't fully black. After Confirm the title shows a dark loading screen with a spinner at 25–27 fps. Then the D3D12 device is removed, GetDeviceRemovedReason → 0x887A0001 (INVALID_CALL). About 30 ms later the title hits its own breakpoint (continued). No frames are presented after that, and the screen stays frozen on the last loading frame.

Run Removed at First noticed after Process alive afterwards
1 199 s Device view 18 yes, 101 s until the 300 s limit
2 231 s window present yes, 69 s
3 266 s Device view 18 yes, 34 s
4 284 s window present yes, 16 s

Just before removal: storage about 9,680 requests done, 0 failed. Commit peak about 11.96 GiB. 1,390 textures uploaded (about 5.4 GiB). 14–16 pipelines translated, 0–2 missing. Resource::Map after removal → 0x887A0005.

ExecuteIndirect (#2510 counts): forwarded 0, refused graphics-pipeline 0, refused compute-pipeline 0, placeholder-signature 0, other 0. Pipelines first looked up by ExecuteIndirect: 0. Real draws refused: 0. The counts are the same in all five runs, including the bfba03c9 run, so as far as these counters show, no ExecuteIndirect reached the stand-in before the removal.

I also tried X2W_D3D12_DEBUG=1, but the layer wasn't installed (0x887A002D). I'll install Graphics Tools and repeat on bfba03c9 with a 900 s window, and post the debug-layer message for the rejected call if the removal reproduces. Executable, inputs and raw logs kept local.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7173305605 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7173305605). Originally posted by [charliejeanes1-debug](https://github.com/charliejeanes1-debug) on 2026-11-25T20:11:09Z. --- > Thanks for the follow-up on the post-terms black screen. Please share the tested revision, Windows build, GPU driver, and the last visible response after you accepted the terms. If the process stays alive through a fixed observation window, include how long you waited. For a newer build, the triage report from [#2510](https://github.com/R0Y00/Xbox2Windows/pull/2510) can also distinguish forwarded indirect calls from graphics and compute refusals. A short summary with those counts is enough. Keep the local executable, inputs and raw logs private. Thanks. Here are the details: - **Revision:** the four post-terms failures were on commits after `a6c8d80d`, up to the one before `bfba03c9` (auto-update ran during the evening). The `bfba03c9` run had API trace and call tracing on, ran at about 14 fps and didn't get past the terms screen in 300 s. I'll repeat on `bfba03c9` without tracing. - **Windows:** Windows 10 Pro 22H2, build 19045 - **GPU / driver:** GTX 1050 Ti 4 GB, driver 32.0.15.8228 (582.28) - **Command:** `run.ps1 -Exe G:\game_scarlett_master.exe -DataDir G:\ -Seconds 300 -MemoryGiB 24 -ContinueAsserts 1000 -Render -FakeUser -GpuMirror -StartupBelow40` **Last visible response after accepting the terms:** for me it isn't fully black. After Confirm the title shows a dark loading screen with a spinner at 25–27 fps. Then the D3D12 device is removed, `GetDeviceRemovedReason` → `0x887A0001` (INVALID_CALL). About 30 ms later the title hits its own breakpoint (continued). No frames are presented after that, and the screen stays frozen on the last loading frame. | Run | Removed at | First noticed after | Process alive afterwards | | --- | --- | --- | --- | | 1 | 199 s | Device view 18 | yes, 101 s until the 300 s limit | | 2 | 231 s | window present | yes, 69 s | | 3 | 266 s | Device view 18 | yes, 34 s | | 4 | 284 s | window present | yes, 16 s | Just before removal: storage about 9,680 requests done, 0 failed. Commit peak about 11.96 GiB. 1,390 textures uploaded (about 5.4 GiB). 14–16 pipelines translated, 0–2 missing. `Resource::Map` after removal → `0x887A0005`. **ExecuteIndirect (#2510 counts):** forwarded 0, refused graphics-pipeline 0, refused compute-pipeline 0, placeholder-signature 0, other 0. Pipelines first looked up by ExecuteIndirect: 0. Real draws refused: 0. The counts are the same in all five runs, including the `bfba03c9` run, so as far as these counters show, no ExecuteIndirect reached the stand-in before the removal. I also tried `X2W_D3D12_DEBUG=1`, but the layer wasn't installed (`0x887A002D`). I'll install Graphics Tools and repeat on `bfba03c9` with a 900 s window, and post the debug-layer message for the rejected call if the removal reproduces. Executable, inputs and raw logs kept local.
R0Y00 commented 2026-11-25 21:01:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T20:30:57Z.


Thanks for the bounded report. I’ve recorded it as a separate GTX 1050 Ti path: the loading spinner froze after device removal (INVALID_CALL), the process stayed alive to the selected timeout, and all ExecuteIndirect counters were zero. For the planned fixed-revision retest, keep the saved profile and cache the same, start without trace overhead, and if removal repeats add the debug layer to capture the first relevant message before the removal. A short summary with the operation, message ID, driver and last visible stage is enough. Keep raw logs and local paths private.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7173785087 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7173785087). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T20:30:57Z. --- Thanks for the bounded report. I’ve recorded it as a separate GTX 1050 Ti path: the loading spinner froze after device removal (INVALID_CALL), the process stayed alive to the selected timeout, and all ExecuteIndirect counters were zero. For the planned fixed-revision retest, keep the saved profile and cache the same, start without trace overhead, and if removal repeats add the debug layer to capture the first relevant message before the removal. A short summary with the operation, message ID, driver and last visible stage is enough. Keep raw logs and local paths private.
charliejeanes1-debug commented 2026-11-25 21:01:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by charliejeanes1-debug on 2026-11-25T20:45:29Z.


Thanks for the bounded report. I’ve recorded it as a separate GTX 1050 Ti path: the loading spinner froze after device removal (INVALID_CALL), the process stayed alive to the selected timeout, and all ExecuteIndirect counters were zero. For the planned fixed-revision retest, keep the saved profile and cache the same, start without trace overhead, and if removal repeats add the debug layer to capture the first relevant message before the removal. A short summary with the operation, message ID, driver and last visible stage is enough. Keep raw logs and local paths private.

Follow-up on 5123ccdd (newer than the build in my last comment). Same machine: Windows 10 Pro 22H2 build 19045, GTX 1050 Ti 4 GB, driver 32.0.15.8228 (582.28). No tracing, -Seconds 900, input through the GameInput shared pad block.

D3D12 debug layer: Graphics Tools is now installed and X2W_D3D12_DEBUG=1 reports the layer enabled (S_OK). With it on, 2 of 2 runs stopped early, before any menu, at 31 s and 66 s. Both were second-chance null-pointer writes at the same site in the main executable. The debug layer logged 0 messages before the stop. With the layer off, the same build doesn't stop there, so I couldn't capture the device removal with the layer on.

Control run (layer off): the intro and the first-boot screens render and take input: navigation experience, UI text size, subtitles, brightness, finish setup, then legal notices. There was no device removal this time. While idle on the legal notices screen:

  • At about 525 s, CreatePlacedResourceX for two 1024×1024 textures (9 mips) returned 0x8007000E (E_OUTOFMEMORY).
  • Presentation stopped right after (last heartbeat 533.6 s, 9,797 frames).
  • The title hit its own breakpoint twice.
  • At 659 s it stopped with a second-chance write to address 0. It looks like the title's own fatal path after the failed allocation.

State before the failure: 1,377 textures uploaded (about 5.36 GiB) on a 4 GB card. Commit peak 11.9 GiB. Storage 8,519 requests done, 0 failed. 14 pipelines translated / 0 missing. ExecuteIndirect: forwarded 0, refused graphics 0, compute 0, placeholder 0, other 0.

For comparison, the four earlier DXGI_ERROR_INVALID_CALL device removals (older builds) logged 0 E_OUTOFMEMORY results before the removal, so I can't say whether they're the same cause. In every run the failure comes after about 1,380–1,390 textures (about 5.4 GiB) have been uploaded, so VRAM size may matter on this card.

Executable, inputs, offsets and raw logs kept local.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174146199 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7174146199). Originally posted by [charliejeanes1-debug](https://github.com/charliejeanes1-debug) on 2026-11-25T20:45:29Z. --- > Thanks for the bounded report. I’ve recorded it as a separate GTX 1050 Ti path: the loading spinner froze after device removal (INVALID_CALL), the process stayed alive to the selected timeout, and all ExecuteIndirect counters were zero. For the planned fixed-revision retest, keep the saved profile and cache the same, start without trace overhead, and if removal repeats add the debug layer to capture the first relevant message before the removal. A short summary with the operation, message ID, driver and last visible stage is enough. Keep raw logs and local paths private. Follow-up on `5123ccdd` (newer than the build in my last comment). Same machine: Windows 10 Pro 22H2 build 19045, GTX 1050 Ti 4 GB, driver 32.0.15.8228 (582.28). No tracing, `-Seconds 900`, input through the GameInput shared pad block. **D3D12 debug layer:** Graphics Tools is now installed and `X2W_D3D12_DEBUG=1` reports the layer enabled (`S_OK`). With it on, 2 of 2 runs stopped early, before any menu, at 31 s and 66 s. Both were second-chance null-pointer writes at the same site in the main executable. The debug layer logged 0 messages before the stop. With the layer off, the same build doesn't stop there, so I couldn't capture the device removal with the layer on. **Control run (layer off):** the intro and the first-boot screens render and take input: navigation experience, UI text size, subtitles, brightness, finish setup, then legal notices. There was no device removal this time. While idle on the legal notices screen: - At about 525 s, `CreatePlacedResourceX` for two 1024×1024 textures (9 mips) returned `0x8007000E` (E_OUTOFMEMORY). - Presentation stopped right after (last heartbeat 533.6 s, 9,797 frames). - The title hit its own breakpoint twice. - At 659 s it stopped with a second-chance write to address 0. It looks like the title's own fatal path after the failed allocation. State before the failure: 1,377 textures uploaded (about 5.36 GiB) on a 4 GB card. Commit peak 11.9 GiB. Storage 8,519 requests done, 0 failed. 14 pipelines translated / 0 missing. ExecuteIndirect: forwarded 0, refused graphics 0, compute 0, placeholder 0, other 0. For comparison, the four earlier `DXGI_ERROR_INVALID_CALL` device removals (older builds) logged 0 `E_OUTOFMEMORY` results before the removal, so I can't say whether they're the same cause. In every run the failure comes after about 1,380–1,390 textures (about 5.4 GiB) have been uploaded, so VRAM size may matter on this card. Executable, inputs, offsets and raw logs kept local.
R0Y00 commented 2026-11-25 21:01:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T20:50:53Z.


Thanks for separating the fixed-revision runs. At 5123ccdd, the layer-off run reached legal notices and encountered E_OUTOFMEMORY before presentation stopped. The earlier INVALID_CALL removal and this build’s early debug-layer-on stops are separate observations.

If you can run one matched pair on the GTX 1050 Ti, use the same current Release build containing #2468, saved state, warm cache, input, adapter, debug layer off and observation cap. Enable X2W_D3D12_BUDGET=1 in both arms, then change only X2W_D3D12_RELEASE_RETIRED (0 vs 1). Report the first failed allocation or timeout, the last interactive screen, local DXGI peak/budget and retained texture count/bytes. The on arm reaching the same screen without the failed allocation would help distinguish retention pressure from the other stops. Please keep captures and raw logs local. Existing #2379 comparison

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174268989 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7174268989). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T20:50:53Z. --- Thanks for separating the fixed-revision runs. At `5123ccdd`, the layer-off run reached legal notices and encountered `E_OUTOFMEMORY` before presentation stopped. The earlier `INVALID_CALL` removal and this build’s early debug-layer-on stops are separate observations. If you can run one matched pair on the GTX 1050 Ti, use the same current Release build containing #2468, saved state, warm cache, input, adapter, debug layer off and observation cap. Enable `X2W_D3D12_BUDGET=1` in both arms, then change only `X2W_D3D12_RELEASE_RETIRED` (0 vs 1). Report the first failed allocation or timeout, the last interactive screen, local DXGI peak/budget and retained texture count/bytes. The on arm reaching the same screen without the failed allocation would help distinguish retention pressure from the other stops. Please keep captures and raw logs local. [Existing #2379 comparison](https://github.com/R0Y00/Xbox2Windows/issues/2379#issuecomment-7173347195)
lambirou commented 2026-11-25 22:02:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-25T21:02:58Z.


Local run on RX 9060 XT — second-chance C++ stop at ~381 s

Fresh main sync (a1d1db8b, rebuilt xmem/d3d12_xs and stubs), same launcher profile as before: saved profile, input script 4@70, X2W_NOP_SOFT_ASSERTS=1, -StartupBelow40.

  • 8 894 frames presented in 372.6 s (23.9 fps), 91 224 translated draws, 1600x900.
  • Debugger stop at 381.65 s on 0xe06d7363 second chance, stack KernelBase → d3d12_xs → amdxc64 → D3D12Core; the game itself keeps running until the debugger stops.
  • No crash in the title; picture is black at the stop.

The stop is preceded by a distinctive pattern, identical on my previous run (stop at 638.6 s on the same build family):

Run Quiet until 10 s before stop Faulting sites
19:00 ~628 s 8 568 exceptions d3d12_xs+0x53e715 x6 037, KernelBase+0xc56ca x2 120
19:53 ~371 s 4 838 exceptions KernelBase+0xc56ca x2 272, d3d12_xs+0x540da5 x2 114

Both are first-chance 0xc0000005 reads inside the stand-in, retried, interleaved with first-chance C++ exceptions, until the last one escapes as second chance. This looks like a fault-retry loop on the descriptor/texture path rather than a distinct game bug; slot70 kinds 100-101 report existing resource in the same window, while 102-105 stay texture_unavailable/console_layout_beyond_xg_size.

Suggestion: a consecutive-fault guard at the same site that drops the draw (with a one-line census entry) instead of retrying. I have no PDBs here, so I cannot name the two functions; if the offsets mean something on your side, I can rerun with any logging you want. Logs and finished.txt available locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174539781 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7174539781). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-25T21:02:58Z. --- ## Local run on RX 9060 XT — second-chance C++ stop at ~381 s Fresh `main` sync (`a1d1db8b`, rebuilt `xmem`/`d3d12_xs` and stubs), same launcher profile as before: saved profile, input script `4@70`, `X2W_NOP_SOFT_ASSERTS=1`, `-StartupBelow40`. - 8 894 frames presented in 372.6 s (23.9 fps), 91 224 translated draws, 1600x900. - Debugger stop at 381.65 s on `0xe06d7363` second chance, stack `KernelBase` → `d3d12_xs` → `amdxc64` → `D3D12Core`; the game itself keeps running until the debugger stops. - No crash in the title; picture is black at the stop. The stop is preceded by a distinctive pattern, identical on my previous run (stop at 638.6 s on the same build family): | Run | Quiet until | 10 s before stop | Faulting sites | |---|---|---|---| | 19:00 | ~628 s | 8 568 exceptions | `d3d12_xs+0x53e715` x6 037, `KernelBase+0xc56ca` x2 120 | | 19:53 | ~371 s | 4 838 exceptions | `KernelBase+0xc56ca` x2 272, `d3d12_xs+0x540da5` x2 114 | Both are first-chance `0xc0000005` reads inside the stand-in, retried, interleaved with first-chance C++ exceptions, until the last one escapes as second chance. This looks like a fault-retry loop on the descriptor/texture path rather than a distinct game bug; `slot70` kinds 100-101 report `existing resource` in the same window, while 102-105 stay `texture_unavailable`/`console_layout_beyond_xg_size`. Suggestion: a consecutive-fault guard at the same site that drops the draw (with a one-line census entry) instead of retrying. I have no PDBs here, so I cannot name the two functions; if the offsets mean something on your side, I can rerun with any logging you want. Logs and `finished.txt` available locally.
R0Y00 commented 2026-11-25 22:02:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T21:11:03Z.


Thanks for the two RX 9060 XT runs. The black frame and second-chance C++ stop are useful observations. The repeated first-chance reads still need a named call site before we can connect them to the final stop or the slot-70 counters.

Please keep the same revision, saved profile and launch settings, and build the D3D12 stand-in with matching symbols. In one bounded replay record the first repeated read's source function and line, the first few symbolic stack frames, and the first call category that starts repeating. If it resolves to a descriptor or resource lookup, report the descriptor kind, heap/slot validity and whether that lookup reports a live, missing or retired resource. Capture a nearby successful call of the same kind as a comparison if one occurs. A summary with the revision, symbol match, adapter/driver and debug-layer setting is enough. Keep addresses, dumps and raw logs local.

Please leave the retry behavior intact for that comparison. Once the call site and its existing failure contract are known, we can isolate a source-built valid/invalid pair before changing how the draw is handled.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174724304 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7174724304). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T21:11:03Z. --- Thanks for the two RX 9060 XT runs. The black frame and second-chance C++ stop are useful observations. The repeated first-chance reads still need a named call site before we can connect them to the final stop or the slot-70 counters. Please keep the same revision, saved profile and launch settings, and build the D3D12 stand-in with matching symbols. In one bounded replay record the first repeated read's source function and line, the first few symbolic stack frames, and the first call category that starts repeating. If it resolves to a descriptor or resource lookup, report the descriptor kind, heap/slot validity and whether that lookup reports a live, missing or retired resource. Capture a nearby successful call of the same kind as a comparison if one occurs. A summary with the revision, symbol match, adapter/driver and debug-layer setting is enough. Keep addresses, dumps and raw logs local. Please leave the retry behavior intact for that comparison. Once the call site and its existing failure contract are known, we can isolate a source-built valid/invalid pair before changing how the draw is handled.
sydney-0o commented 2026-11-25 22:02:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by sydney-0o on 2026-11-25T21:20:28Z.


Continuing the slot 86 claim from main 1c902063.

The independent cold-profile Windows Sandbox run reached D3D12 and produced 346 compute requests and zero slot 86 mesh requests or trace rows. It stopped at 44.72 s on a second-chance read access violation after 1,602 main-image breakpoints with diagnostic assert continuation enabled. All 256 sampled pixels of the last captured output were black. This run supplies the early endpoint in this environment.

The saved-profile RX 9060 XT report was on a revision that already includes #2504. If the logs are still available, could you share the aggregate ExecuteIndirect mesh attempted/refused and forwarded counts from that run? A nonzero mesh count would help choose a run to repeat with X2W_MESH86_WRITER_TRACE=1 and both XMem mesh handoffs. Keep inputs and raw logs local.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174945182 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7174945182). Originally posted by [sydney-0o](https://github.com/sydney-0o) on 2026-11-25T21:20:28Z. --- Continuing [the slot 86 claim](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7167137113) from main `1c902063`. The independent cold-profile Windows Sandbox run reached D3D12 and produced 346 compute requests and zero slot 86 mesh requests or trace rows. It stopped at 44.72 s on a second-chance read access violation after 1,602 main-image breakpoints with diagnostic assert continuation enabled. All 256 sampled pixels of the last captured output were black. This run supplies the early endpoint in this environment. The [saved-profile RX 9060 XT report](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7174539781) was on a revision that already includes #2504. If the logs are still available, could you share the aggregate ExecuteIndirect mesh attempted/refused and forwarded counts from that run? A nonzero mesh count would help choose a run to repeat with `X2W_MESH86_WRITER_TRACE=1` and both XMem mesh handoffs. Keep inputs and raw logs local.
R0Y00 commented 2026-11-25 22:02:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T21:36:32Z.


Thanks for keeping the cold-profile Sandbox run separate. With zero slot-86 mesh requests and zero trace rows before its 44.72 s stop, it gives an early endpoint for that environment. The saved-profile comparison is still the right place to look for the selected mesh command. Please continue under your existing claim using the aggregate counts first. If there is a matching call, correlate its root-SRV writer, argument writer and DIRECT waits on that call before drawing a conclusion about the red surface.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175304102 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7175304102). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T21:36:32Z. --- Thanks for keeping the cold-profile Sandbox run separate. With zero slot-86 mesh requests and zero trace rows before its 44.72 s stop, it gives an early endpoint for that environment. The saved-profile comparison is still the right place to look for the selected mesh command. Please continue under your existing claim using the aggregate counts first. If there is a matching call, correlate its root-SRV writer, argument writer and DIRECT waits on that call before drawing a conclusion about the red surface.
Not-Saii commented 2026-11-26 01:02:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-26T00:35:32Z.


Independent retest on an RTX 4090 at a newer revision. It reaches the same indirect wall: no ExecuteIndirect call is forwarded.

Build and environment: main at d371ce46, release preset. Windows 11 Pro 26300.9974, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), default adapter, D3D12 debug layer off. AMD Ryzen 9 7900X, 32 GB RAM. The original executable, staged with tools/startup/stage_package.ps1, with the package mapped to its console drive letter. No saved profile (first-run setup). The shader cache was re-keyed from an earlier run with shader_cache_rekey.py and translated offline with --pending before the run.

Command: the title was driven with a controller (no input script):

.\tools\startup\run.ps1 -Exe <run dir>\<title>.exe -DataDir G:\ -LogDir <log> -ShaderCache <warm cache> `
    -Seconds 900 -MemoryGiB 20 -Render -Translate -FakeUser -GpuMirror -HostCpu -StartupBelow40 -ContinueAsserts 1000

with X2W_XMEM_LAZY_COMMIT=1 and X2W_XMEM_LAZY_STARTUP=1.

Last visible stage: the same in all four controller runs of this build (12 GiB cap, 20 GiB cap, and twice at 20 GiB with lazy commit). After A on the user selection prompt, a loading screen appeared and the prologue started. The sequence was a full-screen magenta frame, a short caption card, magenta again, a credit card, magenta again, and then the stop. Both cards were readable, each over a plain gray background. The frames before, between and after them were solid magenta. The RTX 4060 Laptop runs above showed the credit card over solid red. The magenta frames look like the magenta presentation result in the earlier composite readback above. No scene detail was visible. In an earlier run of the same build, the setup screens and legal notices were readable and responded to input, at a steady 26.7 FPS with low CPU use, and the menus flickered slightly.

First indirect results: the first refusal reason logged was requires a desktop compute pipeline and root, then missing or placeholder signature. Nothing was forwarded at any point.

Final counters (one run, stop at 194.3 s):

Count
ExecuteIndirect forwarded 0
Refused, graphics pipeline: dispatchmesh 1,333,633
Refused, graphics pipeline: draw / drawindexed 137,756 / 58,631
Refused, compute pipeline: dispatch 456,349
Refused, placeholder signature 124,323
Graphics pipelines translated / still missing 53 / 369
Translated draws (not drawn) 45,005 (42,199)
Textures uploaded 1,882
Compute requests in the cache: translated / refused 124 / 2,565 of 2,689

These are invocation counts. A repeat with the same configuration showed the same screens and stopped at the same instruction, with 0 forwarded, 1,375,832 mesh and 431,069 compute dispatches refused, and 53 / 370 graphics pipelines. A paired run without the lazy-commit switches gave the same picture: 0 forwarded, with 706,513 mesh dispatches and 250,200 compute dispatches refused by its stop at 187.3 s.

Process stop: both runs ended on process commit at the job cap (19.4-20.2 GiB) during loading, followed by a null write in a package BVH-builder DLL after two C++ exceptions from desktop D3D12.dll / D3D12Core.dll. Details and the commit timeline are on #1199. With a 12 GiB cap the D3D12 stand-in stopped first, on an unchecked allocation (#2653).

Top translator refusals in this cache: s_mov_b32 reading src_scc (538 at the cold run, with open #1821 and #2577), v_cmp_gt_i32 defining vcc inside an execz block (266), v_readfirstlane_b32 without a proven uniform source (228), s_load with a register offset through the resource heap (159), compute image_store needing d16 (124).

Local executable, inputs and raw logs stay private.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7178915488 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7178915488). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-26T00:35:32Z. --- Independent retest on an RTX 4090 at a newer revision. It reaches the same indirect wall: no `ExecuteIndirect` call is forwarded. **Build and environment:** `main` at `d371ce46`, `release` preset. Windows 11 Pro 26300.9974, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), default adapter, D3D12 debug layer off. AMD Ryzen 9 7900X, 32 GB RAM. The original executable, staged with `tools/startup/stage_package.ps1`, with the package mapped to its console drive letter. No saved profile (first-run setup). The shader cache was re-keyed from an earlier run with `shader_cache_rekey.py` and translated offline with `--pending` before the run. **Command:** the title was driven with a controller (no input script): ```powershell .\tools\startup\run.ps1 -Exe <run dir>\<title>.exe -DataDir G:\ -LogDir <log> -ShaderCache <warm cache> ` -Seconds 900 -MemoryGiB 20 -Render -Translate -FakeUser -GpuMirror -HostCpu -StartupBelow40 -ContinueAsserts 1000 ``` with `X2W_XMEM_LAZY_COMMIT=1` and `X2W_XMEM_LAZY_STARTUP=1`. **Last visible stage:** the same in all four controller runs of this build (12 GiB cap, 20 GiB cap, and twice at 20 GiB with lazy commit). After A on the user selection prompt, a loading screen appeared and the prologue started. The sequence was a full-screen magenta frame, a short caption card, magenta again, a credit card, magenta again, and then the stop. Both cards were readable, each over a plain gray background. The frames before, between and after them were solid magenta. The RTX 4060 Laptop runs above showed the credit card over solid red. The magenta frames look like the magenta presentation result in the earlier composite readback above. No scene detail was visible. In an earlier run of the same build, the setup screens and legal notices were readable and responded to input, at a steady 26.7 FPS with low CPU use, and the menus flickered slightly. **First indirect results:** the first refusal reason logged was `requires a desktop compute pipeline and root`, then `missing or placeholder signature`. Nothing was forwarded at any point. **Final counters (one run, stop at 194.3 s):** | | Count | |---|---:| | `ExecuteIndirect` forwarded | 0 | | Refused, graphics pipeline: `dispatchmesh` | 1,333,633 | | Refused, graphics pipeline: `draw` / `drawindexed` | 137,756 / 58,631 | | Refused, compute pipeline: `dispatch` | 456,349 | | Refused, placeholder signature | 124,323 | | Graphics pipelines translated / still missing | 53 / 369 | | Translated draws (not drawn) | 45,005 (42,199) | | Textures uploaded | 1,882 | | Compute requests in the cache: translated / refused | 124 / 2,565 of 2,689 | These are invocation counts. A repeat with the same configuration showed the same screens and stopped at the same instruction, with 0 forwarded, 1,375,832 mesh and 431,069 compute dispatches refused, and 53 / 370 graphics pipelines. A paired run without the lazy-commit switches gave the same picture: 0 forwarded, with 706,513 mesh dispatches and 250,200 compute dispatches refused by its stop at 187.3 s. **Process stop:** both runs ended on process commit at the job cap (19.4-20.2 GiB) during loading, followed by a null write in a package BVH-builder DLL after two C++ exceptions from desktop `D3D12.dll` / `D3D12Core.dll`. Details and the commit timeline are on #1199. With a 12 GiB cap the D3D12 stand-in stopped first, on an unchecked allocation (#2653). **Top translator refusals in this cache:** `s_mov_b32` reading `src_scc` (538 at the cold run, with open #1821 and #2577), `v_cmp_gt_i32` defining `vcc` inside an `execz` block (266), `v_readfirstlane_b32` without a proven uniform source (228), `s_load` with a register offset through the resource heap (159), compute `image_store` needing `d16` (124). Local executable, inputs and raw logs stay private. AI-assisted (Claude Code).
R0Y00 commented 2026-11-26 01:02:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T00:44:36Z.


First-frame reduction and pixel export retest

A local experimental runtime based on a6c8d80d issued three previously skipped compute passes on a GeForce RTX 4060 Laptop GPU, driver 616.56, Windows 11 build 26200.9974, with the project debug layer off. These results describe the local dispatch profile.

  • Enabling the 20×12 dispatch changed three RGBA32F intermediates from all-zero to 280, 264 and 960 nonzero 32-bit words out of 960. Full readbacks of each output matched the next pass's input byte-for-byte. Both texels of the subsequent 2×1 outputs also matched at the consumer.
  • The final reducer's four-float output changed from (0, 0, -inf, 0) to approximately (0.1, 0.2, -3.321933, 1). Its 16 bytes and the other tracked 32-byte input matched between the writer and the consuming pixel shader. At four sampled positions the pixel shader passed its discard test, bypassed the optional texture-sampling branch, and exported zero RGBA.
  • A second run with the uninstrumented pixel shader reproduced the two-color background. At its first target frame, two 320×180 inputs contained 0 of 57,600 nonzero pixels each. The last observed submitted graphics draw targeting both textures before their consumption used pipeline key 2c58d827dc69b323. The draw and consumer were in the same command list and queue submission. The remaining question is whether its two sampled inputs were already zero or whether coverage, binding or export lost their contents.

Public fixture task. Use source-built shaders and two independent, nonzero textures to exercise a two-target downsample draw to R11G11B10_FLOAT and R16_FLOAT, followed by a compute read on the same submitted list. Check both outputs and consumer inputs against a CPU reference. Include a negative control that suppresses coverage and preserves a sentinel clear value. The matched local retest can then distinguish missing input from missing pixel coverage.

The local compiler moved LDS and seven E32 vector ALU operations into the shared C++ backend. The two tested reductions produced byte-identical DXIL across the ALU migration. WARP and hardware each matched all 608 expected fixture words. The remaining frontend still uses Python. Recognizable 3D rendering and character control remain open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7179068896 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7179068896). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T00:44:36Z. --- ### First-frame reduction and pixel export retest A local experimental runtime based on `a6c8d80d` issued three previously skipped compute passes on a GeForce RTX 4060 Laptop GPU, driver 616.56, Windows 11 build 26200.9974, with the project debug layer off. These results describe the local dispatch profile. - Enabling the 20×12 dispatch changed three RGBA32F intermediates from all-zero to 280, 264 and 960 nonzero 32-bit words out of 960. Full readbacks of each output matched the next pass's input byte-for-byte. Both texels of the subsequent 2×1 outputs also matched at the consumer. - The final reducer's four-float output changed from `(0, 0, -inf, 0)` to approximately `(0.1, 0.2, -3.321933, 1)`. Its 16 bytes and the other tracked 32-byte input matched between the writer and the consuming pixel shader. At four sampled positions the pixel shader passed its discard test, bypassed the optional texture-sampling branch, and exported zero RGBA. - A second run with the uninstrumented pixel shader reproduced the two-color background. At its first target frame, two 320×180 inputs contained **0 of 57,600 nonzero pixels each**. The last observed submitted graphics draw targeting both textures before their consumption used pipeline key `2c58d827dc69b323`. The draw and consumer were in the same command list and queue submission. The remaining question is whether its two sampled inputs were already zero or whether coverage, binding or export lost their contents. **Public fixture task.** Use source-built shaders and two independent, nonzero textures to exercise a two-target downsample draw to R11G11B10_FLOAT and R16_FLOAT, followed by a compute read on the same submitted list. Check both outputs and consumer inputs against a CPU reference. Include a negative control that suppresses coverage and preserves a sentinel clear value. The matched local retest can then distinguish missing input from missing pixel coverage. The local compiler moved LDS and seven E32 vector ALU operations into the shared C++ backend. The two tested reductions produced byte-identical DXIL across the ALU migration. WARP and hardware each matched all 608 expected fixture words. The remaining frontend still uses Python. Recognizable 3D rendering and character control remain open.
R0Y00 commented 2026-11-26 02:05:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T01:23:39Z.


Graphics compiler checkpoint · two-target first-frame pass

A local experiment based on a6c8d80d now replays a graphics cache miss through native C++ translation of both the vertex and pixel instruction streams. The runtime recorded the base stage/root key and both target formats on the first run. Offline compilation generated a matched SM6 pair, and the next run loaded the format-specific objects through the ordinary cache filenames. The desktop PSO returned S_OK. GPU statistics recorded one rasterized triangle and 57,600 pixel shader invocations on the first matching draw in each run.

The earlier single-stage substitution exposed a separate cache compatibility bug. The D3D12 debug layer identified a mix of SM5.1 and SM6 stages in one PSO. Working-tree WARP tests cover a prebuilt SM6 pixel object paired with a legacy vertex object, and a fully prebuilt SM6 pair used through indirect indexed drawing.

First-background blocker remains open. The warm run produced the same background readback as the baseline, byte for byte. The two 640×360 sampled textures were already zero before the draw. Both 320×180 outputs stayed zero. Two upstream draws each recorded 230,400 pixel shader invocations. Their own 1280×720 packed-color and 2560×1440 half-float inputs were also zero throughout the GPU readbacks. The next producer investigation needs the last executed clear, copy, draw or dispatch to each of those resources before its consumer, including queue order. A subsequent ordered capture is recorded below.

With independently varied, nonzero texture inputs, the same offline pair produced the expected 112 covered components and preserved all 16 scissor-protected components on WARP and hardware. The working-tree test filter was ctest --test-dir out/build/native-dxil --no-tests=error -R '^(native_|startup_indirect_translated_indexed_warp$)' --output-on-failure (12 passed after adding the source-built replay-package test). Machine-code translation and DXIL emission for this profile use C++. The offline request reader and independent binding audit still use Python.

Environment: x64 Release local diagnostic build, Windows 11 26200.9974, RTX 4060 Laptop GPU, driver 32.0.16.1656, project debug layer off for the measured runs. These changes are local and have not been merged.

Follow-up on the 2560×1440 surface. On the first matching frame, the same graphics queue submitted an indexed draw to that exact resource before its consuming list. Pipeline statistics for the indexed draw were 264 IA vertices, 88 IA primitives, 88 clipper invocations, zero clipper output primitives and zero pixel shader invocations. Full readbacks immediately before the draw, after it and before consumption contained zero in all 29,491,200 bytes. The next discriminating measurement is the post-VS clip-space position and the active rasterizer/viewport state on this draw. The independent 1280×720 surface still has no proven writer before consumption in this capture.

Seven fresh-process samples on this shader pair gave median C++ instruction translation times of 0.019 ms (VS) and 0.055 ms (PS). DXC compilation plus cache publication took 13.44 ms and 13.37 ms, respectively. The corresponding verified cache loads took 0.313 ms and 0.319 ms, excluding SDK initialization. For the 8×4 controlled readback fixture, graphics PSO creation took 9.71 ms and the GPU timestamp interval around the draw was 5.12 µs.

Indexed vertex replay and missing draws. With the same saved input sequence and diagnostic runtime based on a6c8d80d, a cold run recorded a single-target graphics request. A second run loaded the offline SM6 pair and created its PSO successfully. The C++ VS translated 103 instructions and four raw-buffer bindings. Its PS companion used the reference Python frontend and shared C++ DXC backend. GPU stream output contained 264 finite positions, all outside the left and top clip planes. On independent RTX 4060 Laptop replay with the same captured inputs, 1,036 of 1,056 components agreed bit for bit, and maximum absolute error was 0.001953125. Seven fresh-process samples gave median VS translation, compile plus publication, and validated cache-load times of 0.084, 75.33 and 0.40 ms. The isolated stream-output PSO took 49.43 ms to create and its GPU draw took 5.12 µs. These timings exclude SDK initialization and do not measure frame time.

The same target had five further pipeline keys with missing translations. Primary sampler LOD bias support restored a 6,468-vertex draw. The hardware issued 2,156 triangles with zero rasterizer output. GPU readback confirmed its VS received the launcher's 256-byte identity fallback. The first 48 positions were finite but outside the clip volume. Each of the remaining 6,420 positions contained four NaNs. The entire 2560×1440 RGBA16_FLOAT target was zero before and after the draw and at later consumption. The first background image hash was unchanged. The two downstream reduction writer/consumer buffers still matched byte for byte. Track the missing binding and the producer-side source-built regression in #2695. The independent 1280×720 input remains unresolved.

Environment: Windows 11 build 26200.9974, NVIDIA GeForce RTX 4060 Laptop GPU, driver 32.0.16.1656, original-path diagnostic debug layer off. All 17 focused tests passed, including WARP and hardware mip readbacks for positive, zero and negative bias.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7179728496 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7179728496). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T01:23:39Z. --- ### Graphics compiler checkpoint · two-target first-frame pass A local experiment based on `a6c8d80d` now replays a graphics cache miss through native C++ translation of **both** the vertex and pixel instruction streams. The runtime recorded the base stage/root key and both target formats on the first run. Offline compilation generated a matched SM6 pair, and the next run loaded the format-specific objects through the ordinary cache filenames. The desktop PSO returned S_OK. GPU statistics recorded one rasterized triangle and 57,600 pixel shader invocations on the first matching draw in each run. The earlier single-stage substitution exposed a separate cache compatibility bug. The D3D12 debug layer identified a mix of SM5.1 and SM6 stages in one PSO. Working-tree WARP tests cover a prebuilt SM6 pixel object paired with a legacy vertex object, and a fully prebuilt SM6 pair used through indirect indexed drawing. **First-background blocker remains open.** The warm run produced the same background readback as the baseline, byte for byte. The two 640×360 sampled textures were already zero before the draw. Both 320×180 outputs stayed zero. Two upstream draws each recorded 230,400 pixel shader invocations. Their own 1280×720 packed-color and 2560×1440 half-float inputs were also zero throughout the GPU readbacks. The next producer investigation needs the last **executed** clear, copy, draw or dispatch to each of those resources before its consumer, including queue order. A subsequent ordered capture is recorded below. With independently varied, nonzero texture inputs, the same offline pair produced the expected 112 covered components and preserved all 16 scissor-protected components on WARP and hardware. The working-tree test filter was `ctest --test-dir out/build/native-dxil --no-tests=error -R '^(native_|startup_indirect_translated_indexed_warp$)' --output-on-failure` (12 passed after adding the source-built replay-package test). Machine-code translation and DXIL emission for this profile use C++. The offline request reader and independent binding audit still use Python. Environment: x64 Release local diagnostic build, Windows 11 26200.9974, RTX 4060 Laptop GPU, driver 32.0.16.1656, project debug layer off for the measured runs. These changes are local and have not been merged. **Follow-up on the 2560×1440 surface.** On the first matching frame, the same graphics queue submitted an indexed draw to that exact resource before its consuming list. Pipeline statistics for the indexed draw were 264 IA vertices, 88 IA primitives, 88 clipper invocations, zero clipper output primitives and zero pixel shader invocations. Full readbacks immediately before the draw, after it and before consumption contained zero in all 29,491,200 bytes. The next discriminating measurement is the post-VS clip-space position and the active rasterizer/viewport state on this draw. The independent 1280×720 surface still has no proven writer before consumption in this capture. Seven fresh-process samples on this shader pair gave median C++ instruction translation times of 0.019 ms (VS) and 0.055 ms (PS). DXC compilation plus cache publication took 13.44 ms and 13.37 ms, respectively. The corresponding verified cache loads took 0.313 ms and 0.319 ms, excluding SDK initialization. For the 8×4 controlled readback fixture, graphics PSO creation took 9.71 ms and the GPU timestamp interval around the draw was 5.12 µs. **Indexed vertex replay and missing draws.** With the same saved input sequence and diagnostic runtime based on `a6c8d80d`, a cold run recorded a single-target graphics request. A second run loaded the offline SM6 pair and created its PSO successfully. The C++ VS translated 103 instructions and four raw-buffer bindings. Its PS companion used the reference Python frontend and shared C++ DXC backend. GPU stream output contained 264 finite positions, all outside the left and top clip planes. On independent RTX 4060 Laptop replay with the same captured inputs, 1,036 of 1,056 components agreed bit for bit, and maximum absolute error was 0.001953125. Seven fresh-process samples gave median VS translation, compile plus publication, and validated cache-load times of 0.084, 75.33 and 0.40 ms. The isolated stream-output PSO took 49.43 ms to create and its GPU draw took 5.12 µs. These timings exclude SDK initialization and do not measure frame time. The same target had five further pipeline keys with missing translations. Primary sampler LOD bias support restored a 6,468-vertex draw. The hardware issued 2,156 triangles with zero rasterizer output. GPU readback confirmed its VS received the launcher's 256-byte identity fallback. The first 48 positions were finite but outside the clip volume. Each of the remaining 6,420 positions contained four NaNs. The entire 2560×1440 RGBA16_FLOAT target was zero before and after the draw and at later consumption. The first background image hash was unchanged. The two downstream reduction writer/consumer buffers still matched byte for byte. Track the missing binding and the producer-side source-built regression in [#2695](https://github.com/R0Y00/Xbox2Windows/issues/2695). The independent 1280×720 input remains unresolved. Environment: Windows 11 build 26200.9974, NVIDIA GeForce RTX 4060 Laptop GPU, driver 32.0.16.1656, original-path diagnostic debug layer off. All 17 focused tests passed, including WARP and hardware mip readbacks for positive, zero and negative bias.
R0Y00 commented 2026-11-26 02:05:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T02:00:45Z.


The ordered follow-up narrowed one producer to clipping. In the local diagnostic run the 2560×1440 draw sent 88 primitives to the clipper, produced zero clipped primitives and never invoked the pixel shader. Its target stayed zero before and after the draw. The 1280×720 input still has no proven writer. Main development has the actual executable trace.

One independent source-built task is open here. Extend the indexed path used by startup_stream_viewport with a paired draw, using the same indices, viewport, scissor, rasterizer and sentinel target in both runs. Use a visible SV_Position triangle in the first run and move all three vertices beyond the same homogeneous clip plane in the second. Record the IA, clipper and pixel-invocation counts after the fence, plus the target readback. The negative arm must leave the sentinel unchanged, with the same IA and clipper input counts and zero clipper output and pixel invocations. Reuse cmake --build --preset release --target startup_stream_consumer and ctest --preset release --no-tests=error -j 1 -R '^startup_stream_viewport_(warp|hardware)$' -V. Please post the adapter, driver and first mismatch under this claim. The existing two-target downsample and #2417 remain separate.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7180370455 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7180370455). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T02:00:45Z. --- The ordered follow-up narrowed one producer to clipping. In the local diagnostic run the 2560×1440 draw sent 88 primitives to the clipper, produced zero clipped primitives and never invoked the pixel shader. Its target stayed zero before and after the draw. The 1280×720 input still has no proven writer. Main development has the actual executable trace. One independent source-built task is open here. Extend the indexed path used by `startup_stream_viewport` with a paired draw, using the same indices, viewport, scissor, rasterizer and sentinel target in both runs. Use a visible `SV_Position` triangle in the first run and move all three vertices beyond the same homogeneous clip plane in the second. Record the IA, clipper and pixel-invocation counts after the fence, plus the target readback. The negative arm must leave the sentinel unchanged, with the same IA and clipper input counts and zero clipper output and pixel invocations. Reuse `cmake --build --preset release --target startup_stream_consumer` and `ctest --preset release --no-tests=error -j 1 -R '^startup_stream_viewport_(warp|hardware)$' -V`. Please post the adapter, driver and first mismatch under this claim. The existing two-target downsample and #2417 remain separate.
R0Y00 commented 2026-11-26 06:02:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T05:45:58Z.


Runtime checkpoint: translated HDR dispatch

In the main developer’s local run at fb7b4ade, the original executable reached the translated HDR dispatch through the ordinary launcher with the Python shader frontend disabled. A cold-cache run and a separate warm-cache process both reached GPU submission and readback. This evidence covers one compute pipeline.

The scene background is still missing. Fence-ordered readback shows that the relevant input is already zero before the HDR dispatch. In a controlled GPU replay, replacing only that input with the reference restored a nonzero background sample. The next step is to identify the upstream draw that should populate the input and compare its target before and after that draw on the same queue. The existing vertex-SRV and index-buffer fixtures remain useful controls. The first correct scene and player control remain open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7183785287 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7183785287). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T05:45:58Z. --- ### Runtime checkpoint: translated HDR dispatch In the main developer’s local run at fb7b4ade, the original executable reached the translated HDR dispatch through the ordinary launcher with the Python shader frontend disabled. A cold-cache run and a separate warm-cache process both reached GPU submission and readback. This evidence covers one compute pipeline. The scene background is still missing. Fence-ordered readback shows that the relevant input is already zero before the HDR dispatch. In a controlled GPU replay, replacing only that input with the reference restored a nonzero background sample. The next step is to identify the upstream draw that should populate the input and compare its target before and after that draw on the same queue. The existing vertex-SRV and index-buffer fixtures remain useful controls. The first correct scene and player control remain open.
R0Y00 commented 2026-11-26 07:00:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T06:20:07Z.


Native C++ compute coverage and cache measurements

Local research build based on a6c8d80d with working-tree changes. The same 2,689 ready requests were scanned twice with four workers using the C++ frontend and DXC. Both scans selected the same 41 requests and produced byte-identical DXIL per request.

Result Previous Current
C++ frontend through DXIL 1 41
Refused 2,688 2,648
Mixed or fallback translations in the scan 0 0

Of the 41 compiled requests, 7 have an independent numerical comparison, 34 await one, and 0 of the seven showed a numerical difference. Six fixed-input GPU workloads cover copies, component selection and a masked row copy with a dynamic scalar byte offset. Each matched all 8,192 components both cold and warm. A deliberately incorrect reference produced exactly 2,048 differences. A separate 2560 × 1440 RGBA16F workload matched all 14,745,600 component values against an independent GPU capture. 18,890 zeros differed in sign.

The previous first diagnostics comprised 2,632 entry-layout refusals, 46 unrecognized headers and 10 instruction refusals. The largest entry group contained 1,007 requests with 32 × 1 × 1 threads, 12 user SGPRs, group X/Y and one local coordinate. All now pass entry decoding. Its current first unsupported operations are subword-selected v_xor_b32 (682) and buffer_load_dwordx4 (325). Zero complete shaders in that group have reached DXIL. Across all groups the corresponding counts are 682 and 359. Register-indexed descriptor-table reads are the next most frequent first diagnostic (159).

On an RTX 4060 Laptop GPU, driver 616.56, Windows 11 build 26200.9974, debug layer off:

Fixed configuration Empty DXIL cache Reused cache
Four-worker scan, requests/s including refusals 681 722
Full scan process wall time 6.38 s 6.31 s
Published DXIL / cache hits 36 / 5 0 / 41
DXIL compile or cache lookup, median of six GPU cases 16.58 ms 0.31 ms
Root signature and PSO creation, same cases 29.95 ms 30.08 ms
Frontend through pipeline ready, same cases 46.86 ms 31.45 ms
Queue submission CPU / dispatch-only GPU, same cases 1.04 ms / 5.63 µs 1.04 ms / 5.12 µs

A repeated normal-entry run reached the selected 1,182-instruction compute pipeline. Frontend / DXIL / root and PSO were 6.57 / 229.38 / 116.70 ms on a miss, then 6.23 / 1.47 / 2.17 ms on a hit. The driver cache was left in place. Across the first six presentation intervals of the first run, the measured direct queue saw one guest submission per interval. CPU time inside submission ranged from 0.021 to 1.836 ms. The queue timestamp spans ranged from 0.988 to 29.029 ms and include idle time between the first submission and the present marker. These early intervals precede the selected compute dispatch.

The source-generated fixtures exercise group and lane semantics, typed loads, inline root constants, vector masks and overlapping scalar offset/destination registers. Five targeted tests passed, zero skipped. Commands for the working tree:

ctest --test-dir out/build/native-dxil --output-on-failure --no-tests=error -R '^native_(wave_request_hardware|compute_clear|lds_(warp|hardware|control_flow))$'
.\out\build\native-dxil\compile_dxil.exe $sdk $cache --jobs 4 gfx1013-compute-wave32@36 --requests $inputDirectory $outputDirectory

The next coverage slice is the two instruction families above. Numerical coverage and whole-stage compatibility remain separately tracked.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7184328904 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7184328904). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T06:20:07Z. --- ### Native C++ compute coverage and cache measurements Local research build based on `a6c8d80d` with working-tree changes. The same 2,689 ready requests were scanned twice with four workers using the C++ frontend and DXC. Both scans selected the same 41 requests and produced byte-identical DXIL per request. | Result | Previous | Current | |---|---:|---:| | C++ frontend through DXIL | 1 | 41 | | Refused | 2,688 | 2,648 | | Mixed or fallback translations in the scan | 0 | 0 | Of the 41 compiled requests, **7** have an independent numerical comparison, **34** await one, and **0** of the seven showed a numerical difference. Six fixed-input GPU workloads cover copies, component selection and a masked row copy with a dynamic scalar byte offset. Each matched all 8,192 components both cold and warm. A deliberately incorrect reference produced exactly 2,048 differences. A separate 2560 × 1440 RGBA16F workload matched all 14,745,600 component values against an independent GPU capture. 18,890 zeros differed in sign. The previous first diagnostics comprised 2,632 entry-layout refusals, 46 unrecognized headers and 10 instruction refusals. The largest entry group contained 1,007 requests with 32 × 1 × 1 threads, 12 user SGPRs, group X/Y and one local coordinate. All now pass entry decoding. Its current first unsupported operations are subword-selected `v_xor_b32` (682) and `buffer_load_dwordx4` (325). **Zero complete shaders in that group** have reached DXIL. Across all groups the corresponding counts are 682 and 359. Register-indexed descriptor-table reads are the next most frequent first diagnostic (159). On an RTX 4060 Laptop GPU, driver 616.56, Windows 11 build 26200.9974, debug layer off: | Fixed configuration | Empty DXIL cache | Reused cache | |---|---:|---:| | Four-worker scan, requests/s including refusals | 681 | 722 | | Full scan process wall time | 6.38 s | 6.31 s | | Published DXIL / cache hits | 36 / 5 | 0 / 41 | | DXIL compile or cache lookup, median of six GPU cases | 16.58 ms | 0.31 ms | | Root signature and PSO creation, same cases | 29.95 ms | 30.08 ms | | Frontend through pipeline ready, same cases | 46.86 ms | 31.45 ms | | Queue submission CPU / dispatch-only GPU, same cases | 1.04 ms / 5.63 µs | 1.04 ms / 5.12 µs | A repeated normal-entry run reached the selected 1,182-instruction compute pipeline. Frontend / DXIL / root and PSO were 6.57 / 229.38 / 116.70 ms on a miss, then 6.23 / 1.47 / 2.17 ms on a hit. The driver cache was left in place. Across the first six presentation intervals of the first run, the measured direct queue saw one guest submission per interval. CPU time inside submission ranged from 0.021 to 1.836 ms. The queue timestamp spans ranged from 0.988 to 29.029 ms and include idle time between the first submission and the present marker. These early intervals precede the selected compute dispatch. The source-generated fixtures exercise group and lane semantics, typed loads, inline root constants, vector masks and overlapping scalar offset/destination registers. Five targeted tests passed, zero skipped. Commands for the working tree: ```powershell ctest --test-dir out/build/native-dxil --output-on-failure --no-tests=error -R '^native_(wave_request_hardware|compute_clear|lds_(warp|hardware|control_flow))$' .\out\build\native-dxil\compile_dxil.exe $sdk $cache --jobs 4 gfx1013-compute-wave32@36 --requests $inputDirectory $outputDirectory ``` The next coverage slice is the two instruction families above. Numerical coverage and whole-stage compatibility remain separately tracked.
R0Y00 commented 2026-11-26 07:00:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T06:36:44Z.


C++ compute coverage — SDWA XOR and next first refusals

In the unchanged 2,689-request wave32 scan, 682 requests previously stopped at integer SDWA XOR. Instruction-boundary decoding found 2,728 occurrences in those requests. Each selects the high half of source 0, zero-extends it, XORs the whole dword of source 1, and replaces the destination dword.

Shared C++ frontend change Requests past the old XOR Newly completed from the group Next first refusal within the 682
SDWA XOR 682 0 VGPR swap (342), SDWA float class comparison (340)
Plus VGPR swap and SDWA class comparison 682 0 Vector-offset raw buffer load of two dwords (342), one dword (340)

The remaining loads use offen with a per-lane byte offset. The two-dword cases use immediate 0. The one-dword cases use immediate 52 and overwrite the VGPR holding the input address. Another 325 requests from the larger 1,007-request group first encounter a four-dword load with immediate 1040.

Both full scans produced byte-identical DXIL for all 41 previously compiled requests and refused 2,648. No Python shader frontend or fallback participated. Of the 41, seven again passed independent GPU numerical checks, zero had an observed numerical mismatch, and 34 await numerical validation.

For the instruction-level check, the X2W and Victory 9376fd6 emitters independently generated desktop bytecode from the same source-built shader instructions. Both bytecodes ran on the same GPU with equal input bytes and binding metadata appropriate to each backend. Four fixtures matched the independent CPU formula and matched each other bit-for-bit across 32,768 output components. Changing the source half caused 2,048 reference differences. Clearing bits that should be preserved caused 4,064. These synthetic cases are counted separately from corpus coverage.

Local working tree based on a6c8d80d. RTX 4060 Laptop, driver 616.56, Windows 26200.9974, debug layer off. Five targeted tests passed; zero skipped.

ctest --test-dir out/build/native-dxil --no-tests=error -V -R '^native_wave_request_hardware$'
.\out\build\native-dxil\compile_dxil.exe $sdk $cache --jobs 4 gfx1013-compute-wave32@36 --requests $inputDirectory $outputDirectory
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7184602540 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7184602540). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T06:36:44Z. --- ### C++ compute coverage — SDWA XOR and next first refusals In the unchanged 2,689-request wave32 scan, 682 requests previously stopped at integer SDWA XOR. Instruction-boundary decoding found 2,728 occurrences in those requests. Each selects the high half of source 0, zero-extends it, XORs the whole dword of source 1, and replaces the destination dword. | Shared C++ frontend change | Requests past the old XOR | Newly completed from the group | Next first refusal within the 682 | |---|---:|---:|---| | SDWA XOR | 682 | 0 | VGPR swap (342), SDWA float class comparison (340) | | Plus VGPR swap and SDWA class comparison | 682 | 0 | Vector-offset raw buffer load of two dwords (342), one dword (340) | The remaining loads use `offen` with a per-lane byte offset. The two-dword cases use immediate 0. The one-dword cases use immediate 52 and overwrite the VGPR holding the input address. Another 325 requests from the larger 1,007-request group first encounter a four-dword load with immediate 1040. Both full scans produced byte-identical DXIL for all 41 previously compiled requests and refused 2,648. No Python shader frontend or fallback participated. Of the 41, seven again passed independent GPU numerical checks, zero had an observed numerical mismatch, and 34 await numerical validation. For the instruction-level check, the X2W and Victory `9376fd6` emitters independently generated desktop bytecode from the same **source-built** shader instructions. Both bytecodes ran on the same GPU with equal input bytes and binding metadata appropriate to each backend. Four fixtures matched the independent CPU formula and matched each other bit-for-bit across 32,768 output components. Changing the source half caused 2,048 reference differences. Clearing bits that should be preserved caused 4,064. These synthetic cases are counted separately from corpus coverage. Local working tree based on `a6c8d80d`. RTX 4060 Laptop, driver 616.56, Windows 26200.9974, debug layer off. Five targeted tests passed; zero skipped. ```powershell ctest --test-dir out/build/native-dxil --no-tests=error -V -R '^native_wave_request_hardware$' .\out\build\native-dxil\compile_dxil.exe $sdk $cache --jobs 4 gfx1013-compute-wave32@36 --requests $inputDirectory $outputDirectory ```
R0Y00 commented 2026-11-26 07:00:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T06:57:52Z.


Native C++ per-lane raw buffer loads

The runtime and offline frontend now lower linear offset-only MUBUF dword loads. The generated code takes the address from the instruction's original VGPR, adds the immediate byte offset, aligns to a dword, reads the vector and then writes its destination registers. The native runtime checks the raw view's addressing and range semantics before binding. Indexed, swizzled and unsupported descriptor forms retain diagnostics.

The same 2,689 requests were scanned with four workers under gfx1013-compute-wave32@36, with the Python shader frontend and fallback disabled.

Prior first refusal Past the original PC Newly complete First refusal after just the one/two-dword change Final first refusals
One dword, immediate 52 bytes, destination aliases address 340/340 0 340 half-to-float conversions 337 register-offset scalar four-word reads, 2 subword vector shifts, 1 floating compare/update-EXEC
Two dwords, immediate 0 342/342 0 342 cosine instructions 339 register-offset scalar four-word reads, 2 subword vector shifts, 1 floating compare/update-EXEC

The follow-up adds the encountered e32 conversions and cosine, and extends the same vector-read lowering to widths three and four. The 676 remaining scalar reads are a different addressing problem: a scalar register supplies the byte offset for the four-word read. In an observed sequence, a shift by five computes the offset immediately before loading the descriptor.

Seven source-built cases ran through both the X2W and Victory 9376fd6 translators, then through a real D3D12 PSO for each output. GPU readbacks agreed bit-for-bit with each other and exactly with independent expectations (57,344 component comparisons per backend). Cases cover distinct per-lane addresses, both address/destination overlaps, a nonzero first element, a partial out-of-range pair, and non-dword-aligned input. Forcing the second fetch to use the already-overwritten address sent each lane to a different valid pair and failed exactly 2,048 component comparisons. Removing the 52-byte offset also failed 2,048. These controls are counted separately.

Corpus totals remain 41 complete / 2,648 refused. All 41 DXIL blobs matched their previous hashes. The six fixed-grid workloads and the entire HDR reference texture passed again. Seven corpus requests have numerical evidence, zero observed numerical mismatches, 34 await validation. Five targeted tests passed, zero skipped. Local working tree on a6c8d80d; RTX 4060 Laptop, driver 616.56, Windows 26200.9974, debug layer off.

ctest --test-dir out/build/native-dxil --no-tests=error -V -R '^native_wave_request_hardware$'
.\out\build\native-dxil\compile_dxil.exe $sdk $cache --jobs 4 gfx1013-compute-wave32@36 --requests $inputDirectory $outputDirectory
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7184956464 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7184956464). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T06:57:52Z. --- ### Native C++ per-lane raw buffer loads The runtime and offline frontend now lower linear offset-only MUBUF dword loads. The generated code takes the address from the instruction's original VGPR, adds the immediate byte offset, aligns to a dword, reads the vector and then writes its destination registers. The native runtime checks the raw view's addressing and range semantics before binding. Indexed, swizzled and unsupported descriptor forms retain diagnostics. The same 2,689 requests were scanned with four workers under `gfx1013-compute-wave32@36`, with the Python shader frontend and fallback disabled. | Prior first refusal | Past the original PC | Newly complete | First refusal after just the one/two-dword change | Final first refusals | |---|---:|---:|---|---| | One dword, immediate 52 bytes, destination aliases address | 340/340 | 0 | 340 half-to-float conversions | 337 register-offset scalar four-word reads, 2 subword vector shifts, 1 floating compare/update-EXEC | | Two dwords, immediate 0 | 342/342 | 0 | 342 cosine instructions | 339 register-offset scalar four-word reads, 2 subword vector shifts, 1 floating compare/update-EXEC | The follow-up adds the encountered e32 conversions and cosine, and extends the same vector-read lowering to widths three and four. The 676 remaining scalar reads are a different addressing problem: a scalar register supplies the byte offset for the four-word read. In an observed sequence, a shift by five computes the offset immediately before loading the descriptor. Seven source-built cases ran through both the X2W and Victory `9376fd6` translators, then through a real D3D12 PSO for each output. GPU readbacks agreed bit-for-bit with each other and exactly with independent expectations (57,344 component comparisons per backend). Cases cover distinct per-lane addresses, both address/destination overlaps, a nonzero first element, a partial out-of-range pair, and non-dword-aligned input. Forcing the second fetch to use the already-overwritten address sent each lane to a different valid pair and failed exactly 2,048 component comparisons. Removing the 52-byte offset also failed 2,048. These controls are counted separately. Corpus totals remain **41 complete / 2,648 refused**. All 41 DXIL blobs matched their previous hashes. The six fixed-grid workloads and the entire HDR reference texture passed again. Seven corpus requests have numerical evidence, zero observed numerical mismatches, 34 await validation. Five targeted tests passed, zero skipped. Local working tree on `a6c8d80d`; RTX 4060 Laptop, driver 616.56, Windows 26200.9974, debug layer off. ```powershell ctest --test-dir out/build/native-dxil --no-tests=error -V -R '^native_wave_request_hardware$' .\out\build\native-dxil\compile_dxil.exe $sdk $cache --jobs 4 gfx1013-compute-wave32@36 --requests $inputDirectory $outputDirectory ```
R0Y00 commented 2026-11-26 08:01:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T07:42:15Z.


Native C++ compute coverage

On the same 2,689 requests, full DXIL generation increased from 41 to 51. The other 2,638 still return explicit refusals. All 41 previously generated binaries remained byte-identical. Both batch runs used the four-worker native compiler, with the Python shader frontend and fallback disabled.

Fixed-input GPU validation Requests
Passed 17
Observed numeric mismatch 0
Compiled, awaiting numeric validation 34

All 10 additions exercised single-channel 2D D16 stores. Hardware readback matched the independent expected values for all 41,040 components on each of two runs, including untouched sentinels and secondary outputs. The source-built nonzero-half negative control changed 120 texels. The previously validated six grid cases and one full-resolution HDR case passed again. The HDR reference still has 18,890 signed-zero bit differences and zero numeric differences.

The diagnostic scan walked 17,783,837 instruction positions across all requests, including code after the first unsupported form. Overlapping gaps include three-input integer add (1,586 requests), signed scalar subtraction (1,503), and multi-block loop backedges (1,446). The executable compiler remains strict. For 46 unrecognized headers the diagnostic scan used the configured offset as a hypothesis.

In the 676-request scalar descriptor-load cohort, the resource heap and sampler heap occupy separate entry registers. All 676 advanced past the old decode refusal. The next first refusal is SDWA bitwise OR in 674 and three-input integer add in two. None of those 676 generated complete bytecode. A two-slot fixture matched the independent reference translator on the GPU; reversing the slots changed 6,144 output components. A whole-heap stride fixture read its index from a GPU buffer and distinguished typed and structured views. Changing the source offset by four bytes changed all 8,192 components. The independent translator refused the standalone descriptor-as-data fixture; its stride result is checked against an independent numerical expectation. Actual selected indices for this cohort in a live submission remain unverified.

Measured on an RTX 4060 Laptop GPU, driver 616.56, Windows build 26200.9974, debug layer off. Base revision a6c8d80dce9f plus local changes. Four-worker batch time was 3.880 s cold and 3.522 s with a populated cache, including all refusals and excluding process initialization. For the ten additions, the nine actual cache misses had a median backend time of 13.31 ms. All ten second-run hits had a median of 0.36 ms; median PSO creation was 10.90 ms.

Source-built check: ctest --test-dir out/build/native-dxil --no-tests=error -V -R '^native_(wave_request_hardware|compute_clear|lds_(warp|hardware|control_flow))$'. Five passed, zero failed or skipped. This checkpoint measures compilation and fixed-input compute dispatches. Scene rendering and input response remain open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7185742781 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7185742781). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T07:42:15Z. --- ### Native C++ compute coverage On the same 2,689 requests, full DXIL generation increased from **41 to 51**. The other **2,638** still return explicit refusals. All 41 previously generated binaries remained byte-identical. Both batch runs used the four-worker native compiler, with the Python shader frontend and fallback disabled. | Fixed-input GPU validation | Requests | | --- | ---: | | Passed | 17 | | Observed numeric mismatch | 0 | | Compiled, awaiting numeric validation | 34 | All 10 additions exercised single-channel 2D D16 stores. Hardware readback matched the independent expected values for all 41,040 components on each of two runs, including untouched sentinels and secondary outputs. The source-built nonzero-half negative control changed 120 texels. The previously validated six grid cases and one full-resolution HDR case passed again. The HDR reference still has 18,890 signed-zero bit differences and zero numeric differences. The diagnostic scan walked 17,783,837 instruction positions across all requests, including code after the first unsupported form. Overlapping gaps include three-input integer add (1,586 requests), signed scalar subtraction (1,503), and multi-block loop backedges (1,446). The executable compiler remains strict. For 46 unrecognized headers the diagnostic scan used the configured offset as a hypothesis. In the 676-request scalar descriptor-load cohort, the resource heap and sampler heap occupy separate entry registers. All 676 advanced past the old decode refusal. The next first refusal is SDWA bitwise OR in 674 and three-input integer add in two. None of those 676 generated complete bytecode. A two-slot fixture matched the independent reference translator on the GPU; reversing the slots changed 6,144 output components. A whole-heap stride fixture read its index from a GPU buffer and distinguished typed and structured views. Changing the source offset by four bytes changed all 8,192 components. The independent translator refused the standalone descriptor-as-data fixture; its stride result is checked against an independent numerical expectation. Actual selected indices for this cohort in a live submission remain unverified. Measured on an RTX 4060 Laptop GPU, driver 616.56, Windows build 26200.9974, debug layer off. Base revision `a6c8d80dce9f` plus local changes. Four-worker batch time was 3.880 s cold and 3.522 s with a populated cache, including all refusals and excluding process initialization. For the ten additions, the nine actual cache misses had a median backend time of 13.31 ms. All ten second-run hits had a median of 0.36 ms; median PSO creation was 10.90 ms. Source-built check: `ctest --test-dir out/build/native-dxil --no-tests=error -V -R '^native_(wave_request_hardware|compute_clear|lds_(warp|hardware|control_flow))$'`. Five passed, zero failed or skipped. This checkpoint measures compilation and fixed-input compute dispatches. Scene rendering and input response remain open.
mumba17 commented 2026-11-26 10:50:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-26T10:50:09Z.


RTX 3090 retest on unmodified main (slot 148 production path)

This is the matched RTX 3090 retest the status table asks for. It is stock main with no local stand-ins or patches, using the same original executable, saved profile and storage as my earlier slot 148 A/B.

Environment: Windows 11 build 26300.9974, Ryzen 5 5600X, NVIDIA GeForce RTX 3090, driver 32.0.16.1664, x64 Release at 700522ef, project debug layer off.

.\tools\startup\run.ps1 -Exe <run folder>\<title>.exe -DataDir <package root> -LogDir out\startup\run-27 `
    -Seconds 900 -MemoryGiB 34 -Render -Translate -FakeUser -GpuMirror -StartupBelow40 `
    -ContinueAsserts 200000 -StoragePath <abs storage root>

There was no input script; I gave input by hand. The shader cache came from 25 Nov, re-keyed with shader_cache_rekey.py, then gfx2hlsl.py --pending and the documented robocopy merge, and translated on the fly during the run with -Translate.

Observed:

  • The run passed command-list slot 148 upload allocation, where my earlier stock comparison stopped. It also passed the BVH builder and the first 2D-only phase.
  • The saved profile skipped the first-run pages. Video playback and 2D-only frames followed; I advanced them by holding A.
  • At about 745 s a white screen faded to black. At about 855 s a 2D overlay was drawn over a black scene.
  • The 3D scene never appeared. The last render totals were 66 pipelines translated and 585 missing, with 105,180 translated draws not drawn.
  • The run reached the 900 s timeout. No second-chance exception occurred and the process did not stop early.
  • Presentation averaged 14.3 fps over the run (12,654 frames in 883 s). From about 720 s it fell to about 2 frames/s.
  • DirectStorage had 13,421 requests done and 1 failed (destination capacity) at 600 s. Commit peaked at 30,937 MiB.
  • Input: the title read A at 153.6 s through 890.8 s. Character movement and camera input were not tested, so character control remains unverified.

Leading first refusals in the run's translation log (3,773 lines, graphics and compute together):

Count First refusal
526 v_readfirstlane_b32 requires a proven uniform source
331 s_branch inside an s_cbranch_execz block branches out of the block
241 slot N mesh: s_cbranch_execz skips code with effects outside active lanes
176 shader request source key mismatch (stale pre-re-key requests)
97 slot N pixel stage mixes the null export with another export
95 s_cbranch_scc0 inside an s_cbranch_execz block

The 176 + 62 "source key mismatch" lines come from old-revision requests that the watcher picked up; they are not new translator gaps.

My next step is to find out which of the 585 missing graphics pipelines the black scene depends on before claiming anything. No game data, screenshots or captures are attached.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7189900597 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7189900597). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-26T10:50:09Z. --- **RTX 3090 retest on unmodified main (slot 148 production path)** This is the matched RTX 3090 retest the status table asks for. It is stock main with no local stand-ins or patches, using the same original executable, saved profile and storage as my earlier slot 148 A/B. Environment: Windows 11 build 26300.9974, Ryzen 5 5600X, NVIDIA GeForce RTX 3090, driver 32.0.16.1664, x64 Release at 700522ef, project debug layer off. ```powershell .\tools\startup\run.ps1 -Exe <run folder>\<title>.exe -DataDir <package root> -LogDir out\startup\run-27 ` -Seconds 900 -MemoryGiB 34 -Render -Translate -FakeUser -GpuMirror -StartupBelow40 ` -ContinueAsserts 200000 -StoragePath <abs storage root> ``` There was no input script; I gave input by hand. The shader cache came from 25 Nov, re-keyed with `shader_cache_rekey.py`, then `gfx2hlsl.py --pending` and the documented robocopy merge, and translated on the fly during the run with `-Translate`. Observed: - The run passed command-list slot 148 upload allocation, where my earlier stock comparison stopped. It also passed the BVH builder and the first 2D-only phase. - The saved profile skipped the first-run pages. Video playback and 2D-only frames followed; I advanced them by holding A. - At about 745 s a white screen faded to black. At about 855 s a 2D overlay was drawn over a black scene. - The 3D scene never appeared. The last render totals were 66 pipelines translated and 585 missing, with 105,180 translated draws not drawn. - The run reached the 900 s timeout. No second-chance exception occurred and the process did not stop early. - Presentation averaged 14.3 fps over the run (12,654 frames in 883 s). From about 720 s it fell to about 2 frames/s. - DirectStorage had 13,421 requests done and 1 failed (destination capacity) at 600 s. Commit peaked at 30,937 MiB. - Input: the title read A at 153.6 s through 890.8 s. Character movement and camera input were not tested, so character control remains unverified. Leading first refusals in the run's translation log (3,773 lines, graphics and compute together): | Count | First refusal | |---:|---| | 526 | `v_readfirstlane_b32` requires a proven uniform source | | 331 | `s_branch` inside an `s_cbranch_execz` block branches out of the block | | 241 | slot N mesh: `s_cbranch_execz` skips code with effects outside active lanes | | 176 | shader request source key mismatch (stale pre-re-key requests) | | 97 | slot N pixel stage mixes the null export with another export | | 95 | `s_cbranch_scc0` inside an `s_cbranch_execz` block | The 176 + 62 "source key mismatch" lines come from old-revision requests that the watcher picked up; they are not new translator gaps. My next step is to find out which of the 585 missing graphics pipelines the black scene depends on before claiming anything. No game data, screenshots or captures are attached. AI-assisted (Claude Code).
lambirou commented 2026-11-26 11:03:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-26T10:49:41Z.


Local run at a6c8d80d with a storage path — 344.7 s, indirect still not entered

I rebuilt a6c8d80d from source in a clean worktree, restored the revision-14 shader-cache archive (330 .a, 26 .txt; not precompiled) and ran the launcher with -StoragePath S:\x2w-gamesave, with S: a subst mapping to a local folder. Same default flags, 600 s limit. Host is the local RX 9060 XT, default adapter, project debug layer off.

Measurement Result
Stop 344.73 s, second-chance 0xc0000005 read of 0x0 (game_scarlett_master.exe+0xf7d27b, return +0xf83de7, stack through ucrtbase+0x4a9eb)
Frames 9,559 in 333.3 s (28.7 fps)
Pipelines 19 translated / 0 missing
Draws 201,517 translated / 0 not drawn
Textures 1,393 uploaded (5.63 GiB)
Bindings 0 null
DirectStorage 0 failed requests of every cause
Heap-indexed roots 107,878 deferred; real draws refused 0

The storage path removes the old failure: there is no 0xc000003a and no gamesave error anywhere in the log. It does not create a profile — S:\x2w-gamesave is empty at exit. The reference used an existing save, so this remains a configuration difference rather than a real saved-profile run.

The indirect path is still not exercised:

x2w-render indirect: forwarded: 0; refused graphics-pipeline: 0; compute-pipeline: 0; placeholder-signature: 0; other: 0
pipelines first looked up by ExecuteIndirect 0

So the A2 mesh counters cannot be measured from this run either: slot 61 never produces a lookup. The stop moved from the 243–264 s range of the earlier local builds to 344.7 s, with the same 19/19 pipeline coverage.

First-chance exceptions: 5,618, of which 5,597 are 0xc0000005 at d3d12_xs.dll+0x53cb55 (handled, then retried), 7 are C++ 0xe06d7363, and the rest are loader/breakpoint events. The capture at the stop is 1600×900 and black (mean 39/255); I did not capture during the 138–275 s window, so I cannot say whether the loading illustrations appeared.

I can rerun at another revision, with PDBs for d3d12_xs+0x53cb55, or with extra logging if that helps.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7189890496 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7189890496). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-26T10:49:41Z. --- ## Local run at `a6c8d80d` with a storage path — 344.7 s, indirect still not entered I rebuilt `a6c8d80d` from source in a clean worktree, restored the revision-14 shader-cache archive (330 `.a`, 26 `.txt`; not precompiled) and ran the launcher with `-StoragePath S:\x2w-gamesave`, with `S:` a `subst` mapping to a local folder. Same default flags, 600 s limit. Host is the local RX 9060 XT, default adapter, project debug layer off. | Measurement | Result | | --- | --- | | Stop | 344.73 s, second-chance `0xc0000005` read of 0x0 (`game_scarlett_master.exe+0xf7d27b`, return `+0xf83de7`, stack through `ucrtbase+0x4a9eb`) | | Frames | 9,559 in 333.3 s (28.7 fps) | | Pipelines | 19 translated / 0 missing | | Draws | 201,517 translated / 0 not drawn | | Textures | 1,393 uploaded (5.63 GiB) | | Bindings | 0 null | | DirectStorage | 0 failed requests of every cause | | Heap-indexed roots | 107,878 deferred; real draws refused 0 | The storage path removes the old failure: there is no `0xc000003a` and no gamesave error anywhere in the log. It does **not** create a profile — `S:\x2w-gamesave` is empty at exit. The reference used an existing save, so this remains a configuration difference rather than a real saved-profile run. The indirect path is still not exercised: ```text x2w-render indirect: forwarded: 0; refused graphics-pipeline: 0; compute-pipeline: 0; placeholder-signature: 0; other: 0 pipelines first looked up by ExecuteIndirect 0 ``` So the A2 mesh counters cannot be measured from this run either: slot 61 never produces a lookup. The stop moved from the 243–264 s range of the earlier local builds to 344.7 s, with the same 19/19 pipeline coverage. First-chance exceptions: 5,618, of which 5,597 are `0xc0000005` at `d3d12_xs.dll+0x53cb55` (handled, then retried), 7 are C++ `0xe06d7363`, and the rest are loader/breakpoint events. The capture at the stop is 1600×900 and black (mean 39/255); I did not capture during the 138–275 s window, so I cannot say whether the loading illustrations appeared. I can rerun at another revision, with PDBs for `d3d12_xs+0x53cb55`, or with extra logging if that helps.
RenzoWit35 commented 2026-11-26 11:03:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RenzoWit35 on 2026-11-26T10:55:24Z.


Claiming the clipped paired draw task from https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7180370455.

Plan: extend the indexed startup_stream_viewport path with two arms on the same indices, viewport, scissor, rasterizer and sentinel target. The first arm draws a visible SV_Position triangle; the second moves all three vertices beyond one homogeneous clip plane. After the fence each arm records the IA, clipper and pixel-invocation counts and the target readback. The negative arm must leave the sentinel unchanged, with the same IA and clipper input counts and zero clipper output and pixel invocations.

I can build this and run it on WARP. I have no discrete adapter to report from, so the _hardware arm will need someone else's run; I'll post the WARP adapter, driver and first mismatch with the PR.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7190018769 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7190018769). Originally posted by [RenzoWit35](https://github.com/RenzoWit35) on 2026-11-26T10:55:24Z. --- Claiming the clipped paired draw task from https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7180370455. Plan: extend the indexed `startup_stream_viewport` path with two arms on the same indices, viewport, scissor, rasterizer and sentinel target. The first arm draws a visible `SV_Position` triangle; the second moves all three vertices beyond one homogeneous clip plane. After the fence each arm records the IA, clipper and pixel-invocation counts and the target readback. The negative arm must leave the sentinel unchanged, with the same IA and clipper input counts and zero clipper output and pixel invocations. I can build this and run it on WARP. I have no discrete adapter to report from, so the `_hardware` arm will need someone else's run; I'll post the WARP adapter, driver and first mismatch with the PR. AI-assisted.
tedin7 commented 2026-11-26 13:53:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T13:53:22Z.


@MasterDomino ten of our PRs are Ready and waiting for a maintainer. Each one has CI green and a Win2025 WARP dev+release receipt on the head listed below. Suggested merge order, oldest first:

  1. #2766 619ae7009 tests: serve GPU draw cases from one offscreen_check device (Part of #448)
  2. #2817 1039125e1 startup: print raw= and completed= in the DirectStorage status lines (Fixes #2816)
  3. #2820 d39f65cfc startup: warn when the shader cache and the translator come from different revisions (Fixes #2815)
  4. #2822 0d4a8afe4 startup-tools: save the title's window every N seconds, --capture-every (Fixes #2819)
  5. #2827 eb82f1d39 build: startup_runtime target and runtime preset (Fixes #2826)
  6. #2833 83828d249 startup: system commit, job limit and page-pool counters in the budget line (Fixes #2832)
  7. #2836 a243e5b4c startup: name the cause of a slot 70 texture_unavailable refusal (Fixes #2831)
  8. #2841 da2a38f57 startup: slot 70 structured buffer views at sub-allocated addresses (Fixes #2839)
  9. #2846 f85b47bfa startup: refuse unmapped source ranges before a probe or a copy (Fixes #2845)
  10. #2862 73b2d0ff7 startup: read translated compute inputs that live only in title memory from a snapshot (Fixes #2860)

Dependencies and overlaps:

  • #2766 is test-only. It shares only CMakeLists.txt with the others.
  • #2827 is the build base that later startup work is built on, so it is worth merging early. Moving it to the front is fine; it does not depend on the others.
  • #2836 must go before #2841: both change d3d12_memory_srv.inl.
  • #2846 shares d3d12_draw.inl with #2820 and d3d12_xs_device.cpp with #2833 and #2841, so it goes after them.
  • #2862 shares d3d12_draw.inl and d3d12_xs_device.cpp with #2820, #2833, #2841 and #2846, so it goes after them.
  • #2820 and #2822 both touch run.ps1, run.sh and windows.yml. #2833 shares triage_run.py with #2836 and d3d12_xs_device.cpp with #2841.
  • Most of them also add a line to docs/startup-runtime.md and CMakeLists.txt. After each merge, if the next one shows a conflict, we merge main into it (no force-push), wait for CI and post a new receipt on the new head before you merge it.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7193977181 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7193977181). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T13:53:22Z. --- @MasterDomino ten of our PRs are Ready and waiting for a maintainer. Each one has CI green and a Win2025 WARP dev+release receipt on the head listed below. Suggested merge order, oldest first: 1. #2766 `619ae7009` tests: serve GPU draw cases from one offscreen_check device (Part of #448) 2. #2817 `1039125e1` startup: print raw= and completed= in the DirectStorage status lines (Fixes #2816) 3. #2820 `d39f65cfc` startup: warn when the shader cache and the translator come from different revisions (Fixes #2815) 4. #2822 `0d4a8afe4` startup-tools: save the title's window every N seconds, `--capture-every` (Fixes #2819) 5. #2827 `eb82f1d39` build: startup_runtime target and runtime preset (Fixes #2826) 6. #2833 `83828d249` startup: system commit, job limit and page-pool counters in the budget line (Fixes #2832) 7. #2836 `a243e5b4c` startup: name the cause of a slot 70 texture_unavailable refusal (Fixes #2831) 8. #2841 `da2a38f57` startup: slot 70 structured buffer views at sub-allocated addresses (Fixes #2839) 9. #2846 `f85b47bfa` startup: refuse unmapped source ranges before a probe or a copy (Fixes #2845) 10. #2862 `73b2d0ff7` startup: read translated compute inputs that live only in title memory from a snapshot (Fixes #2860) Dependencies and overlaps: - #2766 is test-only. It shares only `CMakeLists.txt` with the others. - #2827 is the build base that later startup work is built on, so it is worth merging early. Moving it to the front is fine; it does not depend on the others. - #2836 must go before #2841: both change `d3d12_memory_srv.inl`. - #2846 shares `d3d12_draw.inl` with #2820 and `d3d12_xs_device.cpp` with #2833 and #2841, so it goes after them. - #2862 shares `d3d12_draw.inl` and `d3d12_xs_device.cpp` with #2820, #2833, #2841 and #2846, so it goes after them. - #2820 and #2822 both touch `run.ps1`, `run.sh` and `windows.yml`. #2833 shares `triage_run.py` with #2836 and `d3d12_xs_device.cpp` with #2841. - Most of them also add a line to `docs/startup-runtime.md` and `CMakeLists.txt`. After each merge, if the next one shows a conflict, we merge main into it (no force-push), wait for CI and post a new receipt on the new head before you merge it. AI-assisted; commands listed were executed locally.
phantrieu2006-blip commented 2026-11-26 18:06:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by phantrieu2006-blip on 2026-11-26T18:06:39Z.


Independent run on RTX 3060 Laptop (6 GB): current main, original executable, offline stand-ins.

Data point for a 6 GB adapter. It does not reach the loading illustrations; the run stays in the opening stage with no texture uploads.

Environment

  • main @ 6ee878d8, release preset (MSVC, VS Build Tools), out/pe-env from requirements-dev.txt
  • Windows 11 build 26200.9974
  • NVIDIA GeForce RTX 3060 Laptop GPU (10de:2520, 6 GB), driver 32.0.16.2101, debug layer unavailable
  • Ryzen 9 5900HS, 32 GB RAM
  • Original executable and its 16 adjacent DLLs staged with tools/startup/stage_package.ps1; no saved profile, empty shader cache before the first run

Launch: the documented command faults at 0.3–0.5 s

The run.ps1 command in docs/startup-runtime.md ("Run"), with -DataDir pointing at the package folder, stopped twice on the same second-chance access violation, a memset in vcruntime140.dll with destination 0x7ffffe0f0. It is the signature described in https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7129583205. Adding -HostCpu -StartupBelow40 -LazyMemory did not change it (0.32 s).

What got past it, as that comment describes:

subst G: <package root>
.\tools\startup\run.ps1 -Exe <run folder>\<title>.exe -DataDir G:\ -StoragePath <existing writable folder> `
    -LogDir out\startup\run3 -Seconds 180 -MemoryGiB 20 -Render -Translate -FakeUser -GpuMirror `
    -ContinueAsserts 1000 -InputScript 4@70

With the package root as a drive root and an existing -StoragePath, both runs below lasted the full 180 s. The "Run" section of the doc does not mention either requirement yet.

Results

Run 3 (empty shader cache) Run 4 (same cache, second run)
End timeout after 180.98 s timeout after 180.18 s
Presented 1,651 frames in 170.5 s (9.7 fps) 1,250 frames in 166.1 s (7.5 fps)
Translated draws 4,380 (not drawn 88) 3,598 (not drawn 0)
Pipelines translated / missing 3 / 0 3 / 0
Textures uploaded 0 0
Distinct archive opens 60 (including movies, textures, script, shaders) 60
Network opens refused 2 (\Device\Afd\Endpoint) 2
Dominant stand-in time pipeline creation (last report: 149,482 ms over 82 calls) frame waits (last report: 6,333 ms over 88 calls)

The swap chain was 1600×900 and the presented plane 3840×2160, format 28.

Shader requests captured after both runs: 2,689. 115 translated, 1,272 refused. The five most frequent first refusal reasons (numbers normalised):

Count Reason
268 v_readfirstlane_bN requires a proven uniform source
151 s_branch inside a block s_cbranch_execz skips per lane: branch out of the block
85 v_cmp_gt_iN_eN inside a block s_cbranch_execz skips per lane: definition of vcc_hi …
41 COMPUTE_PGM_RSRCN TG_SIZE_EN requires at most N threads per group
37 s_mov_bN inside a block s_cbranch_execz skips per lane: definition of sN …

No E_OUTOFMEMORY appeared in either run. The run did not get far enough to load textures, so it does not show whether 6 GB is enough.

Not verified

Intro image content, menu interaction and the loading illustrations. I did not look at window.png: it copies the screen area of the window and can include other windows. Logs, captured shaders and the staged package stay local.


Run from a local source build of the commit above; this comment was prepared with AI assistance (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7200064776 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7200064776). Originally posted by [phantrieu2006-blip](https://github.com/phantrieu2006-blip) on 2026-11-26T18:06:39Z. --- **Independent run on RTX 3060 Laptop (6 GB): current `main`, original executable, offline stand-ins.** Data point for a 6 GB adapter. It does not reach the loading illustrations; the run stays in the opening stage with no texture uploads. ### Environment - `main` @ `6ee878d8`, `release` preset (MSVC, VS Build Tools), `out/pe-env` from `requirements-dev.txt` - Windows 11 build 26200.9974 - NVIDIA GeForce RTX 3060 Laptop GPU (`10de:2520`, 6 GB), driver 32.0.16.2101, debug layer unavailable - Ryzen 9 5900HS, 32 GB RAM - Original executable and its 16 adjacent DLLs staged with `tools/startup/stage_package.ps1`; no saved profile, empty shader cache before the first run ### Launch: the documented command faults at 0.3–0.5 s The `run.ps1` command in `docs/startup-runtime.md` ("Run"), with `-DataDir` pointing at the package folder, stopped twice on the same second-chance access violation, a `memset` in `vcruntime140.dll` with destination `0x7ffffe0f0`. It is the signature described in https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7129583205. Adding `-HostCpu -StartupBelow40 -LazyMemory` did not change it (0.32 s). What got past it, as that comment describes: ```powershell subst G: <package root> .\tools\startup\run.ps1 -Exe <run folder>\<title>.exe -DataDir G:\ -StoragePath <existing writable folder> ` -LogDir out\startup\run3 -Seconds 180 -MemoryGiB 20 -Render -Translate -FakeUser -GpuMirror ` -ContinueAsserts 1000 -InputScript 4@70 ``` With the package root as a drive root and an existing `-StoragePath`, both runs below lasted the full 180 s. The "Run" section of the doc does not mention either requirement yet. ### Results | | Run 3 (empty shader cache) | Run 4 (same cache, second run) | |---|---|---| | End | timeout after 180.98 s | timeout after 180.18 s | | Presented | 1,651 frames in 170.5 s (9.7 fps) | 1,250 frames in 166.1 s (7.5 fps) | | Translated draws | 4,380 (not drawn 88) | 3,598 (not drawn 0) | | Pipelines translated / missing | 3 / 0 | 3 / 0 | | Textures uploaded | 0 | 0 | | Distinct archive opens | 60 (including movies, textures, script, shaders) | 60 | | Network opens refused | 2 (`\Device\Afd\Endpoint`) | 2 | | Dominant stand-in time | pipeline creation (last report: 149,482 ms over 82 calls) | frame waits (last report: 6,333 ms over 88 calls) | The swap chain was 1600×900 and the presented plane 3840×2160, format 28. Shader requests captured after both runs: 2,689. 115 translated, 1,272 refused. The five most frequent first refusal reasons (numbers normalised): | Count | Reason | |---|---| | 268 | `v_readfirstlane_bN requires a proven uniform source` | | 151 | `s_branch inside a block s_cbranch_execz skips per lane: branch out of the block` | | 85 | `v_cmp_gt_iN_eN inside a block s_cbranch_execz skips per lane: definition of vcc_hi …` | | 41 | `COMPUTE_PGM_RSRCN TG_SIZE_EN requires at most N threads per group` | | 37 | `s_mov_bN inside a block s_cbranch_execz skips per lane: definition of sN …` | No `E_OUTOFMEMORY` appeared in either run. The run did not get far enough to load textures, so it does not show whether 6 GB is enough. ### Not verified Intro image content, menu interaction and the loading illustrations. I did not look at `window.png`: it copies the screen area of the window and can include other windows. Logs, captured shaders and the staged package stay local. --- Run from a local source build of the commit above; this comment was prepared with AI assistance (Claude Code).
lambirou commented 2026-11-26 21:11:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-26T21:11:24Z.


Six PRs are open and green, split by behavior:

  • #2919 — persistent translated PSO recipes; the two-process replay test now writes, reloads and precreates a recipe and compares all 32 RGBA bytes.
  • #2920 — opt-in all-or-none gate for the slot 62 BVH builder pipeline set.
  • #2921 — CPU model of the console BVH node formats, 315 witness cases, registered in the Linux Python check list.
  • #2922 — first translator slice of image_bvh_intersect_ray (FP32 box node, 32-bit form), with the unsupported cases refused by name.
  • #2923 — design for EXEC removal and structurization in the C++ frontend.
  • #2924 — plan for the first complete slot 57 mesh DXIL translation.

All six are title-neutral, contain no game files or captures, and have the Windows checks green on their current head. CI caught one manifest regression in #2922 (fixed in 2ec454f9) and the new PSO replay test caught an unused depth-state serialization bug (fixed in a891727f). I am following reviews and will address findings on the same branches.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7203479020 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7203479020). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-26T21:11:24Z. --- Six PRs are open and green, split by behavior: - [#2919](https://github.com/R0Y00/Xbox2Windows/pull/2919) — persistent translated PSO recipes; the two-process replay test now writes, reloads and precreates a recipe and compares all 32 RGBA bytes. - [#2920](https://github.com/R0Y00/Xbox2Windows/pull/2920) — opt-in all-or-none gate for the slot 62 BVH builder pipeline set. - [#2921](https://github.com/R0Y00/Xbox2Windows/pull/2921) — CPU model of the console BVH node formats, 315 witness cases, registered in the Linux Python check list. - [#2922](https://github.com/R0Y00/Xbox2Windows/pull/2922) — first translator slice of `image_bvh_intersect_ray` (FP32 box node, 32-bit form), with the unsupported cases refused by name. - [#2923](https://github.com/R0Y00/Xbox2Windows/pull/2923) — design for EXEC removal and structurization in the C++ frontend. - [#2924](https://github.com/R0Y00/Xbox2Windows/pull/2924) — plan for the first complete slot 57 mesh DXIL translation. All six are title-neutral, contain no game files or captures, and have the Windows checks green on their current head. CI caught one manifest regression in #2922 (fixed in `2ec454f9`) and the new PSO replay test caught an unused depth-state serialization bug (fixed in `a891727f`). I am following reviews and will address findings on the same branches. AI-assisted.
R0Y00 commented 2026-11-27 11:07:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T11:07:42Z.


Community work after #3039

New C++ shader translator and resource-binding PRs should target main. Contributors with an existing PR against cpp-migration can keep working in the same PR. Check dependencies before changing the base, then review the resulting diff and rerun the relevant tests. Existing claims stay with their contributors.

  • Review #2993 (compute table buffers and 2D texture bindings) and #2975 (1D and 3D texture UAVs) on the new base. Both previously had approvals against the migration branch.
  • Check #2981 against the first-use graphics compiler in main before carrying over its remaining changes.
  • Track the revision-29 request-key change identified in #3038 separately. Verify the runtime producer and offline consumer agree for graphics and compute requests.
  • For independent shader changes, include a source-built positive case, a negative control and an exact-head result. Distinguish compilation, GPU output and capability skips. Full corpus coverage is not a prerequisite for an independently tested change.

Please claim an available task on its GitHub issue and link the implementing PR there. #870 continues to track integration evidence. The merge of #3039 alone does not establish a new runtime milestone.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7216711126 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7216711126). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-27T11:07:42Z. --- ## Community work after #3039 New C++ shader translator and resource-binding PRs should target `main`. Contributors with an existing PR against `cpp-migration` can keep working in the same PR. Check dependencies before changing the base, then review the resulting diff and rerun the relevant tests. Existing claims stay with their contributors. - Review #2993 (compute table buffers and 2D texture bindings) and #2975 (1D and 3D texture UAVs) on the new base. Both previously had approvals against the migration branch. - Check #2981 against the first-use graphics compiler in main before carrying over its remaining changes. - Track the revision-29 request-key change identified in #3038 separately. Verify the runtime producer and offline consumer agree for graphics and compute requests. - For independent shader changes, include a source-built positive case, a negative control and an exact-head result. Distinguish compilation, GPU output and capability skips. Full corpus coverage is not a prerequisite for an independently tested change. Please claim an available task on its GitHub issue and link the implementing PR there. #870 continues to track integration evidence. The merge of #3039 alone does not establish a new runtime milestone.
sydney-0o commented 2026-11-27 14:16:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by sydney-0o on 2026-11-27T14:16:00Z.


I screened issues and PRs updated from 2026-11-26 14:11 UTC to 2026-11-27 14:11 UTC. These are updates, not necessarily newly opened items; many old PRs were closed administratively. The following add relevant links or findings to this tracker:

  • Compute bindings and startup comparison: #3049 combines the work from #2975 and #2993 on main; independent synthetic native fixtures passed. A 300-second cold-cache comparison of base 35f7197e and that base with tested PR head e56cb78d reported 498 versus 8,986 first-chance access violations and 1,126 versus 38 texture uploads. The later progress differs substantially, so the cause is not established. The maintainer requested event-aligned exception sites, an injected-manifest A/B, file-open progress and three dispatches before merge: comparison and requested follow-up. The PR head has since advanced; the comparison applies to the tested head.
  • Pixel descriptor regression: #3064 tracks structured-to-raw pixel descriptor loads refused after #2910. In one reported local cohort, 293 of 536 shaders first stopped at this refusal; an experimental gate advanced 257, but none completed because of later refusals. These are cohort-specific translator findings, not proof of runtime execution.
  • Shader numeric correctness: #3052 tracks SDWA comparison and packed-U8 issues. Fixes #3053 and #3058 are merged into main; an independent RTX 4060 synthetic GPU readback passed, while the requested original-adapter and AMD retests remain relevant. The tracking issue remains open.
  • Selectable heap bindings: #3023 tracks the runtime contract. Compiler-side #3034 and #3042 were merged into cpp-migration; #3063 is open against that branch for mixed raw/typed descriptor contracts. Runtime validation of all selectable slots remains a separate requirement. Branch status should be checked before assuming these changes are in main.
  • Wave metadata: #2999 and open PR #3006 investigate wave-size inference from shader metadata. The proposed interpretation and effects on previously cached translations need review and validation.
  • Startup upload work: #3027 / #3028 address opt-in avoidance of unused root-SRV copies; #2948 / #2949 address a separate opt-in fenced chunk-release path. Merged fixture work does not by itself establish an improvement in a title startup run.

For a cross-cutting view of container decoding, control flow, EXEC and resource provenance, DXIL bindings, PSO creation, execution and readback, I opened the shader pipeline tracker #3074. It links the existing work by stage and records the evidence needed for end-to-end progress.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7220562927 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7220562927). Originally posted by [sydney-0o](https://github.com/sydney-0o) on 2026-11-27T14:16:00Z. --- ### Integration update: shader and startup links from the last 24 hours I screened issues and PRs updated from 2026-11-26 14:11 UTC to 2026-11-27 14:11 UTC. These are updates, not necessarily newly opened items; many old PRs were closed administratively. The following add relevant links or findings to this tracker: - **Compute bindings and startup comparison:** #3049 combines the work from #2975 and #2993 on `main`; independent synthetic native fixtures passed. A 300-second cold-cache comparison of base `35f7197e` and that base with tested PR head `e56cb78d` reported 498 versus 8,986 first-chance access violations and 1,126 versus 38 texture uploads. The later progress differs substantially, so the cause is not established. The maintainer requested event-aligned exception sites, an injected-manifest A/B, file-open progress and three dispatches before merge: [comparison and requested follow-up](https://github.com/R0Y00/Xbox2Windows/pull/3049#issuecomment-7218653806). The PR head has since advanced; the comparison applies to the tested head. - **Pixel descriptor regression:** #3064 tracks structured-to-raw pixel descriptor loads refused after #2910. In one reported local cohort, 293 of 536 shaders first stopped at this refusal; an experimental gate advanced 257, but none completed because of later refusals. These are cohort-specific translator findings, not proof of runtime execution. - **Shader numeric correctness:** #3052 tracks SDWA comparison and packed-U8 issues. Fixes #3053 and #3058 are merged into `main`; an independent RTX 4060 synthetic GPU readback passed, while the requested original-adapter and AMD retests remain relevant. The tracking issue remains open. - **Selectable heap bindings:** #3023 tracks the runtime contract. Compiler-side #3034 and #3042 were merged into `cpp-migration`; #3063 is open against that branch for mixed raw/typed descriptor contracts. Runtime validation of all selectable slots remains a separate requirement. Branch status should be checked before assuming these changes are in `main`. - **Wave metadata:** #2999 and open PR #3006 investigate wave-size inference from shader metadata. The proposed interpretation and effects on previously cached translations need review and validation. - **Startup upload work:** #3027 / #3028 address opt-in avoidance of unused root-SRV copies; #2948 / #2949 address a separate opt-in fenced chunk-release path. Merged fixture work does not by itself establish an improvement in a title startup run. For a cross-cutting view of container decoding, control flow, EXEC and resource provenance, DXIL bindings, PSO creation, execution and readback, I opened the shader pipeline tracker #3074. It links the existing work by stage and records the evidence needed for end-to-end progress.
lambirou commented 2026-11-27 17:04:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-27T17:04:13Z.


Independent counter receipt for the #3091 + #3094 stack (b80513fd) on Windows: 300 s run, 5998 frames at 21.3 fps, translated draws 17636 (not drawn 47597), pipelines 3 translated / 8 missing, indirect forwarded 0 (no dispatchmesh category), compute translated 0 / no translation 3460, peak commit 11888 MiB, clean timeout, black capture. Caveat: cold revision-29 cache and two parallel builds. Details in #3094. The mesh path is still not reached in the title run; this comment makes no regression or progress claim.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7223990936 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7223990936). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-27T17:04:13Z. --- Independent counter receipt for the #3091 + #3094 stack (`b80513fd`) on Windows: 300 s run, 5998 frames at 21.3 fps, `translated draws 17636 (not drawn 47597)`, `pipelines 3 translated / 8 missing`, `indirect forwarded 0` (no dispatchmesh category), `compute translated 0 / no translation 3460`, peak commit 11888 MiB, clean timeout, black capture. Caveat: cold revision-29 cache and two parallel builds. Details in #3094. The mesh path is still not reached in the title run; this comment makes no regression or progress claim.
lambirou commented 2026-11-27 17:16:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-27T17:16:03Z.


Follow-up on the #3091 + #3094 stack, warm cache, idle machine. Run 3 (18 GiB): 6721 frames in 289.4 s (23.2 fps), translated draws 60713 (not drawn 4047), pipelines 10 / missing 2, textures uploaded 1364, compute translated 3, indirect forwarded 0, peak commit 17181 MiB, stopped at 297.30 s on an access violation in XboxBvhBuilder.dll+0x1cef4 (rcx=0). The loading path matches the 26/11 reference; the mesh path is still not reached, and the BVH builder is the next blocking crash. Details in #3094.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7224215423 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7224215423). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-27T17:16:03Z. --- Follow-up on the #3091 + #3094 stack, warm cache, idle machine. Run 3 (18 GiB): 6721 frames in 289.4 s (23.2 fps), `translated draws 60713 (not drawn 4047)`, `pipelines 10 / missing 2`, `textures uploaded 1364`, `compute translated 3`, `indirect forwarded 0`, peak commit 17181 MiB, stopped at 297.30 s on an access violation in `XboxBvhBuilder.dll+0x1cef4` (rcx=0). The loading path matches the 26/11 reference; the mesh path is still not reached, and the BVH builder is the next blocking crash. Details in #3094.
R0Y00 commented 2026-11-27 17:46:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T17:46:58Z.


Saved-profile retest · 28 November 2026

With a copy of the existing save, the original executable reached the prologue using local integration build 2bd936f7-dirty, the native C++ shader translator, a warm shader cache and Python shader fallback disabled.

The operator heard the prologue audio playing normally, but no visible 3D scene appeared in the window. The menu was visible, although some colored panels appeared to draw incorrectly. The existing gradient and textured-band investigations are #3131 and #3132. Whether either explains the missing prologue scene remains open. Visible character movement and control are still unverified.

The runtime logged 2,821 presents at 151.7 s and subsequently reported device removal with reason 0x887a0006 (DXGI_ERROR_DEVICE_HUNG). The onset of the missing picture was not synchronized to that diagnostic, so its relationship to the visual failure is unresolved.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7224780934 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7224780934). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-27T17:46:58Z. --- ### Saved-profile retest · 28 November 2026 With a copy of the existing save, the original executable reached the prologue using local integration build `2bd936f7-dirty`, the native C++ shader translator, a warm shader cache and Python shader fallback disabled. The operator heard the prologue audio playing normally, but no visible 3D scene appeared in the window. The menu was visible, although some colored panels appeared to draw incorrectly. The existing gradient and textured-band investigations are #3131 and #3132. Whether either explains the missing prologue scene remains open. Visible character movement and control are still unverified. The runtime logged 2,821 presents at 151.7 s and subsequently reported device removal with reason `0x887a0006` (DXGI_ERROR_DEVICE_HUNG). The onset of the missing picture was not synchronized to that diagnostic, so its relationship to the visual failure is unresolved.
R0Y00 commented 2026-11-27 18:50:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T18:50:36Z.


Empty-profile runtime validation · 2026-11-28

A local Windows 11 run on an RTX 4060 Laptop GPU used an empty profile, native C++ shader translation with Python fallback disabled, and manual input. The tester confirmed that the menus displayed and responded normally, including after the sampler and BC7 display-upload corrections. After entering the later sequence, audio was audible and responded to controls. Visible 3D scene rendering and on-screen character movement remain unverified.

The runtime recorded 7,395 presented frames by 301.8 seconds. The process exited with code 1 at 307.6 seconds. No D3D12 device-removal message was recorded in this run. The exit cause remains open.

The menu changes are in #3153 targeting main, with source-built WARP and hardware regressions for #3131 and #3132. The next rendering milestone is to identify the first missing scene-color write and verify visible response to movement input.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7225928310 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7225928310). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-27T18:50:36Z. --- ## Empty-profile runtime validation · 2026-11-28 A local Windows 11 run on an RTX 4060 Laptop GPU used an empty profile, native C++ shader translation with Python fallback disabled, and manual input. The tester confirmed that the menus displayed and responded normally, including after the sampler and BC7 display-upload corrections. After entering the later sequence, audio was audible and responded to controls. Visible 3D scene rendering and on-screen character movement remain unverified. The runtime recorded 7,395 presented frames by 301.8 seconds. The process exited with code 1 at 307.6 seconds. No D3D12 device-removal message was recorded in this run. The exit cause remains open. The menu changes are in #3153 targeting main, with source-built WARP and hardware regressions for #3131 and #3132. The next rendering milestone is to identify the first missing scene-color write and verify visible response to movement input.
tedin7 commented 2026-11-27 21:35:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-27T21:35:10Z.


Mesh (slot 57) coordination: I posted which pieces we leave to #3091/#3094 and which we take, on #2413: https://github.com/R0Y00/Xbox2Windows/issues/2413#issuecomment-7228574536.
One question there for @R0Y00: Python gfx2hlsl.py or only the native C++ frontend for the remaining mesh slices?
Draft #3198 ranks first shader refusals by blocked draws and dispatches.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7228576712 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7228576712). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-27T21:35:10Z. --- Mesh (slot 57) coordination: I posted which pieces we leave to #3091/#3094 and which we take, on #2413: https://github.com/R0Y00/Xbox2Windows/issues/2413#issuecomment-7228574536. One question there for @R0Y00: Python `gfx2hlsl.py` or only the native C++ frontend for the remaining mesh slices? Draft #3198 ranks first shader refusals by blocked draws and dispatches. AI-assisted; commands listed were executed locally.
R0Y00 commented 2026-11-27 23:52:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T23:52:30Z.


The separate Series S diagnostic run in #3224 reported white output after the loading artwork, with 72 translated graphics pipelines and 490 missing. Its runtime was c45bf9ab plus diagnostic logging and optional solid fill. The offline compiler pass at 14d56502 grouped 13,403,432 untranslated compute dispatches, with resource-heap view selection, unbound descriptor-table addresses and numeric SGPRs accounting for 73.6%. This gives the translator and runtime owners a ranked workload. Visible 3D motion and on-screen response to controls remain unverified.

The GPU-written indirect Dispatch chain is now covered by the separate source-built fixture in #3222, which checked fenced argument records, compute results and offscreen pixels on WARP and RTX.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230473734 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7230473734). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-27T23:52:30Z. --- The separate Series S diagnostic run in #3224 reported white output after the loading artwork, with 72 translated graphics pipelines and 490 missing. Its runtime was `c45bf9ab` plus diagnostic logging and optional solid fill. The offline compiler pass at `14d56502` grouped 13,403,432 untranslated compute dispatches, with resource-heap view selection, unbound descriptor-table addresses and numeric SGPRs accounting for 73.6%. This gives the translator and runtime owners a ranked workload. Visible 3D motion and on-screen response to controls remain unverified. The GPU-written indirect Dispatch chain is now covered by the separate source-built fixture in #3222, which checked fenced argument records, compute results and offscreen pixels on WARP and RTX.
R0Y00 commented 2026-11-28 07:53:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-28T07:53:43Z.


Next 3D rendering checkpoint

The reviewed Mesh57 pixel-entry layout and its source-built W/XY fixture are in #3308, stacked on #3091. On the local integration both RTX and WARP returned the expected W value. The target color PSO and visible scene pixels remain open.

  • #3309 covers the remaining pixel mask composition and the exact color PSO link.
  • #3310 covers descriptor provenance and the GPU-written 12-byte argument record at the same resource and offset. Require matching post-write and pre-consume values with X greater than zero.

Accept the milestone when a real submitted Mesh draw changes a scene-color pixel, the compositor carries that value into a presented frame, and a fixed saved-profile run shows continuous scene motion and a repeatable on-screen response to input.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7236229566 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7236229566). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-28T07:53:43Z. --- ## Next 3D rendering checkpoint The reviewed Mesh57 pixel-entry layout and its source-built W/XY fixture are in #3308, stacked on #3091. On the local integration both RTX and WARP returned the expected W value. The target color PSO and visible scene pixels remain open. - #3309 covers the remaining pixel mask composition and the exact color PSO link. - #3310 covers descriptor provenance and the GPU-written 12-byte argument record at the same resource and offset. Require matching post-write and pre-consume values with X greater than zero. Accept the milestone when a real submitted Mesh draw changes a scene-color pixel, the compositor carries that value into a presented frame, and a fixed saved-profile run shows continuous scene motion and a repeatable on-screen response to input.
tedin7 commented 2026-11-28 10:55:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-28T10:55:17Z.


Update from the replay lane (#3206), in case it helps with the checkpoint above.

  • The recorder now captures the command-list array of every Execute-shaped queue call, not only the first queue slot. Before this, a title that submits its lists on another queue slot replayed every draw without ever submitting the lists, so every replayed frame came out empty.
  • With that fixed, a recorded title-screen window now replays to the same picture as the live run.
  • The player also gained an opt-in per-pass statistics switch (per written target: min, max and mean, plus zero and NaN counts) and forced-state probes (fixed pixel shader, full viewport, blend off). Together they point at the first pass where a frame goes dark.
  • These changes are on our fork for now and will be folded into #3206.

For criteria 1 and 2 of the milestone (a real Mesh draw changes a scene-color pixel, and the compositor carries that value into a presented frame), we can replay a recorded gameplay window against a build that includes #3308, #3309 and #3310. Per draw, we would report whether the scene-color target changed and whether that value reaches the presented frame. The runs are offline and need no live session. If that helps, tell us which branch or stack to build, and we will post the results here.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7238208189 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7238208189). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-28T10:55:17Z. --- Update from the replay lane (#3206), in case it helps with the checkpoint above. - The recorder now captures the command-list array of every Execute-shaped queue call, not only the first queue slot. Before this, a title that submits its lists on another queue slot replayed every draw without ever submitting the lists, so every replayed frame came out empty. - With that fixed, a recorded title-screen window now replays to the same picture as the live run. - The player also gained an opt-in per-pass statistics switch (per written target: min, max and mean, plus zero and NaN counts) and forced-state probes (fixed pixel shader, full viewport, blend off). Together they point at the first pass where a frame goes dark. - These changes are on our fork for now and will be folded into #3206. For criteria 1 and 2 of the milestone (a real Mesh draw changes a scene-color pixel, and the compositor carries that value into a presented frame), we can replay a recorded gameplay window against a build that includes #3308, #3309 and #3310. Per draw, we would report whether the scene-color target changed and whether that value reaches the presented frame. The runs are offline and need no live session. If that helps, tell us which branch or stack to build, and we will post the results here. AI-assisted; commands listed were executed locally.
lukaslw-lab commented 2026-11-29 02:31:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-29T02:31:22Z.


Reached the first in-game control hint at ~578 s and kept ~20 fps on it, on a local merge of main 212d4b5f +
#3429 + #3097 + #3377 + #3391 (Windows 10, i7-4790K, 16 GB, RTX 3080 Ti, scripted input).

this run 26 Nov, same machine
first control hint ~578 s ~900 s
fps on it 19–23 1.5–2
end timeout 1200 s, no device removal timeout 900 s
# open PRs
$env:X2W_D3D12_INLINE_DESCRIPTORS = '1'      # #3429
$env:X2W_D3D12_VIEW_TOKEN_GUARDED = '1'      # #3097
$env:X2W_D3D12_VIEW_CONTENT_TOKENS = '1'     # #3377
$env:X2W_D3D12_TABLE_LOCK = '1'              # #3391
# merged
$env:X2W_D3D12_RING_RELEASE_AT_SUBMIT = '1'  # #2949
$env:X2W_D3D12_TABLE_ALIAS = '1'             # #2977
$env:X2W_D3D12_ROOT_SRV_AT_DRAW = '1'        # #3028
$env:X2W_PROBE_PRECHECK = '0'                # #3313
$env:X2W_D3D12_BUDGET = '1'
$env:X2W_D3D12_RELEASE_RETIRED = '1'
$env:X2W_XMEM_LAZY_COMMIT = '1'
$env:X2W_XMEM_LAZY_STARTUP = '1'
$env:X2W_STORAGE_PATH = '<empty folder>'     # saves succeed
.\tools\startup\run.ps1 -Exe G:\<main executable> -DataDir G:\ -Seconds 1200 -MemoryGiB 26 -ContinueAsserts 100000 `
  -Render -FakeUser -GpuMirror -HostCpu -StartupBelow40 -SuspendOthers 0 -ShaderCache <warm cache> `
  -InputScript <press script>

Nothing is drawn behind the hint yet (91 graphics pipelines translated, 540 missing). The title reads stick input
there and keeps loading.

Host load on the hint screen (580–1000 s): title CPU ~5.2 of 8 logical cores, GPU 3D ~17 %, so still CPU-bound.
Process commit 18.6 GiB at 1000 s, 22.1 GiB peak; on this 16 GB host the working set stays ~3 GiB with ~8,000
pages/s paged in. How much of the frame time that paging costs is not measured.

AI-assisted (Claude); I ran it and watched the screen.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7249480161 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7249480161). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-29T02:31:22Z. --- Reached the first in-game control hint at ~578 s and kept ~20 fps on it, on a local merge of `main` `212d4b5f` + #3429 + #3097 + #3377 + #3391 (Windows 10, i7-4790K, 16 GB, RTX 3080 Ti, scripted input). | | this run | 26 Nov, same machine | |---|---|---| | first control hint | ~578 s | ~900 s | | fps on it | 19–23 | 1.5–2 | | end | timeout 1200 s, no device removal | timeout 900 s | ```powershell # open PRs $env:X2W_D3D12_INLINE_DESCRIPTORS = '1' # #3429 $env:X2W_D3D12_VIEW_TOKEN_GUARDED = '1' # #3097 $env:X2W_D3D12_VIEW_CONTENT_TOKENS = '1' # #3377 $env:X2W_D3D12_TABLE_LOCK = '1' # #3391 # merged $env:X2W_D3D12_RING_RELEASE_AT_SUBMIT = '1' # #2949 $env:X2W_D3D12_TABLE_ALIAS = '1' # #2977 $env:X2W_D3D12_ROOT_SRV_AT_DRAW = '1' # #3028 $env:X2W_PROBE_PRECHECK = '0' # #3313 $env:X2W_D3D12_BUDGET = '1' $env:X2W_D3D12_RELEASE_RETIRED = '1' $env:X2W_XMEM_LAZY_COMMIT = '1' $env:X2W_XMEM_LAZY_STARTUP = '1' $env:X2W_STORAGE_PATH = '<empty folder>' # saves succeed .\tools\startup\run.ps1 -Exe G:\<main executable> -DataDir G:\ -Seconds 1200 -MemoryGiB 26 -ContinueAsserts 100000 ` -Render -FakeUser -GpuMirror -HostCpu -StartupBelow40 -SuspendOthers 0 -ShaderCache <warm cache> ` -InputScript <press script> ``` Nothing is drawn behind the hint yet (91 graphics pipelines translated, 540 missing). The title reads stick input there and keeps loading. Host load on the hint screen (580–1000 s): title CPU ~5.2 of 8 logical cores, GPU 3D ~17 %, so still CPU-bound. Process commit 18.6 GiB at 1000 s, 22.1 GiB peak; on this 16 GB host the working set stays ~3 GiB with ~8,000 pages/s paged in. How much of the frame time that paging costs is not measured. AI-assisted (Claude); I ran it and watched the screen.
Leyukaka commented 2026-11-29 21:13:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T21:13:24Z.


Claiming launcher support for the native graphics interface catalog (stage: native graphics in start-up runs; refs #3477 item 7, #3495). On main ff9dcef0, compile_dxil --index-graphics-interfaces REVIEWED_DIRECTORY CACHE_DIRECTORY (tools/startup/compile_dxil.cpp:1547) is called only from tests, never from run.ps1, run.sh, run_preset.py or run_presets.json. Unless the cache is seeded by hand, each fixed pixel entry is refused with fixed graphics entry requires matching stage interfaces (src/direct_compute_cache.cpp:702).

Plan, one PR: an optional setting in run.ps1, run.sh and run_preset.py / run_presets.json that names a local reviewed container directory. The launcher runs the existing indexer into the run's shader cache before launch, after fresh-cache handling, and stops with a visible error on an invalid corpus. Off by default; no change to the runtime or the indexer. A section in docs/startup-runtime.md documents it.

Tests use synthetic reviewed pairs, as in tests/native_graphics_interface_library_check.py: cold install, install after fresh-cache rotation, invalid corpus fails. No application data is involved.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7262703336 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7262703336). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-29T21:13:24Z. --- Claiming launcher support for the native graphics interface catalog (stage: native graphics in start-up runs; refs #3477 item 7, #3495). On `main` `ff9dcef0`, `compile_dxil --index-graphics-interfaces REVIEWED_DIRECTORY CACHE_DIRECTORY` (`tools/startup/compile_dxil.cpp:1547`) is called only from tests, never from `run.ps1`, `run.sh`, `run_preset.py` or `run_presets.json`. Unless the cache is seeded by hand, each fixed pixel entry is refused with `fixed graphics entry requires matching stage interfaces` (`src/direct_compute_cache.cpp:702`). Plan, one PR: an optional setting in `run.ps1`, `run.sh` and `run_preset.py` / `run_presets.json` that names a local reviewed container directory. The launcher runs the existing indexer into the run's shader cache before launch, after fresh-cache handling, and stops with a visible error on an invalid corpus. Off by default; no change to the runtime or the indexer. A section in `docs/startup-runtime.md` documents it. Tests use synthetic reviewed pairs, as in `tests/native_graphics_interface_library_check.py`: cold install, install after fresh-cache rotation, invalid corpus fails. No application data is involved.
Leyukaka commented 2026-11-29 21:33:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T21:33:39Z.


Follow-up claim to the catalog launcher above (stage: native graphics in start-up runs), line numbers on main ff9dcef0. With the catalog installed, the fixed-entry layout check (src/direct_compute_cache.cpp:721-732) still refuses a slot-57 PSI1 pixel entry whose interpolant count is zero, above seven, or above the reviewed pixel attribute count, with captured interpolation count disagrees with pixel interface (:727-728), and any captured/reviewed input address pair other than 0x0002/0x0002 and 0x8002/0x0302, with unsupported fixed pixel entry layout (:730-732).

Claiming two parts, one PR each:

  • (a) zero interpolants, for exact constant and position-only pixel shaders: no PARAM consumer allowed, position link to the vertex stage kept.
  • (b) eight or more interpolants, up to the 32-register signature limit, with each consumed location checked against the captured count and the vertex stage export.

Not covered: other input address forms (centroid, sample, linear, front face, pull model), left for later. Tests are modeled on tests/native_graphics_interface_library_check.py and the source-built fixtures of tests/native_direct_container_check.py, with refusal controls (zero with a PARAM consumer, count below a consumed location, over the limit, missing vertex export).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7262972255 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7262972255). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-29T21:33:39Z. --- Follow-up claim to the catalog launcher above (stage: native graphics in start-up runs), line numbers on `main` `ff9dcef0`. With the catalog installed, the fixed-entry layout check (`src/direct_compute_cache.cpp:721-732`) still refuses a slot-57 `PSI1` pixel entry whose interpolant count is zero, above seven, or above the reviewed pixel attribute count, with `captured interpolation count disagrees with pixel interface` (`:727-728`), and any captured/reviewed input address pair other than `0x0002`/`0x0002` and `0x8002`/`0x0302`, with `unsupported fixed pixel entry layout` (`:730-732`). Claiming two parts, one PR each: - (a) zero interpolants, for exact constant and position-only pixel shaders: no PARAM consumer allowed, position link to the vertex stage kept. - (b) eight or more interpolants, up to the 32-register signature limit, with each consumed location checked against the captured count and the vertex stage export. Not covered: other input address forms (centroid, sample, linear, front face, pull model), left for later. Tests are modeled on `tests/native_graphics_interface_library_check.py` and the source-built fixtures of `tests/native_direct_container_check.py`, with refusal controls (zero with a PARAM consumer, count below a consumed location, over the limit, missing vertex export).
lambirou commented 2026-11-30 02:11:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T02:11:00Z.


Native refusal census on the cached requests (compile_dxil --refusals, cache out/startup/shader_cache):

family examined refused no refusal
graphics .a / .rtv 674 662 12
compute .c67 2,718 1,890 828
mesh57 .m57 476 476 0
total 3,868 3,028 840

All 476 mesh57 requests stop at mesh request has no entry layout. The cache contains no .mslayout and no .mesh57-state profile, so this is a layout gap before the mesh frontend reaches the group-index shape.

Weighting needs care. The long UI run gta6-long-20261130-1 has 7,995 compute dispatches, all translated, and its indirect counters are zero including dispatchmesh. The 2026-11-28 run reached refused graphics-pipeline ... dispatchmesh 1449772; I attach that aggregate once to the 476-request layout class, not per key. It cannot distinguish slot57 from slot86.

The Python watcher still exposes 422 of the 476 mesh requests: 314 s_cbranch_execz, 69 readfirstlane, 20 group-index exchange, 14 loop, 5 count exchange. These are not native first refusals until layouts exist. The cache also has 3,534 .fail files versus 3,028 current native refusals, so stale .fail entries must not be counted as current blockers.

Proposed next fixture: a source-built 128-thread wave64 triangle with mesh1 128 3 1 2 128 64 + guest_root, two root constants and one root SRV, plus pixel entry 0x8002/0x8002/64 split as the existing 12-byte .ps57in (PSI1, enable, address) and meshps1 32770 32770 64 in .pslayout. Compile the MS and PS as two explicit outputs; acceptance is that --refusals moves past no entry layout to a named next refusal or no refusal.

The census did not modify tracked files.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7266778243 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7266778243). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-30T02:11:00Z. --- Native refusal census on the cached requests (`compile_dxil --refusals`, cache `out/startup/shader_cache`): | family | examined | refused | no refusal | |---|---:|---:|---:| | graphics `.a` / `.rtv` | 674 | 662 | 12 | | compute `.c67` | 2,718 | 1,890 | 828 | | mesh57 `.m57` | 476 | 476 | 0 | | total | 3,868 | 3,028 | 840 | All 476 mesh57 requests stop at `mesh request has no entry layout`. The cache contains no `.mslayout` and no `.mesh57-state` profile, so this is a layout gap before the mesh frontend reaches the group-index shape. Weighting needs care. The long UI run `gta6-long-20261130-1` has 7,995 compute dispatches, all translated, and its indirect counters are zero including `dispatchmesh`. The 2026-11-28 run reached `refused graphics-pipeline ... dispatchmesh 1449772`; I attach that aggregate once to the 476-request layout class, not per key. It cannot distinguish slot57 from slot86. The Python watcher still exposes 422 of the 476 mesh requests: 314 `s_cbranch_execz`, 69 `readfirstlane`, 20 group-index exchange, 14 loop, 5 count exchange. These are not native first refusals until layouts exist. The cache also has 3,534 `.fail` files versus 3,028 current native refusals, so stale `.fail` entries must not be counted as current blockers. Proposed next fixture: a source-built 128-thread wave64 triangle with `mesh1 128 3 1 2 128 64` + `guest_root`, two root constants and one root SRV, plus pixel entry `0x8002/0x8002/64` split as the existing 12-byte `.ps57in` (`PSI1`, enable, address) and `meshps1 32770 32770 64` in `.pslayout`. Compile the MS and PS as two explicit outputs; acceptance is that `--refusals` moves past `no entry layout` to a named next refusal or no refusal. The census did not modify tracked files.
lambirou commented 2026-11-30 02:48:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T02:48:59Z.


The title now reaches the mesh phase. Run gta6-long2-20261130-1 (620 s, 12,835 frames at 21 fps, no crash) passes the legal pages, shows the opening credits, and records:

outcome count
dispatchmesh refused, graphics/no_translation 343,423
dispatchmesh refused, graphics/mesh_profile_missing 777,562
total blocked mesh dispatches 1,120,985
.m57 requests in the cache 478
.ms57.cso / .mesh57-state 0 / 0

So the presentation path is no longer the blocker for this phase: the title submits over a million mesh dispatches, but every request lacks a translated pair/profile. A second run with X2W_MESH57_CAPTURE_STATE=1 and a separate cache is capturing .s57 creation archives so the fixed-state profile can be derived.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7267342398 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7267342398). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-30T02:48:59Z. --- The title now reaches the mesh phase. Run `gta6-long2-20261130-1` (620 s, 12,835 frames at 21 fps, no crash) passes the legal pages, shows the opening credits, and records: | outcome | count | |---|---:| | `dispatchmesh` refused, `graphics/no_translation` | 343,423 | | `dispatchmesh` refused, `graphics/mesh_profile_missing` | 777,562 | | total blocked mesh dispatches | **1,120,985** | | `.m57` requests in the cache | 478 | | `.ms57.cso` / `.mesh57-state` | 0 / 0 | So the presentation path is no longer the blocker for this phase: the title submits over a million mesh dispatches, but every request lacks a translated pair/profile. A second run with `X2W_MESH57_CAPTURE_STATE=1` and a separate cache is capturing `.s57` creation archives so the fixed-state profile can be derived.
lambirou commented 2026-11-30 03:03:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T03:03:54Z.


Capture follow-up for the mesh phase:

  • gta6-meshstate-20261130-1 produced 452 .s57 archives for 449 .m57 requests, with 0 .mesh57-state and 0 .ms57.cso.
  • Last mesh counters before the stop: 874,171 dispatchmesh refusals (248,260 graphics/no_translation + 625,911 graphics/mesh_profile_missing), 4,864 frames at 7.6 fps.
  • The run then stopped at XboxBvhBuilder.dll+0x1cef4, second-chance access violation after 643.94 s. This is a separate BVH-builder crash, not a presentation failure.

Compiler progress on the captured requests: the count clamp in PR #3537 moves one real request past mesh count exchange exceeds declared range or lacks an unsigned bound. It now stops at graphics register undefined on an incoming path: 265. The next runtime slice is to decode the .s57 state A/B into a reviewed Mesh57Profile; the BVH crash needs its own investigation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7267554367 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7267554367). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-30T03:03:54Z. --- Capture follow-up for the mesh phase: - `gta6-meshstate-20261130-1` produced **452 `.s57`** archives for **449 `.m57`** requests, with **0 `.mesh57-state`** and **0 `.ms57.cso`**. - Last mesh counters before the stop: **874,171** `dispatchmesh` refusals (248,260 `graphics/no_translation` + 625,911 `graphics/mesh_profile_missing`), 4,864 frames at 7.6 fps. - The run then stopped at **`XboxBvhBuilder.dll+0x1cef4`**, second-chance access violation after 643.94 s. This is a separate BVH-builder crash, not a presentation failure. Compiler progress on the captured requests: the count clamp in PR #3537 moves one real request past `mesh count exchange exceeds declared range or lacks an unsigned bound`. It now stops at `graphics register undefined on an incoming path: 265`. The next runtime slice is to decode the `.s57` state A/B into a reviewed `Mesh57Profile`; the BVH crash needs its own investigation.
mumba17 commented 2026-11-30 13:56:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T13:56:02Z.


@lambirou, about the XboxBvhBuilder.dll+0x1cef4 stop in your 30 Nov mesh-state capture run (https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7267554367):

That instruction is the first 8-byte store in a loop that fills 32-byte records. The loop writes through the pointer the builder just received from command-list slot 148 (list_allocate_upload), and the builder never checks that pointer for null. If slot 148 returns null, the first store faults at a small address. So the access violation probably means slot 148 failed earlier in that same function.

Slot 148 logs every failure as x2w-render slot148 list=… stage=… hr=…, at most 12 times per failure class. Could you grep your stderr.txt for slot148 list=? The stage names the cause:

  • CreateCommittedResource or Map: an upload page could not be created, from video-memory exhaustion or device removal;
  • closed list or missing recording: a lifecycle gap on our side that we can fix.

The exception record's faulting address would also confirm it: null plus a multiple of 32.

I could not reproduce the stop locally. Main 077bff3a, RTX 3090 (driver 32.0.16.1664), Windows 11 build 26300, shared presets from a saved profile:

Run Result
default presets timeout at 900 s, 24 fps, 0 slot 148 failures
X2W_MESH57_CAPTURE_STATE=1 and a fresh cache timeout at 900 s, 28 fps, 0 slot 148 failures, no .s57 written

So it may depend on your saved scene or on memory pressure at 7.6 fps. I'll take the fix once the stage is known.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7280582665 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7280582665). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-30T13:56:02Z. --- @lambirou, about the `XboxBvhBuilder.dll+0x1cef4` stop in your 30 Nov mesh-state capture run (https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7267554367): That instruction is the first 8-byte store in a loop that fills 32-byte records. The loop writes through the pointer the builder just received from command-list **slot 148** (`list_allocate_upload`), and the builder never checks that pointer for null. If slot 148 returns null, the first store faults at a small address. So the access violation probably means slot 148 failed earlier in that same function. Slot 148 logs every failure as `x2w-render slot148 list=… stage=… hr=…`, at most 12 times per failure class. Could you grep your `stderr.txt` for `slot148 list=`? The `stage` names the cause: - `CreateCommittedResource` or `Map`: an upload page could not be created, from video-memory exhaustion or device removal; - `closed list` or `missing recording`: a lifecycle gap on our side that we can fix. The exception record's faulting address would also confirm it: null plus a multiple of 32. I could not reproduce the stop locally. Main `077bff3a`, RTX 3090 (driver 32.0.16.1664), Windows 11 build 26300, shared presets from a saved profile: | Run | Result | |---|---| | default presets | timeout at 900 s, 24 fps, 0 slot 148 failures | | `X2W_MESH57_CAPTURE_STATE=1` and a fresh cache | timeout at 900 s, 28 fps, 0 slot 148 failures, no `.s57` written | So it may depend on your saved scene or on memory pressure at 7.6 fps. I'll take the fix once the `stage` is known.
R0Y00 commented 2026-11-30 14:31:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-30T14:31:03Z.


Main executable checkpoint · 30 November 2026

Tested main at 35a3f6d6 with the asynchronous native Compute change. This was a manual run from a copy of the existing save profile, with the warm C++ shader cache, native-only shader translation, and Opus enabled. Full GPU command capture, the D3D12 debug layer, and per-call tracing were disabled for this run.

  • UI and input: The tester reported normal directory access and UI operation. The run reached the prologue detention sequence, accepted manual interaction there, and opened the in-session menu normally.
  • Audio: The tester reported that all audio heard during the run played normally, including in the prologue.
  • 3D: Scene geometry was still not visible. Visible character movement and 3D scene output remain unverified.
  • Runtime: The last heartbeat recorded 4,429 presented frames at 243.7 s. The harness recorded process exit code 0x00000001 at 246.98 s, without the prior second-chance watchdog trap in its exit summary. This run establishes progress to the sequence above. The exit reason and longer-run watchdog behavior are still open.

Refs #3451 for the watchdog investigation and #3541 for the first verified 3D scene draw.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7281498625 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7281498625). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-30T14:31:03Z. --- ## Main executable checkpoint · 30 November 2026 Tested main at `35a3f6d6` with the asynchronous native Compute change. This was a manual run from a copy of the existing save profile, with the warm C++ shader cache, native-only shader translation, and Opus enabled. Full GPU command capture, the D3D12 debug layer, and per-call tracing were disabled for this run. - **UI and input:** The tester reported normal directory access and UI operation. The run reached the prologue detention sequence, accepted manual interaction there, and opened the in-session menu normally. - **Audio:** The tester reported that all audio heard during the run played normally, including in the prologue. - **3D:** Scene geometry was still not visible. Visible character movement and 3D scene output remain unverified. - **Runtime:** The last heartbeat recorded 4,429 presented frames at 243.7 s. The harness recorded process exit code `0x00000001` at 246.98 s, without the prior second-chance watchdog trap in its exit summary. This run establishes progress to the sequence above. The exit reason and longer-run watchdog behavior are still open. Refs #3451 for the watchdog investigation and #3541 for the first verified 3D scene draw.
Jess-Doit commented 2026-11-30 21:26:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-30T21:26:02Z.


@mumba17, two runs on a 6 GB card for the slot 148 question. Neither reproduces the XboxBvhBuilder.dll+0x1cef4 stop.

Host: GTX 1060 6 GB, Windows 10 19045, main bee9c64d, 22 GiB cap, X2W_D3D12_BUDGET=1, offline, 1,200 s limit.

Run A (main) Run B (main + X2W_REFUSE_FIXED_MESH=1)
Result 1,200 s timeout, exit 0 1,200 s timeout, exit 0
Frames 23,051 33,691
Reached prologue (audio, HUD drawn, no 3D) prologue loading screen, never left it
slot148 list= failures 0 0
Upload ring 6,288 MiB in 263,193 reservations, 0 refusals 10,060 MiB in 421,971 reservations, 0 refusals
Local video memory at the end 9.66 GiB against a 5.15 GiB budget 5.76 GiB against a 5.24 GiB budget

So slot 148 kept working in run A, with local memory almost twice the budget for most of the prologue. Memory pressure alone does not seem to produce the null. That fits your guess that it depends on the saved scene. Run A used a fresh shader cache, so its first 9 minutes were mostly translation.

Run B is for #3541. Edited after a third run with thread dumps; the first version of this section was wrong. I had said declining slot 57 does not reach slot 86. It does: the slot 86 creation log is capped, which hid the calls.

With X2W_REFUSE_FIXED_MESH=1, the title builds its mesh pipelines through slot 86 instead, and the loading screen is throughput-bound, not stuck:

  • A third run with the same settings (X2W_DUMP_AT) published 7,056 slot 86 mesh requests in 1,200 s, covering 3,875 distinct MS/PS/root combinations. Run B published 13,613. They are new pipelines, not retries.
  • That is about 7 per second. try_cached_mesh86 holds one function-wide lock (mesh86_cache.inl:228) while publish_shader_request writes four request parts, each a probe, a temporary file and a rename, into a cache folder that by then held over 100,000 files.
  • In every dump taken on the loading screen (450, 700 and 950 s), 3 or 4 title worker threads were queued on that lock and one was inside a publish.
  • All 24 logged outcomes were root bindings outside supported profile, so these requests end in a placeholder on this path anyway.
  • Placed resources stop at the same count as in run A just before its prologue, and no dispatchmesh is issued. So the load waits for this pipeline creation to finish.

So the switch does not hang the title. It moves this title's whole mesh pipeline set onto slot 86, where request publication caps the rate. Publishing outside that lock, or only for requests the root check can accept, would show whether the load then completes.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7292397053 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7292397053). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-30T21:26:02Z. --- @mumba17, two runs on a 6 GB card for the slot 148 question. Neither reproduces the `XboxBvhBuilder.dll+0x1cef4` stop. Host: GTX 1060 6 GB, Windows 10 19045, main `bee9c64d`, 22 GiB cap, `X2W_D3D12_BUDGET=1`, offline, 1,200 s limit. | | Run A (main) | Run B (main + `X2W_REFUSE_FIXED_MESH=1`) | |---|---|---| | Result | 1,200 s timeout, exit 0 | 1,200 s timeout, exit 0 | | Frames | 23,051 | 33,691 | | Reached | prologue (audio, HUD drawn, no 3D) | prologue loading screen, never left it | | `slot148 list=` failures | 0 | 0 | | Upload ring | 6,288 MiB in 263,193 reservations, 0 refusals | 10,060 MiB in 421,971 reservations, 0 refusals | | Local video memory at the end | 9.66 GiB against a 5.15 GiB budget | 5.76 GiB against a 5.24 GiB budget | So slot 148 kept working in run A, with local memory almost twice the budget for most of the prologue. Memory pressure alone does not seem to produce the null. That fits your guess that it depends on the saved scene. Run A used a fresh shader cache, so its first 9 minutes were mostly translation. Run B is for #3541. **Edited after a third run with thread dumps; the first version of this section was wrong.** I had said declining slot 57 does not reach slot 86. It does: the slot 86 creation log is capped, which hid the calls. With `X2W_REFUSE_FIXED_MESH=1`, the title builds its mesh pipelines through slot 86 instead, and the loading screen is throughput-bound, not stuck: - A third run with the same settings (`X2W_DUMP_AT`) published 7,056 slot 86 mesh requests in 1,200 s, covering 3,875 distinct MS/PS/root combinations. Run B published 13,613. They are new pipelines, not retries. - That is about 7 per second. `try_cached_mesh86` holds one function-wide lock (`mesh86_cache.inl:228`) while `publish_shader_request` writes four request parts, each a probe, a temporary file and a rename, into a cache folder that by then held over 100,000 files. - In every dump taken on the loading screen (450, 700 and 950 s), 3 or 4 title worker threads were queued on that lock and one was inside a publish. - All 24 logged outcomes were `root bindings outside supported profile`, so these requests end in a placeholder on this path anyway. - Placed resources stop at the same count as in run A just before its prologue, and no `dispatchmesh` is issued. So the load waits for this pipeline creation to finish. So the switch does not hang the title. It moves this title's whole mesh pipeline set onto slot 86, where request publication caps the rate. Publishing outside that lock, or only for requests the root check can accept, would show whether the load then completes. AI-assisted.
Jess-Doit commented 2026-11-30 23:52:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-30T23:52:54Z.


A follow-up and a correction to my earlier runs, on the same host: GTX 1060 6 GB, Windows 10 19045.

Correction. Those runs were started with an older hand-written run.ps1 line instead of tools/startup/run_preset.py. That line left out -SuspendOthers 0, X2W_PROBE_PRECHECK=0, X2W_D3D12_RELEASE_RETIRED=1 and the other preset settings. It caused the choppy intro video and audio in those runs and roughly doubled the time to the loading screen. With run_preset.py --console x --gpu nvidia, the intro and menus are smooth and the loading screen came at 92 s instead of about 200 s. The slot 148 result is unchanged: still 0 failures.

Preset run (main bee9c64d with #3664; slot 57 accepted):

Reached prologue: audio, plain colour screen, no 3D
dispatchmesh refused 245,852 mesh_profile_missing, 40,844 no_translation
Local video memory 0.6 GiB at the start, 5.8 GiB by the loading screen, 9.6 GiB against a 5.2 GiB budget by 500 s
Of that, live textures 8.4 GiB in 2,991 textures; RELEASE_RETIRED had dropped 5,000 references
End device removed at 517 s (0x887a0005, first seen after a queue execute); no presents after 501.6 s

What ends these runs on this card. It is the title's own watchdog, not a stand-in fault:

  • After the device removal, the title's crash handler runs. It sets a global flag that parks any thread that reaches it, which includes the render thread.
  • The main thread waits for the render thread under a watchdog of about 40 s. When the wait times out, the watchdog writes to address 0 on purpose.
  • That fixed write is the access violation the earlier runs stopped on.
  • Four runs from today ended this way or were heading there. All four were at 9–10 GiB local on a 6 GB card. Two logged the device removal before the stop. The other two logged none, but presents stopped for about 40 s before the write.

So on a 6 GB card, the live texture total is what ends the run once the prologue loads. I'll put the budget numbers on #874.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7295632202 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7295632202). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-30T23:52:54Z. --- A follow-up and a correction to [my earlier runs](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7292397053), on the same host: GTX 1060 6 GB, Windows 10 19045. **Correction.** Those runs were started with an older hand-written `run.ps1` line instead of `tools/startup/run_preset.py`. That line left out `-SuspendOthers 0`, `X2W_PROBE_PRECHECK=0`, `X2W_D3D12_RELEASE_RETIRED=1` and the other preset settings. It caused the choppy intro video and audio in those runs and roughly doubled the time to the loading screen. With `run_preset.py --console x --gpu nvidia`, the intro and menus are smooth and the loading screen came at 92 s instead of about 200 s. The slot 148 result is unchanged: still 0 failures. **Preset run** (`main` `bee9c64d` with #3664; slot 57 accepted): | | | |---|---| | Reached | prologue: audio, plain colour screen, no 3D | | `dispatchmesh` refused | 245,852 `mesh_profile_missing`, 40,844 `no_translation` | | Local video memory | 0.6 GiB at the start, 5.8 GiB by the loading screen, 9.6 GiB against a 5.2 GiB budget by 500 s | | Of that, live textures | 8.4 GiB in 2,991 textures; `RELEASE_RETIRED` had dropped 5,000 references | | End | device removed at 517 s (`0x887a0005`, first seen after a queue execute); no presents after 501.6 s | **What ends these runs on this card.** It is the title's own watchdog, not a stand-in fault: - After the device removal, the title's crash handler runs. It sets a global flag that parks any thread that reaches it, which includes the render thread. - The main thread waits for the render thread under a watchdog of about 40 s. When the wait times out, the watchdog writes to address 0 on purpose. - That fixed write is the access violation the earlier runs stopped on. - Four runs from today ended this way or were heading there. All four were at 9–10 GiB local on a 6 GB card. Two logged the device removal before the stop. The other two logged none, but presents stopped for about 40 s before the write. So on a 6 GB card, the live texture total is what ends the run once the prologue loads. I'll put the budget numbers on #874. AI-assisted.
triggered02 commented 2026-12-02 13:16:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-12-02T13:16:23Z.


@R0Y00 — a newer run, on current main, with the three things you asked for.

Build. a70fa1db (= upstream 158ef794 merged, plus one local overlay patch for render-target upload that is not part of any PR). Cross-compiled with clang-cl 19 and an xwin SDK splat, run under Wine 11 + vkd3d-proton on a GTX 1660 SUPER. This is a translation-layer run, not Windows verification.

Last responsive page. With an unseeded first-run storage the setup flow completes brightness, "finish setup" and legal notices, and reaches the legal terms & policies page: two acknowledgement checkboxes unticked, Confirm greyed out. Ticking both recomputes Confirm to enabled and the cursor reaches it. The page then never advances, even though X2W_INPUT_TRACE shows the A press is delivered (buttons=0x4 at script 410.0–410.3 s, released 410.325), a 1.5 s hold behaves the same, and the title keeps presenting ~29 fps (12.1k frames in 412 s) rather than hanging.

Note this is a different path from the b9c9f624 menu-navigation record you cited: that one had seeded storage and went straight to the menu, so I cannot call the confirm stall a regression. It is simply a path that record never reached.

First observable error, sanitized. Once rendering begins, slot 70 memory-SRV refusals appear with these categories: unsupported_description (view dim 5 / 9 / 10 — cube, array and 3D-array shapes), buffer_unavailable, texture_unavailable, texture_no_resource. The dominant one by count is a compute dispatch refusal category, input is in a placed buffer that does not alias title memory (~11.6k dispatches, translated 0), which matches #2764. No device removal, no D3D12 debug-layer messages (layer off).

I do not reach #1758's BVH HRESULT on this build, because the terms confirm never fires. If it is useful I can re-run against the same storage seeding the b9c9f624 record used, so the two are directly comparable — say which seeding you want and I will match it.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7346614882 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7346614882). Originally posted by [triggered02](https://github.com/triggered02) on 2026-12-02T13:16:23Z. --- @R0Y00 — a newer run, on current `main`, with the three things you asked for. **Build.** `a70fa1db` (= upstream `158ef794` merged, plus one local overlay patch for render-target upload that is not part of any PR). Cross-compiled with clang-cl 19 and an xwin SDK splat, run under Wine 11 + vkd3d-proton on a GTX 1660 SUPER. This is a translation-layer run, not Windows verification. **Last responsive page.** With an unseeded first-run storage the setup flow completes brightness, "finish setup" and legal notices, and reaches the **legal terms & policies** page: two acknowledgement checkboxes unticked, `Confirm` greyed out. Ticking both recomputes `Confirm` to enabled and the cursor reaches it. The page then never advances, even though `X2W_INPUT_TRACE` shows the A press is delivered (`buttons=0x4` at script 410.0–410.3 s, released 410.325), a 1.5 s hold behaves the same, and the title keeps presenting ~29 fps (12.1k frames in 412 s) rather than hanging. Note this is a different path from the `b9c9f624` menu-navigation record you cited: that one had seeded storage and went straight to the menu, so I cannot call the confirm stall a regression. It is simply a path that record never reached. **First observable error, sanitized.** Once rendering begins, `slot 70` memory-SRV refusals appear with these categories: `unsupported_description` (view dim 5 / 9 / 10 — cube, array and 3D-array shapes), `buffer_unavailable`, `texture_unavailable`, `texture_no_resource`. The dominant one by count is a compute dispatch refusal category, `input is in a placed buffer that does not alias title memory` (~11.6k dispatches, translated 0), which matches #2764. No device removal, no D3D12 debug-layer messages (layer off). I do not reach #1758's BVH HRESULT on this build, because the terms confirm never fires. If it is useful I can re-run against the same storage seeding the `b9c9f624` record used, so the two are directly comparable — say which seeding you want and I will match it.
R0Y00 commented 2026-12-02 20:34:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T20:34:21Z.


Thanks, @triggered02. Yes, please use a local copy of the same seeded profile that let b9c9f624 reach the menu. If practical, run it alongside a fresh profile on one current main build under the same Wine/vkd3d setup. Use the same shader-cache starting state and keep the render-target overlay off for both runs if the build can start without it. Please report the exact commit, whether Confirm advances or the seeded profile reaches the menu, and the first sanitized refusal or exception in each run. A text summary is enough. Keep the profiles and raw logs local.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7357953799 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7357953799). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T20:34:21Z. --- Thanks, @triggered02. Yes, please use a local copy of the same seeded profile that let `b9c9f624` reach the menu. If practical, run it alongside a fresh profile on one current `main` build under the same Wine/vkd3d setup. Use the same shader-cache starting state and keep the render-target overlay off for both runs if the build can start without it. Please report the exact commit, whether Confirm advances or the seeded profile reaches the menu, and the first sanitized refusal or exception in each run. A text summary is enough. Keep the profiles and raw logs local.
R0Y00 commented 2026-12-02 23:09:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T23:09:58Z.


#3879 is now in main at c42b7ce3. The source-built indirect dispatch fixture verified that a single zero-flag DispatchL2 record reaches desktop Dispatch on WARP and RTX 4060 Laptop. A nonzero flag kept the placeholder and left the target unchanged after the fence. In the PR author's 300-second local executable run, those signatures moved from the placeholder bucket to the compute-pipeline refusal bucket, and no 3D output was observed. Please include both bucket counts on the next matched run so we can tell where those calls stop on the new build.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7361646562 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7361646562). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T23:09:58Z. --- [#3879](https://github.com/R0Y00/Xbox2Windows/pull/3879) is now in `main` at `c42b7ce3`. The source-built indirect dispatch fixture verified that a single zero-flag DispatchL2 record reaches desktop Dispatch on WARP and RTX 4060 Laptop. A nonzero flag kept the placeholder and left the target unchanged after the fence. In the PR author's 300-second local executable run, those signatures moved from the placeholder bucket to the compute-pipeline refusal bucket, and no 3D output was observed. Please include both bucket counts on the next matched run so we can tell where those calls stop on the new build.
R0Y00 commented 2026-12-03 08:07:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T08:07:12Z.


#3914 is in main at d2e6a4ed. It keeps coherent placed-buffer refresh available via X2W_COHERENT_PLACED_REFRESH=1 and defaults it off. In the author's matched 360-second application comparison, the run with refresh off did not hit the later-scene fence stall seen with refresh on. My independent check covered source-built fixtures only: 16/16 passed, and re-enabling refresh reproduced the indirect refusal-census pixel mismatch on WARP and RTX 4060 Laptop. The stall’s cause remains open. For the next matched application run, please record the switch value alongside the commit and first fence-wait or refusal.

I also rebuilt the exact merge commit d2e6a4ed with MSVC and reran the 13 affected indirect/compute regressions and three switch checks. All 16 passed, with hardware and WARP exercised and no capability skips.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7371846131 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7371846131). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-03T08:07:12Z. --- [#3914](https://github.com/R0Y00/Xbox2Windows/pull/3914) is in `main` at `d2e6a4ed`. It keeps coherent placed-buffer refresh available via `X2W_COHERENT_PLACED_REFRESH=1` and defaults it off. In the author's matched 360-second application comparison, the run with refresh off did not hit the later-scene fence stall seen with refresh on. My independent check covered source-built fixtures only: 16/16 passed, and re-enabling refresh reproduced the indirect refusal-census pixel mismatch on WARP and RTX 4060 Laptop. The stall’s cause remains open. For the next matched application run, please record the switch value alongside the commit and first fence-wait or refusal. I also rebuilt the exact merge commit `d2e6a4ed` with MSVC and reran the 13 affected indirect/compute regressions and three switch checks. All 16 passed, with hardware and WARP exercised and no capability skips.
Sign in to join this conversation.
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
R0Y00/Xbox2Windows#864
No description provided.