startup: add slot 148 acceptance client #2202

Merged
MasterDomino merged 7 commits from upstream-pr/2210 into main 2026-11-25 06:05:25 +00:00
MasterDomino commented 2026-11-25 05:17:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T05:17:17Z.


Refs #1758

What

startup_slot148_acceptance tests command-list slot 148, the upload allocation that the title's acceleration-structure builder requests. It is the acceptance R0Y00 defined on #1758, now required against the production slot that landed in #2216.

The client drives the actual d3d12_xs list and queue. It calls whichever slot 148 the build installs, supplies no allocator, and keeps no upload page of its own. The branch is rebased on main at a78de99a, which includes #2216 (940cd178). This PR changes nothing in src/.

There are two commits:

  • de20801a: the first client, rebased from 342554da.
  • feb40ff2: the review changes, listed below.

Review changes (second commit)

  1. Fixture resolver contract.
    • x2w_d3d12_upload_gpu_address(list, cpu, bytes) is a fixture-only adapter to the production address resolver, outside the guest ABI. It holds no page reference for the client.
    • It returns the desktop GPU address only for a complete, non-empty range inside one allocation of that list's open recording, and 0 otherwise.
    • The client now checks the 0 cases: a closed list, a range from before the list's last Reset, and a range of another list. Zero alignment stays refused.
  2. Missing slot versus refused allocation. The resolver export marks the slot as advertised.
    • No export and a null result: slot 148 not implemented (missing slot), exit 10.
    • Export present and a null for the valid 640/16 request: exit 21, including on the first call.
    • Both are failures. SKIP_REGULAR_EXPRESSION is removed, so only a missing physical adapter skips (77). There is no skip left to drop in a follow-up.
  3. GPU read on the submitted lists. Each list records its own read of its allocation through the guest consumer #2216 added, so no recording adapter is needed.
    • Binding: list slots 25 and 33 bind a guest compute pipeline and root signature, then slot 43 binds the upload pointer as a root SRV.
    • Sentinel: a sentinel buffer is bound before slot 43, so a refused binding reads the sentinel instead of faulting.
    • Recording: the UAV, the Dispatch and the copy to readback are recorded on the list's desktop list, reached the way startup_indirect_dispatch reaches it.
    • Order: each range is filled with a stale pattern before its read is recorded and with its payload after, so only a read at execution sees the payload. The in-list readback must still be zero while the gate holds the queue.
    • Observer: the read from a separate queue stays as its own check.
  4. Non-uniform payloads.
    • Byte i of payload s is (i * 29 + 0x5b) ^ s. A and B use the #2068 values 0xA1 and 0xB2 as seeds; the stale fill uses 0x5C and the sentinel 0xE7.
    • At startup the client checks that any two payloads differ at every byte, and that each differs from itself shifted by 4 or 16 bytes.
    • The #2068 overwrite control is kept.
  5. New wrong-list and stale-generation controls (foreign).
    • List 2 calls slot 43 with list 1's A: it must read the sentinel, while its own B reads B.
    • After list 1's Reset, slot 43 with A on list 1 must read the sentinel, while a new allocation reads correctly.
    • The resolver must return 0 for both ranges.

Contract and its sources

Part Status Source
Slot 148 is called on a command list with rdx = 0x280 and r8 = 0x10, and returns a pointer in rax; null is a refusal observed #1758 traces on three adapters; on null the builder throws Failed to allocate upload buffer
The caller writes the bytes through that pointer on the CPU observed #870 stand-in; #2216 returns CPU-writable upload memory
An invalid request or a closed list returns null; zero alignment is refused defined #2216, and R0Y00 on #2210
The pointer serves as the title's GPU address, and list slot 43 resolves it within the current recording defined, and checked here #2216 (slots 43 and 44)
The pages stay alive until every recorded reference and tracked submission has retired defined, and checked here #2216
The fixture resolver resolves only a complete, non-empty range of the supplied list's open recording defined, and checked here #2216, and R0Y00 on #2210
The builder's own consumer, and the command-buffer interaction unknown still a separate hypothesis on #1758

Steps

Each step uses new lists on the real console device and queue:

  • traced: a writable CPU range, a 16-byte-aligned GPU address, and the last byte at gpu + 0x27f.
  • fresh:
    1. A: stale fill, in-list read recorded, payload A, Close. Then the allocation must be refused and A must no longer resolve.
    2. Queue Wait on gate H, submit, Signal D = 1.
    3. Reset on allocator b. A must no longer resolve.
    4. B: the same order as A, then Close, submit, Signal D = 2.
    5. While both are held, the in-list readback must be zero. The observer reads both resolved ranges, and D must stay 0.
    6. Open H; D must reach 2. The in-list and observer reads must match A and B byte for byte.
  • allocator: as fresh, but allocator a is Reset and the list is Reset on a while A is held. B must not overlap A, and A must still read A.
  • overwrite: the #2068 control. B is also written into A's live range before the gate opens, so both reads of A must show B.
  • reuse: forced early reuse. A list is Closed without being submitted, then Reset on the same idle allocator. If B overlaps A's GPU range, A's read must show B. #2216 does not reuse that range, so this step reports not exercised.
  • foreign: the wrong-list and stale-generation controls above.
  • arguments: zero size, zero alignment, alignment 24 and an overflowing size are refused. (64, 256) gives a CPU pointer and GPU address that are both 256-byte aligned.
  • Device state: the device must not be removed, and with the debug layer it must hold no errors.

Exit codes:

Exit Meaning
0 pass
77 no physical adapter
10 missing slot
11 slot 148 returns memory but its module has no resolver
12 traced shape
13 not refused after Close
14 arguments
15 observer payload
16 overwrite control
17 reuse control
18 ordering or timeout
19 device state
20 A's range handed to B while A is held
21 advertised slot refused the valid request
22 in-list read ran before its submission was released
23 in-list payload
24 resolver accepted a foreign or stale range
25 slot 43 bound a foreign or stale range

Registration: four tests, startup_slot148_acceptance_{warp,hardware} and startup_slot148_acceptance_nodebug_{warp,hardware}. The environment is X2W_D3D12_PERMISSIVE=1;X2W_D3D12_LIST_NOOP=1;X2W_D3D12_RENDER=1 with X2W_D3D12_DEBUG=1 or 0, and the only skip property is SKIP_RETURN_CODE 77.

Results

Commit feb40ff2 on main at a78de99a, Release and Dev presets.

startup_slot148_acceptance_*: 4 of 4 pass on WARP and the RX 9070 XT, with the debug layer on and off. In every run the device is not removed, there are 0 debug-layer errors, and reuse: not exercised.

Related tests: ctest --preset release --no-tests=error -R '^startup_(slot148_acceptance|upload_arena|upload_lifetime|list_resubmit)' -V gives 16 of 16 passed, 0 skipped:

  • startup_slot148_acceptance_* (4),
  • startup_list_resubmit_* (8),
  • startup_upload_arena_* (2),
  • startup_upload_lifetime_* (2).

The Dev preset gives the same 4 of 4 for the new tests.

Mutants of the real #2216 slots (local harness, not in this PR). The harness builds the client source unchanged. It wraps the real slot 148, slot 43, Reset and resolver of the main build, applying one mutation at a time. Every row gave the same exit on WARP and the RX 9070 XT, with the debug layer on and off (36 runs):

Mutation Exit First report
none (real main) 0 slot 148 acceptance passed
missing slot: null result, module without the resolver 10 slot 148 not implemented (missing slot)
advertised slot returns null 21 the advertised slot 148 refused the valid request (0x280, 0x10), first call
allocation after Close not refused 13 allocation after a successful Close returned non-null
resolver GPU address + 4 12 gpu % 16 = 4
resolver GPU address + 16 15 observer B: byte 0 is 0x99 (expected 0xe9)
slot 43 address + 4 23 in-list B: byte 0 is 0xbc (expected 0xe9); #2216 refuses the misaligned binding, so the read shows the sentinel
slot 43 address + 16 23 in-list B: byte 0 is 0x99 (expected 0xe9)
slot 43 resolves another list's range (read on the wrong list) 25 foreign: list 2 reading list 1's A: byte 0 is 0xfa (expected 0xbc)

Under the earlier uniform payload, a +16 GPU address was caught only through a neighbouring allocation. Now it fails at byte 0.

Commands

$env:Path = "C:\Program Files (x86)\Microsoft Visual Studio\Installer;$env:Path"
. .\tools\dev.ps1
cmake --preset release
cmake --build --preset release --target startup_slot148_acceptance startup_upload_arena startup_upload_lifetime startup_list_resubmit
ctest --preset release --no-tests=error -R '^startup_slot148_acceptance_' -V
ctest --preset release --no-tests=error -R '^startup_(slot148_acceptance|upload_arena|upload_lifetime|list_resubmit)' -V
python -B tests/docs_links_check.py
python -B tests/bidi_controls_check.py
git diff a78de99a HEAD --check

The link, bidi and whitespace checks passed.

Environment

  • Windows 11 build 26300, MSVC 19.44.35221.
  • WARP 10.0.26100.9818.
  • AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31044.16.
  • Debug layer: through X2W_D3D12_DEBUG=1 (the stand-in logs debug layer: 0x00000000 enabled), and off with X2W_D3D12_DEBUG=0.
  • No title run was made for this PR.

Skips

None. Exit 77 is reserved for a missing physical adapter.

Not covered

  • The early-reuse control is not exercised by #2216, which never hands out an unsubmitted range again. A reusing implementation is covered only by the earlier stand-in runs.
  • Exit 11 (memory without a resolver) and exit 17 (reuse-control failure) were not hit by any mutant.
  • A slot that reuses A's range while A is held (exit 20) was caught in the earlier stand-in runs, not against #2216.
  • The builder's own consumer, and the command-buffer interaction (a separate hypothesis on #1758).
  • Lifetime under an allocator Reset alone, without a list Reset.
  • Slot 44 (the graphics root SRV path that #2216 also resolves) is not exercised; the in-list read uses slot 43.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6597755472 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2210). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T05:17:17Z. --- Refs #1758 ## What `startup_slot148_acceptance` tests command-list slot 148, the upload allocation that the title's acceleration-structure builder requests. It is the acceptance R0Y00 defined on #1758, now required against the production slot that landed in #2216. The client drives the actual d3d12_xs list and queue. It calls whichever slot 148 the build installs, supplies no allocator, and keeps no upload page of its own. The branch is rebased on `main` at `a78de99a`, which includes #2216 (`940cd178`). This PR changes nothing in `src/`. There are two commits: - `de20801a`: the first client, rebased from `342554da`. - `feb40ff2`: the review changes, listed below. ## Review changes (second commit) 1. **Fixture resolver contract.** - `x2w_d3d12_upload_gpu_address(list, cpu, bytes)` is a fixture-only adapter to the production address resolver, outside the guest ABI. It holds no page reference for the client. - It returns the desktop GPU address only for a complete, non-empty range inside one allocation of that list's open recording, and 0 otherwise. - The client now checks the 0 cases: a closed list, a range from before the list's last Reset, and a range of another list. Zero alignment stays refused. 2. **Missing slot versus refused allocation.** The resolver export marks the slot as advertised. - No export and a null result: `slot 148 not implemented (missing slot)`, exit 10. - Export present and a null for the valid 640/16 request: exit 21, including on the first call. - Both are failures. `SKIP_REGULAR_EXPRESSION` is removed, so only a missing physical adapter skips (77). There is no skip left to drop in a follow-up. 3. **GPU read on the submitted lists.** Each list records its own read of its allocation through the guest consumer #2216 added, so no recording adapter is needed. - **Binding:** list slots 25 and 33 bind a guest compute pipeline and root signature, then slot 43 binds the upload pointer as a root SRV. - **Sentinel:** a sentinel buffer is bound before slot 43, so a refused binding reads the sentinel instead of faulting. - **Recording:** the UAV, the Dispatch and the copy to readback are recorded on the list's desktop list, reached the way `startup_indirect_dispatch` reaches it. - **Order:** each range is filled with a stale pattern before its read is recorded and with its payload after, so only a read at execution sees the payload. The in-list readback must still be zero while the gate holds the queue. - **Observer:** the read from a separate queue stays as its own check. 4. **Non-uniform payloads.** - Byte i of payload s is `(i * 29 + 0x5b) ^ s`. A and B use the #2068 values 0xA1 and 0xB2 as seeds; the stale fill uses 0x5C and the sentinel 0xE7. - At startup the client checks that any two payloads differ at every byte, and that each differs from itself shifted by 4 or 16 bytes. - The #2068 overwrite control is kept. 5. **New wrong-list and stale-generation controls (`foreign`).** - List 2 calls slot 43 with list 1's A: it must read the sentinel, while its own B reads B. - After list 1's Reset, slot 43 with A on list 1 must read the sentinel, while a new allocation reads correctly. - The resolver must return 0 for both ranges. ## Contract and its sources | Part | Status | Source | |---|---|---| | Slot 148 is called on a command list with `rdx = 0x280` and `r8 = 0x10`, and returns a pointer in `rax`; null is a refusal | observed | #1758 traces on three adapters; on null the builder throws `Failed to allocate upload buffer` | | The caller writes the bytes through that pointer on the CPU | observed | #870 stand-in; #2216 returns CPU-writable upload memory | | An invalid request or a closed list returns null; zero alignment is refused | defined | #2216, and R0Y00 on #2210 | | The pointer serves as the title's GPU address, and list slot 43 resolves it within the current recording | defined, and checked here | #2216 (slots 43 and 44) | | The pages stay alive until every recorded reference and tracked submission has retired | defined, and checked here | #2216 | | The fixture resolver resolves only a complete, non-empty range of the supplied list's open recording | defined, and checked here | #2216, and R0Y00 on #2210 | | The builder's own consumer, and the command-buffer interaction | unknown | still a separate hypothesis on #1758 | ## Steps Each step uses new lists on the real console device and queue: - **`traced`:** a writable CPU range, a 16-byte-aligned GPU address, and the last byte at `gpu + 0x27f`. - **`fresh`:** 1. A: stale fill, in-list read recorded, payload A, Close. Then the allocation must be refused and A must no longer resolve. 2. Queue Wait on gate H, submit, Signal D = 1. 3. Reset on allocator `b`. A must no longer resolve. 4. B: the same order as A, then Close, submit, Signal D = 2. 5. While both are held, the in-list readback must be zero. The observer reads both resolved ranges, and D must stay 0. 6. Open H; D must reach 2. The in-list and observer reads must match A and B byte for byte. - **`allocator`:** as `fresh`, but allocator `a` is Reset and the list is Reset on `a` while A is held. B must not overlap A, and A must still read A. - **`overwrite`:** the #2068 control. B is also written into A's live range before the gate opens, so both reads of A must show B. - **`reuse`:** forced early reuse. A list is Closed without being submitted, then Reset on the same idle allocator. If B overlaps A's GPU range, A's read must show B. #2216 does not reuse that range, so this step reports `not exercised`. - **`foreign`:** the wrong-list and stale-generation controls above. - **`arguments`:** zero size, zero alignment, alignment 24 and an overflowing size are refused. `(64, 256)` gives a CPU pointer and GPU address that are both 256-byte aligned. - **Device state:** the device must not be removed, and with the debug layer it must hold no errors. Exit codes: | Exit | Meaning | |---|---| | 0 | pass | | 77 | no physical adapter | | 10 | missing slot | | 11 | slot 148 returns memory but its module has no resolver | | 12 | traced shape | | 13 | not refused after Close | | 14 | arguments | | 15 | observer payload | | 16 | overwrite control | | 17 | reuse control | | 18 | ordering or timeout | | 19 | device state | | 20 | A's range handed to B while A is held | | 21 | advertised slot refused the valid request | | 22 | in-list read ran before its submission was released | | 23 | in-list payload | | 24 | resolver accepted a foreign or stale range | | 25 | slot 43 bound a foreign or stale range | **Registration:** four tests, `startup_slot148_acceptance_{warp,hardware}` and `startup_slot148_acceptance_nodebug_{warp,hardware}`. The environment is `X2W_D3D12_PERMISSIVE=1;X2W_D3D12_LIST_NOOP=1;X2W_D3D12_RENDER=1` with `X2W_D3D12_DEBUG=1` or `0`, and the only skip property is `SKIP_RETURN_CODE 77`. ## Results Commit `feb40ff2` on `main` at `a78de99a`, Release and Dev presets. **`startup_slot148_acceptance_*`:** 4 of 4 pass on WARP and the RX 9070 XT, with the debug layer on and off. In every run the device is not removed, there are 0 debug-layer errors, and `reuse: not exercised`. **Related tests:** `ctest --preset release --no-tests=error -R '^startup_(slot148_acceptance|upload_arena|upload_lifetime|list_resubmit)' -V` gives 16 of 16 passed, 0 skipped: - `startup_slot148_acceptance_*` (4), - `startup_list_resubmit_*` (8), - `startup_upload_arena_*` (2), - `startup_upload_lifetime_*` (2). The Dev preset gives the same 4 of 4 for the new tests. **Mutants of the real #2216 slots (local harness, not in this PR).** The harness builds the client source unchanged. It wraps the real slot 148, slot 43, Reset and resolver of the `main` build, applying one mutation at a time. Every row gave the same exit on WARP and the RX 9070 XT, with the debug layer on and off (36 runs): | Mutation | Exit | First report | |---|---|---| | none (real `main`) | 0 | `slot 148 acceptance passed` | | missing slot: null result, module without the resolver | 10 | `slot 148 not implemented (missing slot)` | | advertised slot returns null | 21 | `the advertised slot 148 refused the valid request (0x280, 0x10)`, first call | | allocation after Close not refused | 13 | allocation after a successful Close returned non-null | | resolver GPU address + 4 | 12 | `gpu % 16 = 4` | | resolver GPU address + 16 | 15 | `observer B: byte 0 is 0x99 (expected 0xe9)` | | slot 43 address + 4 | 23 | `in-list B: byte 0 is 0xbc (expected 0xe9)`; #2216 refuses the misaligned binding, so the read shows the sentinel | | slot 43 address + 16 | 23 | `in-list B: byte 0 is 0x99 (expected 0xe9)` | | slot 43 resolves another list's range (read on the wrong list) | 25 | `foreign: list 2 reading list 1's A: byte 0 is 0xfa (expected 0xbc)` | Under the earlier uniform payload, a +16 GPU address was caught only through a neighbouring allocation. Now it fails at byte 0. ## Commands ```powershell $env:Path = "C:\Program Files (x86)\Microsoft Visual Studio\Installer;$env:Path" . .\tools\dev.ps1 cmake --preset release cmake --build --preset release --target startup_slot148_acceptance startup_upload_arena startup_upload_lifetime startup_list_resubmit ctest --preset release --no-tests=error -R '^startup_slot148_acceptance_' -V ctest --preset release --no-tests=error -R '^startup_(slot148_acceptance|upload_arena|upload_lifetime|list_resubmit)' -V python -B tests/docs_links_check.py python -B tests/bidi_controls_check.py git diff a78de99a HEAD --check ``` The link, bidi and whitespace checks passed. ## Environment - Windows 11 build 26300, MSVC 19.44.35221. - WARP 10.0.26100.9818. - AMD Radeon RX 9070 XT (`1002:7550`), driver 32.0.31044.16. - Debug layer: through `X2W_D3D12_DEBUG=1` (the stand-in logs `debug layer: 0x00000000 enabled`), and off with `X2W_D3D12_DEBUG=0`. - No title run was made for this PR. ## Skips None. Exit 77 is reserved for a missing physical adapter. ## Not covered - The early-reuse control is not exercised by #2216, which never hands out an unsubmitted range again. A reusing implementation is covered only by the earlier stand-in runs. - Exit 11 (memory without a resolver) and exit 17 (reuse-control failure) were not hit by any mutant. - A slot that reuses A's range while A is held (exit 20) was caught in the earlier stand-in runs, not against #2216. - The builder's own consumer, and the command-buffer interaction (a separate hypothesis on #1758). - Lifetime under an allocator Reset alone, without a list Reset. - Slot 44 (the graphics root SRV path that #2216 also resolves) is not exercised; the in-list read uses slot 43. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
tedin7 commented 2026-11-25 06:01:28 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T06:01:09Z.

Review: COMMENTED


Review of head a1c3c173a33f57ca4959e99613b622546575ad59.

Scope: CMakeLists.txt (new startup_slot148_acceptance target, 4 CTest entries: warp/hardware x debug on/off), docs/startup-runtime.md, tests/startup_slot148_acceptance.cpp. Nothing in src/.

Findings: 0 P1, 0 P2.

  • Missing slot, refused allocation and missing adapter are distinct exit codes; only 77 (no adapter) skips. No SKIP_REGULAR_EXPRESSION.
  • Payloads are non-uniform (index-mixed), so a read shifted by 4 or 16 bytes differs at every byte. Stale fill before the read, payload after, so only an execution-time read sees the payload.
  • Wrong-list, stale-generation, closed-list and invalid-argument controls are covered, as the docs describe.
  • Sibling check: docs entry sits next to the startup_upload_lifetime entry; CMake block mirrors it (same TIMEOUT/SKIP_RETURN_CODE/ENVIRONMENT style). No other open PR covers slot 148 acceptance.

Commands executed locally:

  • python3 tests/docs_links_check.py: pass (18 files, 409 links)
  • python3 tests/bidi_controls_check.py: pass
  • git diff --check origin/main...HEAD: clean
  • Win2025 (x2w_pipe.py win2025 2210 --scope direct --targets startup_slot148_acceptance --regex '^startup_slot148_acceptance_'; the default scope exceeded the 8191-char command limit): Debug 4/4 passed, Release /O2 4/4 passed (warp, hardware, nodebug variants)
  • Mutation (test side, via --patch, Debug): the overwrite control no longer writes B into A's live range (kPayloadB -> kPayloadA at line 538). Result: 0/4 passed, all four tests failed. Reverted.
  • CI: Build and test on Windows SUCCESS.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6052590230 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2210#pullrequestreview-6052590230). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T06:01:09Z. **Review:** COMMENTED --- Review of head `a1c3c173a33f57ca4959e99613b622546575ad59`. Scope: CMakeLists.txt (new `startup_slot148_acceptance` target, 4 CTest entries: warp/hardware x debug on/off), docs/startup-runtime.md, tests/startup_slot148_acceptance.cpp. Nothing in `src/`. Findings: 0 P1, 0 P2. - Missing slot, refused allocation and missing adapter are distinct exit codes; only 77 (no adapter) skips. No SKIP_REGULAR_EXPRESSION. - Payloads are non-uniform (index-mixed), so a read shifted by 4 or 16 bytes differs at every byte. Stale fill before the read, payload after, so only an execution-time read sees the payload. - Wrong-list, stale-generation, closed-list and invalid-argument controls are covered, as the docs describe. - Sibling check: docs entry sits next to the `startup_upload_lifetime` entry; CMake block mirrors it (same TIMEOUT/SKIP_RETURN_CODE/ENVIRONMENT style). No other open PR covers slot 148 acceptance. Commands executed locally: - `python3 tests/docs_links_check.py`: pass (18 files, 409 links) - `python3 tests/bidi_controls_check.py`: pass - `git diff --check origin/main...HEAD`: clean - Win2025 (`x2w_pipe.py win2025 2210 --scope direct --targets startup_slot148_acceptance --regex '^startup_slot148_acceptance_'`; the default scope exceeded the 8191-char command limit): Debug 4/4 passed, Release /O2 4/4 passed (warp, hardware, nodebug variants) - Mutation (test side, via `--patch`, Debug): the overwrite control no longer writes B into A's live range (`kPayloadB` -> `kPayloadA` at line 538). Result: 0/4 passed, all four tests failed. Reverted. - CI: `Build and test on Windows` SUCCESS. AI-assisted; commands listed were executed locally.
R0Y00 commented 2026-11-25 06:01:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T05:31:49Z.


The range query is fine as a fixture-only adapter to the production address resolver. Reuse the production range and generation checks. It should return the GPU address only for a valid live range, hold no page reference for the client, and stay outside the guest ABI. Keep zero alignment refused in this profile, as in #1774.

Please separate a missing slot from a valid 640-byte allocation returning null. Once production advertises the slot, the latter must fail, including on the first call. The production PR should make the acceptance required and remove the broad skip-by-message for that configuration.

The separate observer queue is a good lifetime and mapping probe. It does not yet check a GPU read recorded on the submitted list. For production acceptance, add a source-built copy or store that consumes A and B from the corresponding submissions, then fence and compare them. A fixture-only adapter can record that read if there is no suitable guest consumer yet. Keep the current observer as a separate check and use nonuniform payloads to catch partial-offset errors.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7153863477 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2210#issuecomment-7153863477). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T05:31:49Z. --- The range query is fine as a fixture-only adapter to the production address resolver. Reuse the production range and generation checks. It should return the GPU address only for a valid live range, hold no page reference for the client, and stay outside the guest ABI. Keep zero alignment refused in this profile, as in #1774. Please separate a missing slot from a valid 640-byte allocation returning null. Once production advertises the slot, the latter must fail, including on the first call. The production PR should make the acceptance required and remove the broad skip-by-message for that configuration. The separate observer queue is a good lifetime and mapping probe. It does not yet check a GPU read recorded on the submitted list. For production acceptance, add a source-built copy or store that consumes A and B from the corresponding submissions, then fence and compare them. A fixture-only adapter can record that read if there is no suitable guest consumer yet. Keep the current observer as a separate check and use nonuniform payloads to catch partial-offset errors.
R0Y00 commented 2026-11-25 06:01:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T05:35:57Z.


Thanks for writing the independent client. I built 342554da unchanged and ran it against production candidate #2216, commit 1239c983. WARP and RTX 4060 Laptop both passed with the D3D12 debug layer on and off (4/4, no skips). Both A and B survived the gated submission and reset. There were zero reported debug-layer errors and no device removal. The existing arena, lifetime and list-resubmission group passed 12/12.

For the three open questions: the range-checked GPU-address export is accepted for fixtures. It resolves only a complete nonempty range within an allocation of the supplied list's open recording. Zero alignment is refused. Once #2216 is in the base branch, a missing implementation on a supported backend should fail this test; please drop the not-implemented skip then. A missing physical adapter can still report a capability skip.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7153942979 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2210#issuecomment-7153942979). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T05:35:57Z. --- Thanks for writing the independent client. I built 342554da unchanged and ran it against production candidate #2216, commit 1239c983. WARP and RTX 4060 Laptop both passed with the D3D12 debug layer on and off (4/4, no skips). Both A and B survived the gated submission and reset. There were zero reported debug-layer errors and no device removal. The existing arena, lifetime and list-resubmission group passed 12/12. For the three open questions: the range-checked GPU-address export is accepted for fixtures. It resolves only a complete nonempty range within an allocation of the supplied list's open recording. Zero alignment is refused. Once #2216 is in the base branch, a missing implementation on a supported backend should fail this test; please drop the not-implemented skip then. A missing physical adapter can still report a capability skip.
MasterDomino commented 2026-11-25 06:01:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T05:48:06Z.


Updated for your review and now on top of #2216 (feb40ff2 on a78de99a). The acceptance is required: SKIP_REGULAR_EXPRESSION is removed, so only a missing physical adapter skips (77).

  • Missing versus refused: #2216's x2w_d3d12_upload_gpu_address export marks the slot as advertised.
    • No export: slot 148 not implemented (missing slot), exit 10.
    • Export present and a null for the valid 640/16 request: a failure from the first call on, exit 21.
    • The client also checks that the resolver returns 0 for a closed list, a range from before the list's last Reset, and another list's range.
  • GPU read on the submitted lists: #2216's compute root SRV (list slot 43) is the guest consumer. Each list binds its own upload pointer through slot 43 and dispatches a copy into readback, which is fenced and compared.
    • The range holds a stale pattern while the read is recorded, and the payload only after. The readback must stay zero while the gate holds the queue.
    • A sentinel bound before slot 43 makes a refused binding read the sentinel.
    • The observer queue remains a separate check.
  • Non-uniform payloads: (i*29 + 0x5b) ^ seed, seeded with #2068's 0xA1/0xB2. The client checks at startup that a shift by 4 or 16 bytes changes every byte. The overwrite control is kept.
  • New foreign step: slot 43 with another list's range, and with a pre-Reset range on the same list, must read the sentinel.

Real main, Windows 11 build 26300, WARP and RX 9070 XT, debug layer on and off:

ctest --preset release --no-tests=error -R '^startup_(slot148_acceptance|upload_arena|upload_lifetime|list_resubmit)' -V

That gave 16/16, 0 skipped, no device removal and 0 debug-layer errors.

I also wrapped the real slot with one mutation at a time. That harness is local and not committed. Each mutant failed with its own exit code on both adapters: missing slot, null from the valid request, no refusal after Close, resolver address +4 or +16, slot 43 address +4 or +16, and resolving another list's range.

Two things for you to decide:

  1. Where the read is recorded: the in-list read records its Dispatch and readback copy on the desktop list behind the console list, as startup_indirect_dispatch does. Only the upload binding goes through guest slots 25, 33 and 43. Would you rather the Dispatch go through ExecuteIndirect (slot 61) as well?
  2. The early-reuse step: #2216 never hands an unsubmitted range out again, so that step reports "not exercised". Should it stay informational?

The startup rerun on the same input is going now; I'll report it on #1758.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154151379 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2210#issuecomment-7154151379). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T05:48:06Z. --- Updated for your review and now on top of #2216 (`feb40ff2` on `a78de99a`). The acceptance is required: `SKIP_REGULAR_EXPRESSION` is removed, so only a missing physical adapter skips (77). - **Missing versus refused:** #2216's `x2w_d3d12_upload_gpu_address` export marks the slot as advertised. - No export: `slot 148 not implemented (missing slot)`, exit 10. - Export present and a null for the valid 640/16 request: a failure from the first call on, exit 21. - The client also checks that the resolver returns 0 for a closed list, a range from before the list's last Reset, and another list's range. - **GPU read on the submitted lists:** #2216's compute root SRV (list slot 43) is the guest consumer. Each list binds its own upload pointer through slot 43 and dispatches a copy into readback, which is fenced and compared. - The range holds a stale pattern while the read is recorded, and the payload only after. The readback must stay zero while the gate holds the queue. - A sentinel bound before slot 43 makes a refused binding read the sentinel. - The observer queue remains a separate check. - **Non-uniform payloads:** `(i*29 + 0x5b) ^ seed`, seeded with #2068's 0xA1/0xB2. The client checks at startup that a shift by 4 or 16 bytes changes every byte. The overwrite control is kept. - **New `foreign` step:** slot 43 with another list's range, and with a pre-Reset range on the same list, must read the sentinel. Real `main`, Windows 11 build 26300, WARP and RX 9070 XT, debug layer on and off: ```powershell ctest --preset release --no-tests=error -R '^startup_(slot148_acceptance|upload_arena|upload_lifetime|list_resubmit)' -V ``` That gave 16/16, 0 skipped, no device removal and 0 debug-layer errors. I also wrapped the real slot with one mutation at a time. That harness is local and not committed. Each mutant failed with its own exit code on both adapters: missing slot, null from the valid request, no refusal after Close, resolver address +4 or +16, slot 43 address +4 or +16, and resolving another list's range. Two things for you to decide: 1. **Where the read is recorded:** the in-list read records its Dispatch and readback copy on the desktop list behind the console list, as `startup_indirect_dispatch` does. Only the upload binding goes through guest slots 25, 33 and 43. Would you rather the Dispatch go through ExecuteIndirect (slot 61) as well? 2. **The early-reuse step:** #2216 never hands an unsubmitted range out again, so that step reports "not exercised". Should it stay informational? The startup rerun on the same input is going now; I'll report it on #1758. AI-assisted.
MasterDomino commented 2026-11-25 06:01:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T05:49:03Z.


Note: you had pushed 6aa7fe7b to this branch while I was reworking it, so I didn't force-push over it. The branch head is now a1c3c173, a merge that keeps 6aa7fe7b in the history. Its tree is exactly the reworked feb40ff2 described above, which supersedes 6aa7fe7b's test, CMake and docs edits while keeping its requirement: no skip on a supported adapter, and a null from the valid request fails. The only difference is that a missing slot is reported separately, as exit 10.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154166449 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2210#issuecomment-7154166449). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T05:49:03Z. --- Note: you had pushed `6aa7fe7b` to this branch while I was reworking it, so I didn't force-push over it. The branch head is now `a1c3c173`, a merge that keeps `6aa7fe7b` in the history. Its tree is exactly the reworked `feb40ff2` described above, which supersedes `6aa7fe7b`'s test, CMake and docs edits while keeping its requirement: no skip on a supported adapter, and a null from the valid request fails. The only difference is that a missing slot is reported separately, as exit 10. AI-assisted.
R0Y00 commented 2026-11-25 06:01:40 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T06:00:57Z.


Verified a1c3c173 independently, 4/4 on WARP and RTX 4060 Laptop with the debug layer enabled and disabled. Using the desktop list for Dispatch is fine here because slot 43 binds the allocation and the same submitted list consumes it. Slot 61 can stay separate. Keep the early-reuse observation informational and keep the required fenced A/B, wrong-list and stale-generation checks.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154356274 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2210#issuecomment-7154356274). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T06:00:57Z. --- Verified a1c3c173 independently, 4/4 on WARP and RTX 4060 Laptop with the debug layer enabled and disabled. Using the desktop list for Dispatch is fine here because slot 43 binds the allocation and the same submitted list consumes it. Slot 61 can stay separate. Keep the early-reuse observation informational and keep the required fenced A/B, wrong-list and stale-generation checks.
upstream-sync closed this pull request 2026-11-25 07:01:01 +00:00
legacy-code-archaeologist commented 2026-11-25 07:01:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-25T06:02:40Z.


Ran head a1c3c173 (build target startup_slot148_acceptance). All six runs pass. Windows 11 build 26100.

Test WARP 10.0.26100.8972 XBOX2WINDOWS_ADAPTER=Quadro XBOX2WINDOWS_ADAPTER=Intel
startup_slot148_acceptance_{warp,hardware} (debug layer requested) pass pass pass
startup_slot148_acceptance_nodebug_{warp,hardware} (debug layer off) pass pass pass

The executable does not print the adapter name, so I can't confirm from the log that the two hardware runs used different GPUs. A related startup test (startup_indirect_draw_indexed) ignores XBOX2WINDOWS_ADAPTER on this machine, so treat the two hardware columns as at least one hardware adapter, not necessarily two.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154383875 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2210#issuecomment-7154383875). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-25T06:02:40Z. --- Ran head `a1c3c173` (build target `startup_slot148_acceptance`). All six runs pass. Windows 11 build 26100. | Test | WARP 10.0.26100.8972 | `XBOX2WINDOWS_ADAPTER=Quadro` | `XBOX2WINDOWS_ADAPTER=Intel` | |---|---|---|---| | `startup_slot148_acceptance_{warp,hardware}` (debug layer requested) | pass | pass | pass | | `startup_slot148_acceptance_nodebug_{warp,hardware}` (debug layer off) | pass | pass | pass | The executable does not print the adapter name, so I can't confirm from the log that the two hardware runs used different GPUs. A related startup test (`startup_indirect_draw_indexed`) ignores `XBOX2WINDOWS_ADAPTER` on this machine, so treat the two hardware columns as at least one hardware adapter, not necessarily two. _AI-assisted._
Jess-Doit commented 2026-11-25 08:05:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T07:01:15Z.


Windows 10 result for this fixture, as requested on #870.

  • Build: main at b7707495, which includes this PR. Release, MSVC x64, clean worktree.
  • Host: Windows 10 build 19045, in-box D3D12 and WARP 10.0.19041, GTX 1060 6GB on driver 32.0.15.6094.
cmake --build --preset release --target startup_slot148_acceptance
ctest --preset release --no-tests=error -R "^startup_slot148_acceptance(_nodebug)?_(hardware|warp)$" -V
Test Result
startup_slot148_acceptance_warp (debug layer requested) pass
startup_slot148_acceptance_nodebug_warp (debug layer off) fail, 4 of 4 runs: slot 148 acceptance failed: exit 18 after about 10.2 s
startup_slot148_acceptance_hardware (GTX 1060, debug layer requested) pass
startup_slot148_acceptance_nodebug_hardware (GTX 1060, debug layer off) pass

In the failing runs:

  • The runtime is the Microsoft Basic Render Driver with debug_layer=off.
  • The last shim lines are a queue Wait on the gate fence (value 1), then ExecuteCommandLists and a Signal (value 1), then a second ExecuteCommandLists and a Signal (value 2).
  • Nothing more is logged until the 10 s kWaitMs deadline expires. Exit 18 is the ordering or timeout code.
  • In 2 of the 4 runs, ctest then reports SEGFAULT instead of Failed, so the process also faults on the way out after the timeout.

I have not narrowed it further. The same WARP passes with the debug layer requested, and both hardware variants pass.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7155401135 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2210#issuecomment-7155401135). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T07:01:15Z. --- Windows 10 result for this fixture, as requested on #870. - **Build:** `main` at `b7707495`, which includes this PR. Release, MSVC x64, clean worktree. - **Host:** Windows 10 build 19045, in-box D3D12 and WARP 10.0.19041, GTX 1060 6GB on driver 32.0.15.6094. ```powershell cmake --build --preset release --target startup_slot148_acceptance ctest --preset release --no-tests=error -R "^startup_slot148_acceptance(_nodebug)?_(hardware|warp)$" -V ``` | Test | Result | |---|---| | `startup_slot148_acceptance_warp` (debug layer requested) | pass | | `startup_slot148_acceptance_nodebug_warp` (debug layer off) | **fail, 4 of 4 runs**: `slot 148 acceptance failed: exit 18` after about 10.2 s | | `startup_slot148_acceptance_hardware` (GTX 1060, debug layer requested) | pass | | `startup_slot148_acceptance_nodebug_hardware` (GTX 1060, debug layer off) | pass | In the failing runs: - The runtime is the `Microsoft Basic Render Driver` with `debug_layer=off`. - The last shim lines are a queue Wait on the gate fence (value 1), then ExecuteCommandLists and a Signal (value 1), then a second ExecuteCommandLists and a Signal (value 2). - Nothing more is logged until the 10 s `kWaitMs` deadline expires. Exit 18 is the ordering or timeout code. - In 2 of the 4 runs, ctest then reports `SEGFAULT` instead of `Failed`, so the process also faults on the way out after the timeout. I have not narrowed it further. The same WARP passes with the debug layer requested, and both hardware variants pass.
MasterDomino commented 2026-11-25 08:05:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T07:01:24Z.


Seen Jess-Doit's result on #870: startup_slot148_acceptance_nodebug_warp fails 4 of 4 runs on Windows 10's in-box WARP (10.0.19041), timing out with exit 18. The debug-requested WARP variant and both GTX 1060 variants pass. I'll take the follow-up, since this is our client.

My working hypothesis, which I can't reproduce here (WARP 10.0.26100 passes): that WARP executes queues on a single ordered path. The client's held-phase reads run on a second queue while the first waits on the unsignalled CPU gate, so they can't complete before the gate opens, and the client times out. The segfault on exit in 2 of the 4 runs fits the client giving up with the gate still closed and work pending.

Planned fix, in a separate PR:

  • A preflight: check whether a second queue makes progress while another waits on an unsignalled fence. If it doesn't, the client prints queues serialized and skips only the held-phase checks. Everything else still runs and is required: the traced shape, refusal after Close, A/B after the gate opens, and the foreign and stale reads.
  • Bounded cleanup on every exit path: signal the gate and drain the queues.
  • A forced-serialized variant, so the skip path is exercised on hosts where the queues aren't serialized.

@Jess-Doit, once it's up, a rerun of ctest --preset release --no-tests=error -R "^startup_slot148_acceptance(_nodebug)?_warp$" -V on that host would confirm the hypothesis. The expected output is queues serialized with the remaining checks passing.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7155403588 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2210#issuecomment-7155403588). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T07:01:24Z. --- Seen Jess-Doit's result on #870: `startup_slot148_acceptance_nodebug_warp` fails 4 of 4 runs on Windows 10's in-box WARP (10.0.19041), timing out with exit 18. The debug-requested WARP variant and both GTX 1060 variants pass. I'll take the follow-up, since this is our client. My working hypothesis, which I can't reproduce here (WARP 10.0.26100 passes): that WARP executes queues on a single ordered path. The client's held-phase reads run on a second queue while the first waits on the unsignalled CPU gate, so they can't complete before the gate opens, and the client times out. The segfault on exit in 2 of the 4 runs fits the client giving up with the gate still closed and work pending. Planned fix, in a separate PR: - **A preflight:** check whether a second queue makes progress while another waits on an unsignalled fence. If it doesn't, the client prints `queues serialized` and skips only the held-phase checks. Everything else still runs and is required: the traced shape, refusal after Close, A/B after the gate opens, and the foreign and stale reads. - **Bounded cleanup on every exit path:** signal the gate and drain the queues. - **A forced-serialized variant,** so the skip path is exercised on hosts where the queues aren't serialized. @Jess-Doit, once it's up, a rerun of `ctest --preset release --no-tests=error -R "^startup_slot148_acceptance(_nodebug)?_warp$" -V` on that host would confirm the hypothesis. The expected output is `queues serialized` with the remaining checks passing. AI-assisted.
MasterDomino commented 2026-11-25 15:01:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T14:29:50Z.


The Windows 10 WARP follow-up is up as #2381. It adds a preflight for queues that don't progress while another waits on an unsignalled fence, skips only the held-phase observer reads there (and says so), and adds bounded cleanup on every exit path, plus a forced-serialized variant. The rerun request for that host is in the PR.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7165368526 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2210#issuecomment-7165368526). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T14:29:50Z. --- The Windows 10 WARP follow-up is up as #2381. It adds a preflight for queues that don't progress while another waits on an unsignalled fence, skips only the held-phase observer reads there (and says so), and adds bounded cleanup on every exit path, plus a forced-serialized variant. The rerun request for that host is in the PR. AI-assisted.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2202
No description provided.