gpu: establish the D3D12ConfigureVirtualMemoryX startup contract #867

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

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


Main startup status and the next milestone live in #870. This issue tracks GPU tasks, claims and review dependencies.

GPU tasks

Task Owner and status Deliverable Acceptance command Depends on
Slot 67 translated compute through indirect Dispatch (#2492) Fixture completed in #2771. Fenced pixel follow-up #3222 merged. The original-executable investigation continues in #870. Source-built GPU-written arguments, translated slot 67 output and offscreen pixels. Includes omitted-writer, missing-translation and stale-SRV controls. Build startup_stream_consumer; run `ctest --preset release --no-tests=error -j 1 -R '^startup_slot67_indirect_dispatch_(warp|hardware)
Startup shader s_bfm_b64 (#2007) Author rebase requested; independent reviewer wanted. Verify both result words and the negative controls on the rebased head. WARP and hardware command in the linked review request. #1723, #2007
BVH destination address placement (#1758) MasterDomino, claimed · PR #1860 merged, Windows Release 6/6 · RX 9070 XT cleared address check with the opt-in · measurement Explicit startup configuration on the traced non-fixed XMem path. Check the entire 40-bit range in the consumer address domain. Exercise exhaustion and rollback; keep ordinary and fixed-address cases. Run `ctest --preset release --no-tests=error -R '^(xmem_startup_below_40 xmem_shim_mapped_pages)' -V`.
Slot 148 upload lifetime (#1758) Main development owns production wiring; JustinDCosta, ABI/fence fixture claimed, awaiting integration baseline Verify CPU/GPU address relationship and alignment, reject allocation after Close, then check A and B after completion when Reset occurs with A held behind a GPU fence. Add and run ctest --preset dev --no-tests=error -R '^startup_list_upload_slot148_(hardware|warp)$' -V with the slot wiring. Upload arena #1774, merged, Standalone delayed-fence #2068, WARP and RTX 4060 Laptop 2/2, Close/Reset #1770, measured endpoint #1758
Linear buffer shared/copy backing (#1914) MasterDomino, claimed · #1942 test fixture merged · Release 5/5 on WARP and RTX 4060 Laptop, including three negative controls. Production buffer slice remains open One source-built buffer through shared, forced-copy and forced-share-failure paths. Verify late CPU writes, fence-completed CPU alias readback and in-flight backing lifetime. Reuse the vm_translation, vm_copy_queue and era_gpu_alias fixtures. Record the exact new test command, adapter, driver, copy bytes, backing usage and HRESULTs with the PR. Approved scope. Independent of slot 148.
Scene composite pixel provenance (#1628) MasterDomino, fixture merged (#1642) Source / destination-before / destination-after on one command list ctest --preset dev --no-tests=error -R '^startup_composite_provenance_(hardware|warp)$' -V (requested fixture) Independent; #1137 records earlier observations
Packed screen position (#1629) RenzoWit35, scanner; MasterDomino, aggregate record checks; KelboLive, draft #1725; existing gradient passes Intel Arc 140T and WARP Prove the PSO input-mask source and select the correct register in a gradient fixture ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V (requested fixture) May run alongside #1628
Descriptor paging across two logical heaps @Jess-Doit · PR #1074 · RTX/WARP combined 19/19; merged b9beb159; RTX 3090 and WARP retest (all 14 descriptor cases passed) A source-built case copies distinct descriptors across a page boundary and reads both heaps through one shared shader-visible heap. A stale page or swapped heap must change the readback. ctest --preset dev --no-tests=error -R '^descriptor_heap_paging_' -V Merged baseline #1054 · Paging scope · GTX 1060/WARP report
CPU-copied descriptor records @Jess-Doit · local RTX/WARP 10/10; merged f01259c9; RX 590 and WARP descriptor cases 10/10 Verify the copied record selects the second output word. The stale mirror selects the first word and an unknown ID is refused before submission. On #1060, build offscreen_check, then run ctest --preset dev --no-tests=error -R '^descriptor_(window|record_copy)_' -V. PR #1060 builds on merged #1054.
Raw UAV stores through two address windows @zohaiblazuli · #1025 merged at 436ac1bf; RTX 4060 Laptop/WARP 8/8; RX 590 and WARP raw-window cases 4/4 Source-built scalar and four-DWORD stores, untouched sentinels, swapped bindings, and rejection of misaligned or out-of-range requests before dispatch. Build vm_copy_queue_check, then run ctest --preset release --no-tests=error -R '^vm_(copy_queue|page_provenance|raw_srv|raw_uav)_' -V. Both raw-window fixtures are covered by #1025.
COPY → DIRECT cross-page ordering retest @Holastor · RX 6600M hardware 2/2; matched source revision d4cbfcd4; RX 590 ordered copy failed; WARP and page provenance passed; RTX 3090 hardware 2/2 at a7710b73; RX 9070 XT and WARP 4/4 at 82749f0f; RTX 4090 and WARP 4/4 at 1744710c Post adapter, driver, Windows build and readback or skip counts for an early read, a post-copy read and a post-remap read. Build vm_copy_queue_check, then run ctest --preset release --no-tests=error -R '^vm_(copy_queue|page_provenance)_hardware$' -V. Merged baseline #1003.
Rectangle-list expansion @Holastor · Python, RTX and WARP verified at cbf3c8bb; merged 2db96ba5 Review the source-built geometry contract, distinct corner attributes, and winding and malformed-count controls. On #1068, run ctest --preset dev --no-tests=error -R '^rectlist_' -V. PR #1068 · Startup observation
CreateSamplerX desktop sampler contract @Not-Saii · claimed; PR #1121 · merged; 4/4 on WARP and RTX 4060 Laptop in maintenance Release retest; author reports 4/4 in both presets on WARP and RTX 4090 Add a source-built test with distinguishable address modes and explicit LOD limits. Read back values on WARP and hardware, and use a deliberately swapped sampler to catch descriptor or address-mode mistakes. Record which filter fields are supported. Add and run ctest --preset dev --no-tests=error -R '^startup_sampler_x_' -V on the proposed PR. Startup boundary #870 · XCL public ABI notes

Comment here with the row, your environment and any overlapping work before starting. Build the named target first and report the exact command, result and capability skip separately. Link the resulting PR or retest here. The controlled frame-event fixture from @Holastor has merged in #1014.

Original GPU virtual-memory task

Refs #870. The startup preflight found a direct import for D3D12ConfigureVirtualMemoryX. The desktop D3D12 shim already covers the device creation and root signature imports used by the startup fixture.

Acceptance

  • Identify the ABI, configuration fields, call order and observed return behavior from evidence that can be shared or reproduced independently.
  • Propose a desktop implementation only for the verified behavior. Add a source-built fixture with one valid input and a failure case that detects any resource or state changes.
  • Report the first open contract question if the available evidence cannot support an implementation.

Available to claim. Comment with your environment and links to overlapping GPU VA work. Keep candidate binaries, dumps and private logs local.

-V. | #1867, #2470, [closed #3209](https://github.com/R0Y00/Xbox2Windows/issues/3209) | | Startup shader s_bfm_b64(#2007) | Author rebase requested; [independent reviewer wanted](https://github.com/R0Y00/Xbox2Windows/pull/2007#issuecomment-7171040347). | Verify both result words and the negative controls on the rebased head. | WARP and hardware command in the linked review request. | #1723, #2007 | | BVH destination address placement (#1758) | [MasterDomino, claimed](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141337878) · [PR #1860 merged, Windows Release 6/6](https://github.com/R0Y00/Xbox2Windows/pull/1860) · [RX 9070 XT cleared address check with the opt-in](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7142481719) · [measurement](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141035594) | Explicit startup configuration on the traced non-fixed XMem path. Check the entire 40-bit range in the consumer address domain. Exercise exhaustion and rollback; keep ordinary and fixed-address cases. | Runctest --preset release --no-tests=error -R '^(xmem_startup_below_40|xmem_shim_mapped_pages)' -V. | [Approved contract](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141264763) | | Slot 148 upload lifetime (#1758) | Main development owns production wiring; [JustinDCosta, ABI/fence fixture claimed](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7143305649), [awaiting integration baseline](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7143374903) | Verify CPU/GPU address relationship and alignment, reject allocation after Close, then check A and B after completion when Reset occurs with A held behind a GPU fence. | Add and run ctest --preset dev --no-tests=error -R '^startup_list_upload_slot148_(hardware|warp)$' -Vwith the slot wiring. | [Upload arena #1774, merged](https://github.com/R0Y00/Xbox2Windows/pull/1774), [Standalone delayed-fence #2068, WARP and RTX 4060 Laptop 2/2](https://github.com/R0Y00/Xbox2Windows/pull/2068#issuecomment-7148303189), [Close/Reset #1770](https://github.com/R0Y00/Xbox2Windows/pull/1770), [measured endpoint #1758](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141035594) | | Linear buffer shared/copy backing (#1914) | [MasterDomino, claimed](https://github.com/R0Y00/Xbox2Windows/issues/1914#issuecomment-7144664623) · [#1942 test fixture merged](https://github.com/R0Y00/Xbox2Windows/pull/1942) · Release 5/5 on WARP and RTX 4060 Laptop, including three negative controls. Production buffer slice remains open | One source-built buffer through shared, forced-copy and forced-share-failure paths. Verify late CPU writes, fence-completed CPU alias readback and in-flight backing lifetime. | Reuse the vm_translation, vm_copy_queue and era_gpu_alias fixtures. Record the exact new test command, adapter, driver, copy bytes, backing usage and HRESULTs with the PR. | [Approved scope](https://github.com/R0Y00/Xbox2Windows/issues/1914#issuecomment-7144624407). Independent of slot 148. | | Scene composite pixel provenance (#1628) | [MasterDomino](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7136210574), fixture merged (#1642) | Source / destination-before / destination-after on one command list |ctest --preset dev --no-tests=error -R '^startup_composite_provenance_(hardware|warp)$' -V(requested fixture) | Independent; #1137 records earlier observations | | Packed screen position (#1629) | [RenzoWit35](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7136400484), scanner; [MasterDomino](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7136461775), aggregate record checks; [KelboLive, draft #1725](https://github.com/R0Y00/Xbox2Windows/pull/1725); [existing gradient passes Intel Arc 140T and WARP](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7142663677) | Prove the PSO input-mask source and select the correct register in a gradient fixture |ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V(requested fixture) | May run alongside #1628 | | Descriptor paging across two logical heaps | @Jess-Doit · [PR #1074](https://github.com/R0Y00/Xbox2Windows/pull/1074) · [RTX/WARP combined 19/19](https://github.com/R0Y00/Xbox2Windows/pull/1074#issuecomment-7118166765); [merged b9beb159](https://github.com/R0Y00/Xbox2Windows/commit/b9beb1591679101594f52c887efc469bd568a190); [RTX 3090 and WARP retest](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7119158297) (all 14 descriptor cases passed) | A source-built case copies distinct descriptors across a page boundary and reads both heaps through one shared shader-visible heap. A stale page or swapped heap must change the readback. |ctest --preset dev --no-tests=error -R '^descriptor_heap_paging_' -V| [Merged baseline #1054](https://github.com/R0Y00/Xbox2Windows/pull/1054) · [Paging scope](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117289535) · [GTX 1060/WARP report](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117989966) | | CPU-copied descriptor records | @Jess-Doit · [local RTX/WARP 10/10](https://github.com/R0Y00/Xbox2Windows/pull/1060#issuecomment-7117788843); [merged f01259c9](https://github.com/R0Y00/Xbox2Windows/commit/f01259c9f9a96eb065de8e02203d4233fa9003dc); [RX 590 and WARP descriptor cases 10/10](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142075731) | Verify the copied record selects the second output word. The stale mirror selects the first word and an unknown ID is refused before submission. | On #1060, buildoffscreen_check, then run ctest --preset dev --no-tests=error -R '^descriptor_(window|record_copy)' -V. | [PR #1060](https://github.com/R0Y00/Xbox2Windows/pull/1060) builds on merged #1054. | | Raw UAV stores through two address windows | @zohaiblazuli · [#1025 merged at 436ac1bf](https://github.com/R0Y00/Xbox2Windows/commit/436ac1bf39128901fed5ef567dadd92b404ac5f4); [RTX 4060 Laptop/WARP 8/8](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7125760614); [RX 590 and WARP raw-window cases 4/4](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142075731) | Source-built scalar and four-DWORD stores, untouched sentinels, swapped bindings, and rejection of misaligned or out-of-range requests before dispatch. | Build vm_copy_queue_check, then run ctest --preset release --no-tests=error -R '^vm(copy_queue|page_provenance|raw_srv|raw_uav)' -V. | Both raw-window fixtures are covered by [#1025](https://github.com/R0Y00/Xbox2Windows/pull/1025). | | COPY → DIRECT cross-page ordering retest | @Holastor · [RX 6600M hardware 2/2](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7118233810); matched source revision d4cbfcd4; [RX 590 ordered copy failed; WARP and page provenance passed](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142379308); [RTX 3090 hardware 2/2 at a7710b73](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7119158297); [RX 9070 XT and WARP 4/4 at 82749f0f](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142495780); [RTX 4090 and WARP 4/4 at 1744710c](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7147350817) | Post adapter, driver, Windows build and readback or skip counts for an early read, a post-copy read and a post-remap read. | Build vm_copy_queue_check, then run ctest --preset release --no-tests=error -R '^vm(copy_queue|page_provenance)hardware$' -V. | [Merged baseline #1003](https://github.com/R0Y00/Xbox2Windows/pull/1003). | | Rectangle-list expansion | @Holastor · [Python, RTX and WARP verified at cbf3c8bb](https://github.com/Holastor/Xbox2Windows/commit/cbf3c8bb844b605162794901bdeeeb7c3b579193); [merged 2db96ba5](https://github.com/R0Y00/Xbox2Windows/commit/2db96ba52cb4b72cfb4df4190fc37dfcbee98046) | Review the source-built geometry contract, distinct corner attributes, and winding and malformed-count controls. | On #1068, run ctest --preset dev --no-tests=error -R '^rectlist' -V. | [PR #1068](https://github.com/R0Y00/Xbox2Windows/pull/1068) · [Startup observation](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7116272710) | | CreateSamplerXdesktop sampler contract | @Not-Saii · [claimed](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7118790643); [PR #1121](https://github.com/R0Y00/Xbox2Windows/pull/1121) · merged; 4/4 on WARP and RTX 4060 Laptop in maintenance Release retest; author reports 4/4 in both presets on WARP and RTX 4090 | Add a source-built test with distinguishable address modes and explicit LOD limits. Read back values on WARP and hardware, and use a deliberately swapped sampler to catch descriptor or address-mode mistakes. Record which filter fields are supported. | Add and runctest --preset dev --no-tests=error -R '^startup_sampler_x_' -V` on the proposed PR. | Startup boundary #870 · XCL public ABI notes |

Comment here with the row, your environment and any overlapping work before starting. Build the named target first and report the exact command, result and capability skip separately. Link the resulting PR or retest here. The controlled frame-event fixture from @Holastor has merged in #1014.

Original GPU virtual-memory task

Refs #870. The startup preflight found a direct import for D3D12ConfigureVirtualMemoryX. The desktop D3D12 shim already covers the device creation and root signature imports used by the startup fixture.

Acceptance

  • Identify the ABI, configuration fields, call order and observed return behavior from evidence that can be shared or reproduced independently.
  • Propose a desktop implementation only for the verified behavior. Add a source-built fixture with one valid input and a failure case that detects any resource or state changes.
  • Report the first open contract question if the available evidence cannot support an implementation.

Available to claim. Comment with your environment and links to overlapping GPU VA work. Keep candidate binaries, dumps and private logs local.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6562432113 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T15:14:38Z. --- Main startup status and the next milestone live in [#870](https://github.com/R0Y00/Xbox2Windows/issues/870). This issue tracks GPU tasks, claims and review dependencies. ## GPU tasks | Task | Owner and status | Deliverable | Acceptance command | Depends on | | --- | --- | --- | --- | --- | | Slot 67 translated compute through indirect Dispatch (#2492) | [Fixture completed in #2771](https://github.com/R0Y00/Xbox2Windows/pull/2771). [Fenced pixel follow-up #3222](https://github.com/R0Y00/Xbox2Windows/pull/3222) merged. The original-executable investigation continues in #870. | Source-built GPU-written arguments, translated slot 67 output and offscreen pixels. Includes omitted-writer, missing-translation and stale-SRV controls. | Build `startup_stream_consumer`; run `ctest --preset release --no-tests=error -j 1 -R '^startup_slot67_indirect_dispatch_(warp\|hardware) | Startup shader `s_bfm_b64` (#2007) | Author rebase requested; [independent reviewer wanted](https://github.com/R0Y00/Xbox2Windows/pull/2007#issuecomment-7171040347). | Verify both result words and the negative controls on the rebased head. | WARP and hardware command in the linked review request. | #1723, #2007 | | BVH destination address placement (#1758) | [MasterDomino, claimed](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141337878) · [PR #1860 merged, Windows Release 6/6](https://github.com/R0Y00/Xbox2Windows/pull/1860) · [RX 9070 XT cleared address check with the opt-in](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7142481719) · [measurement](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141035594) | Explicit startup configuration on the traced non-fixed XMem path. Check the entire 40-bit range in the consumer address domain. Exercise exhaustion and rollback; keep ordinary and fixed-address cases. | Run `ctest --preset release --no-tests=error -R '^(xmem_startup_below_40|xmem_shim_mapped_pages)' -V`. | [Approved contract](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141264763) | | Slot 148 upload lifetime (#1758) | Main development owns production wiring; [JustinDCosta, ABI/fence fixture claimed](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7143305649), [awaiting integration baseline](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7143374903) | Verify CPU/GPU address relationship and alignment, reject allocation after Close, then check A and B after completion when Reset occurs with A held behind a GPU fence. | Add and run `ctest --preset dev --no-tests=error -R '^startup_list_upload_slot148_(hardware\|warp)$' -V` with the slot wiring. | [Upload arena #1774, merged](https://github.com/R0Y00/Xbox2Windows/pull/1774), [Standalone delayed-fence #2068, WARP and RTX 4060 Laptop 2/2](https://github.com/R0Y00/Xbox2Windows/pull/2068#issuecomment-7148303189), [Close/Reset #1770](https://github.com/R0Y00/Xbox2Windows/pull/1770), [measured endpoint #1758](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141035594) | | Linear buffer shared/copy backing (#1914) | [MasterDomino, claimed](https://github.com/R0Y00/Xbox2Windows/issues/1914#issuecomment-7144664623) · [#1942 test fixture merged](https://github.com/R0Y00/Xbox2Windows/pull/1942) · Release 5/5 on WARP and RTX 4060 Laptop, including three negative controls. Production buffer slice remains open | One source-built buffer through shared, forced-copy and forced-share-failure paths. Verify late CPU writes, fence-completed CPU alias readback and in-flight backing lifetime. | Reuse the vm_translation, vm_copy_queue and era_gpu_alias fixtures. Record the exact new test command, adapter, driver, copy bytes, backing usage and HRESULTs with the PR. | [Approved scope](https://github.com/R0Y00/Xbox2Windows/issues/1914#issuecomment-7144624407). Independent of slot 148. | | Scene composite pixel provenance (#1628) | [MasterDomino](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7136210574), fixture merged (#1642) | Source / destination-before / destination-after on one command list | `ctest --preset dev --no-tests=error -R '^startup_composite_provenance_(hardware\|warp)$' -V` (requested fixture) | Independent; #1137 records earlier observations | | Packed screen position (#1629) | [RenzoWit35](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7136400484), scanner; [MasterDomino](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7136461775), aggregate record checks; [KelboLive, draft #1725](https://github.com/R0Y00/Xbox2Windows/pull/1725); [existing gradient passes Intel Arc 140T and WARP](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7142663677) | Prove the PSO input-mask source and select the correct register in a gradient fixture | `ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware\|warp)$' -V` (requested fixture) | May run alongside #1628 | | Descriptor paging across two logical heaps | @Jess-Doit · [PR #1074](https://github.com/R0Y00/Xbox2Windows/pull/1074) · [RTX/WARP combined 19/19](https://github.com/R0Y00/Xbox2Windows/pull/1074#issuecomment-7118166765); [merged b9beb159](https://github.com/R0Y00/Xbox2Windows/commit/b9beb1591679101594f52c887efc469bd568a190); [RTX 3090 and WARP retest](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7119158297) (all 14 descriptor cases passed) | A source-built case copies distinct descriptors across a page boundary and reads both heaps through one shared shader-visible heap. A stale page or swapped heap must change the readback. | `ctest --preset dev --no-tests=error -R '^descriptor_heap_paging_' -V` | [Merged baseline #1054](https://github.com/R0Y00/Xbox2Windows/pull/1054) · [Paging scope](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117289535) · [GTX 1060/WARP report](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117989966) | | CPU-copied descriptor records | @Jess-Doit · [local RTX/WARP 10/10](https://github.com/R0Y00/Xbox2Windows/pull/1060#issuecomment-7117788843); [merged f01259c9](https://github.com/R0Y00/Xbox2Windows/commit/f01259c9f9a96eb065de8e02203d4233fa9003dc); [RX 590 and WARP descriptor cases 10/10](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142075731) | Verify the copied record selects the second output word. The stale mirror selects the first word and an unknown ID is refused before submission. | On #1060, build `offscreen_check`, then run `ctest --preset dev --no-tests=error -R '^descriptor_(window\|record_copy)_' -V`. | [PR #1060](https://github.com/R0Y00/Xbox2Windows/pull/1060) builds on merged #1054. | | Raw UAV stores through two address windows | @zohaiblazuli · [#1025 merged at 436ac1bf](https://github.com/R0Y00/Xbox2Windows/commit/436ac1bf39128901fed5ef567dadd92b404ac5f4); [RTX 4060 Laptop/WARP 8/8](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7125760614); [RX 590 and WARP raw-window cases 4/4](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142075731) | Source-built scalar and four-DWORD stores, untouched sentinels, swapped bindings, and rejection of misaligned or out-of-range requests before dispatch. | Build `vm_copy_queue_check`, then run `ctest --preset release --no-tests=error -R '^vm_(copy_queue\|page_provenance\|raw_srv\|raw_uav)_' -V`. | Both raw-window fixtures are covered by [#1025](https://github.com/R0Y00/Xbox2Windows/pull/1025). | | COPY → DIRECT cross-page ordering retest | @Holastor · [RX 6600M hardware 2/2](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7118233810); matched source revision d4cbfcd4; [RX 590 ordered copy failed; WARP and page provenance passed](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142379308); [RTX 3090 hardware 2/2 at a7710b73](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7119158297); [RX 9070 XT and WARP 4/4 at 82749f0f](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142495780); [RTX 4090 and WARP 4/4 at 1744710c](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7147350817) | Post adapter, driver, Windows build and readback or skip counts for an early read, a post-copy read and a post-remap read. | Build `vm_copy_queue_check`, then run `ctest --preset release --no-tests=error -R '^vm_(copy_queue\|page_provenance)_hardware$' -V`. | [Merged baseline #1003](https://github.com/R0Y00/Xbox2Windows/pull/1003). | | Rectangle-list expansion | @Holastor · [Python, RTX and WARP verified at cbf3c8bb](https://github.com/Holastor/Xbox2Windows/commit/cbf3c8bb844b605162794901bdeeeb7c3b579193); [merged 2db96ba5](https://github.com/R0Y00/Xbox2Windows/commit/2db96ba52cb4b72cfb4df4190fc37dfcbee98046) | Review the source-built geometry contract, distinct corner attributes, and winding and malformed-count controls. | On #1068, run `ctest --preset dev --no-tests=error -R '^rectlist_' -V`. | [PR #1068](https://github.com/R0Y00/Xbox2Windows/pull/1068) · [Startup observation](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7116272710) | | `CreateSamplerX` desktop sampler contract | @Not-Saii · [claimed](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7118790643); [PR #1121](https://github.com/R0Y00/Xbox2Windows/pull/1121) · merged; 4/4 on WARP and RTX 4060 Laptop in maintenance Release retest; author reports 4/4 in both presets on WARP and RTX 4090 | Add a source-built test with distinguishable address modes and explicit LOD limits. Read back values on WARP and hardware, and use a deliberately swapped sampler to catch descriptor or address-mode mistakes. Record which filter fields are supported. | Add and run `ctest --preset dev --no-tests=error -R '^startup_sampler_x_' -V` on the proposed PR. | [Startup boundary #870](https://github.com/R0Y00/Xbox2Windows/issues/870) · [XCL public ABI notes](https://github.com/ivall/xcl/blob/main/HANDOFF.md) | Comment here with the row, your environment and any overlapping work before starting. Build the named target first and report the exact command, result and capability skip separately. Link the resulting PR or retest here. The controlled frame-event fixture from @Holastor has merged in [#1014](https://github.com/R0Y00/Xbox2Windows/pull/1014). <details> <summary>Original GPU virtual-memory task</summary> Refs #870. The startup preflight found a direct import for `D3D12ConfigureVirtualMemoryX`. The desktop D3D12 shim already covers the device creation and root signature imports used by the startup fixture. **Acceptance** - Identify the ABI, configuration fields, call order and observed return behavior from evidence that can be shared or reproduced independently. - Propose a desktop implementation only for the verified behavior. Add a source-built fixture with one valid input and a failure case that detects any resource or state changes. - Report the first open contract question if the available evidence cannot support an implementation. Available to claim. Comment with your environment and links to overlapping GPU VA work. Keep candidate binaries, dumps and private logs local. </details> -V`. | #1867, #2470, [closed #3209](https://github.com/R0Y00/Xbox2Windows/issues/3209) | | Startup shader `s_bfm_b64` (#2007) | Author rebase requested; [independent reviewer wanted](https://github.com/R0Y00/Xbox2Windows/pull/2007#issuecomment-7171040347). | Verify both result words and the negative controls on the rebased head. | WARP and hardware command in the linked review request. | #1723, #2007 | | BVH destination address placement (#1758) | [MasterDomino, claimed](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141337878) · [PR #1860 merged, Windows Release 6/6](https://github.com/R0Y00/Xbox2Windows/pull/1860) · [RX 9070 XT cleared address check with the opt-in](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7142481719) · [measurement](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141035594) | Explicit startup configuration on the traced non-fixed XMem path. Check the entire 40-bit range in the consumer address domain. Exercise exhaustion and rollback; keep ordinary and fixed-address cases. | Run `ctest --preset release --no-tests=error -R '^(xmem_startup_below_40|xmem_shim_mapped_pages)' -V`. | [Approved contract](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141264763) | | Slot 148 upload lifetime (#1758) | Main development owns production wiring; [JustinDCosta, ABI/fence fixture claimed](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7143305649), [awaiting integration baseline](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7143374903) | Verify CPU/GPU address relationship and alignment, reject allocation after Close, then check A and B after completion when Reset occurs with A held behind a GPU fence. | Add and run `ctest --preset dev --no-tests=error -R '^startup_list_upload_slot148_(hardware\|warp)$' -V` with the slot wiring. | [Upload arena #1774, merged](https://github.com/R0Y00/Xbox2Windows/pull/1774), [Standalone delayed-fence #2068, WARP and RTX 4060 Laptop 2/2](https://github.com/R0Y00/Xbox2Windows/pull/2068#issuecomment-7148303189), [Close/Reset #1770](https://github.com/R0Y00/Xbox2Windows/pull/1770), [measured endpoint #1758](https://github.com/R0Y00/Xbox2Windows/issues/1758#issuecomment-7141035594) | | Linear buffer shared/copy backing (#1914) | [MasterDomino, claimed](https://github.com/R0Y00/Xbox2Windows/issues/1914#issuecomment-7144664623) · [#1942 test fixture merged](https://github.com/R0Y00/Xbox2Windows/pull/1942) · Release 5/5 on WARP and RTX 4060 Laptop, including three negative controls. Production buffer slice remains open | One source-built buffer through shared, forced-copy and forced-share-failure paths. Verify late CPU writes, fence-completed CPU alias readback and in-flight backing lifetime. | Reuse the vm_translation, vm_copy_queue and era_gpu_alias fixtures. Record the exact new test command, adapter, driver, copy bytes, backing usage and HRESULTs with the PR. | [Approved scope](https://github.com/R0Y00/Xbox2Windows/issues/1914#issuecomment-7144624407). Independent of slot 148. | | Scene composite pixel provenance (#1628) | [MasterDomino](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7136210574), fixture merged (#1642) | Source / destination-before / destination-after on one command list | `ctest --preset dev --no-tests=error -R '^startup_composite_provenance_(hardware\|warp)$' -V` (requested fixture) | Independent; #1137 records earlier observations | | Packed screen position (#1629) | [RenzoWit35](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7136400484), scanner; [MasterDomino](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7136461775), aggregate record checks; [KelboLive, draft #1725](https://github.com/R0Y00/Xbox2Windows/pull/1725); [existing gradient passes Intel Arc 140T and WARP](https://github.com/R0Y00/Xbox2Windows/issues/1629#issuecomment-7142663677) | Prove the PSO input-mask source and select the correct register in a gradient fixture | `ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware\|warp)$' -V` (requested fixture) | May run alongside #1628 | | Descriptor paging across two logical heaps | @Jess-Doit · [PR #1074](https://github.com/R0Y00/Xbox2Windows/pull/1074) · [RTX/WARP combined 19/19](https://github.com/R0Y00/Xbox2Windows/pull/1074#issuecomment-7118166765); [merged b9beb159](https://github.com/R0Y00/Xbox2Windows/commit/b9beb1591679101594f52c887efc469bd568a190); [RTX 3090 and WARP retest](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7119158297) (all 14 descriptor cases passed) | A source-built case copies distinct descriptors across a page boundary and reads both heaps through one shared shader-visible heap. A stale page or swapped heap must change the readback. | `ctest --preset dev --no-tests=error -R '^descriptor_heap_paging_' -V` | [Merged baseline #1054](https://github.com/R0Y00/Xbox2Windows/pull/1054) · [Paging scope](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117289535) · [GTX 1060/WARP report](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117989966) | | CPU-copied descriptor records | @Jess-Doit · [local RTX/WARP 10/10](https://github.com/R0Y00/Xbox2Windows/pull/1060#issuecomment-7117788843); [merged f01259c9](https://github.com/R0Y00/Xbox2Windows/commit/f01259c9f9a96eb065de8e02203d4233fa9003dc); [RX 590 and WARP descriptor cases 10/10](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142075731) | Verify the copied record selects the second output word. The stale mirror selects the first word and an unknown ID is refused before submission. | On #1060, build `offscreen_check`, then run `ctest --preset dev --no-tests=error -R '^descriptor_(window\|record_copy)_' -V`. | [PR #1060](https://github.com/R0Y00/Xbox2Windows/pull/1060) builds on merged #1054. | | Raw UAV stores through two address windows | @zohaiblazuli · [#1025 merged at 436ac1bf](https://github.com/R0Y00/Xbox2Windows/commit/436ac1bf39128901fed5ef567dadd92b404ac5f4); [RTX 4060 Laptop/WARP 8/8](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7125760614); [RX 590 and WARP raw-window cases 4/4](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142075731) | Source-built scalar and four-DWORD stores, untouched sentinels, swapped bindings, and rejection of misaligned or out-of-range requests before dispatch. | Build `vm_copy_queue_check`, then run `ctest --preset release --no-tests=error -R '^vm_(copy_queue\|page_provenance\|raw_srv\|raw_uav)_' -V`. | Both raw-window fixtures are covered by [#1025](https://github.com/R0Y00/Xbox2Windows/pull/1025). | | COPY → DIRECT cross-page ordering retest | @Holastor · [RX 6600M hardware 2/2](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7118233810); matched source revision d4cbfcd4; [RX 590 ordered copy failed; WARP and page provenance passed](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142379308); [RTX 3090 hardware 2/2 at a7710b73](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7119158297); [RX 9070 XT and WARP 4/4 at 82749f0f](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142495780); [RTX 4090 and WARP 4/4 at 1744710c](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7147350817) | Post adapter, driver, Windows build and readback or skip counts for an early read, a post-copy read and a post-remap read. | Build `vm_copy_queue_check`, then run `ctest --preset release --no-tests=error -R '^vm_(copy_queue\|page_provenance)_hardware$' -V`. | [Merged baseline #1003](https://github.com/R0Y00/Xbox2Windows/pull/1003). | | Rectangle-list expansion | @Holastor · [Python, RTX and WARP verified at cbf3c8bb](https://github.com/Holastor/Xbox2Windows/commit/cbf3c8bb844b605162794901bdeeeb7c3b579193); [merged 2db96ba5](https://github.com/R0Y00/Xbox2Windows/commit/2db96ba52cb4b72cfb4df4190fc37dfcbee98046) | Review the source-built geometry contract, distinct corner attributes, and winding and malformed-count controls. | On #1068, run `ctest --preset dev --no-tests=error -R '^rectlist_' -V`. | [PR #1068](https://github.com/R0Y00/Xbox2Windows/pull/1068) · [Startup observation](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7116272710) | | `CreateSamplerX` desktop sampler contract | @Not-Saii · [claimed](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7118790643); [PR #1121](https://github.com/R0Y00/Xbox2Windows/pull/1121) · merged; 4/4 on WARP and RTX 4060 Laptop in maintenance Release retest; author reports 4/4 in both presets on WARP and RTX 4090 | Add a source-built test with distinguishable address modes and explicit LOD limits. Read back values on WARP and hardware, and use a deliberately swapped sampler to catch descriptor or address-mode mistakes. Record which filter fields are supported. | Add and run `ctest --preset dev --no-tests=error -R '^startup_sampler_x_' -V` on the proposed PR. | [Startup boundary #870](https://github.com/R0Y00/Xbox2Windows/issues/870) · [XCL public ABI notes](https://github.com/ivall/xcl/blob/main/HANDOFF.md) | Comment here with the row, your environment and any overlapping work before starting. Build the named target first and report the exact command, result and capability skip separately. Link the resulting PR or retest here. The controlled frame-event fixture from @Holastor has merged in [#1014](https://github.com/R0Y00/Xbox2Windows/pull/1014). <details> <summary>Original GPU virtual-memory task</summary> Refs #870. The startup preflight found a direct import for `D3D12ConfigureVirtualMemoryX`. The desktop D3D12 shim already covers the device creation and root signature imports used by the startup fixture. **Acceptance** - Identify the ABI, configuration fields, call order and observed return behavior from evidence that can be shared or reproduced independently. - Propose a desktop implementation only for the verified behavior. Add a source-built fixture with one valid input and a failure case that detects any resource or state changes. - Report the first open contract question if the available evidence cannot support an implementation. Available to claim. Comment with your environment and links to overlapping GPU VA work. Keep candidate binaries, dumps and private logs local. </details>
lukaslw-lab commented 2026-11-24 06:49:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T15:58:09Z.


AI-assisted (Claude Code).

I'd like to take #874. A short static pass on the package's main executable (file reads only, nothing executed) found the following.

Observation Value
Import references one jmp [IAT] thunk, one direct call site
Call hr = D3D12ConfigureVirtualMemoryX(&cfg): one pointer argument, HRESULT checked with SUCCEEDED
cfg 32 bytes, zero-initialised on the stack; only the DWORD at offset 4 is written
Offset 4 value ceil(size / 16 GiB) + 2, where size is 16 GiB or 24 GiB (so 3 or 4)
size source HKLM\Software\Microsoft\Windows NT\CurrentVersion\OEM\ConsoleMode (DWORD); one mode gives 16 GiB, the others 24 GiB; a missing key takes the 24 GiB path
Call order once per process (static guard), before the D3D12 device is created; immediately followed by two XMemVirtualAlloc(NULL, size, 0x20402000, …) reservations of size (4th/5th arguments 0x21/4 and 3/0x801)
Failure handling a failed HRESULT or a null reservation only reaches int 3; execution continues

Plan:

  • Contract note first: the ABI above, the remaining unknowns (the meaning of offset 4 and of the 28 zero bytes, whether configuration must precede the reservations) and what the desktop side can verify. No public Microsoft reference documents the struct, so I'll label anything beyond the observed call as proposed policy.
  • Shim: a d3d12_xs export that accepts this shape and refuses anything else (a null pointer, non-zero reserved bytes, a second configuration) without state changes.
  • Fixture: a source-built EXE that imports it by name, run under the Windows loader and pe_map: one valid call, plus failure cases with a canary struct showing nothing changed.
  • XMemVirtualAlloc with these flags belongs to the XMem side (#875/#879, #880). I'll only record the order here and won't touch xmem_shim.

Environment: Windows 10 Pro 22H2 (19045), MSVC 19.52, RTX 3080 Ti, plus in-box WARP and WARP 1.0.22 (w10 preset).
Related: #870 (milestone), #875/#879 and #880 (XMem side).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7106400503 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7106400503). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-23T15:58:09Z. --- _AI-assisted (Claude Code)._ I'd like to take #874. A short static pass on the package's main executable (file reads only, nothing executed) found the following. | Observation | Value | |---|---| | Import references | one `jmp [IAT]` thunk, one direct call site | | Call | `hr = D3D12ConfigureVirtualMemoryX(&cfg)`: one pointer argument, HRESULT checked with `SUCCEEDED` | | `cfg` | 32 bytes, zero-initialised on the stack; only the DWORD at offset 4 is written | | Offset 4 value | `ceil(size / 16 GiB) + 2`, where `size` is 16 GiB or 24 GiB (so 3 or 4) | | `size` source | `HKLM\Software\Microsoft\Windows NT\CurrentVersion\OEM\ConsoleMode` (DWORD); one mode gives 16 GiB, the others 24 GiB; a missing key takes the 24 GiB path | | Call order | once per process (static guard), before the D3D12 device is created; immediately followed by two `XMemVirtualAlloc(NULL, size, 0x20402000, …)` reservations of `size` (4th/5th arguments `0x21`/`4` and `3`/`0x801`) | | Failure handling | a failed HRESULT or a null reservation only reaches `int 3`; execution continues | Plan: - **Contract note first**: the ABI above, the remaining unknowns (the meaning of offset 4 and of the 28 zero bytes, whether configuration must precede the reservations) and what the desktop side can verify. No public Microsoft reference documents the struct, so I'll label anything beyond the observed call as proposed policy. - **Shim**: a `d3d12_xs` export that accepts this shape and refuses anything else (a null pointer, non-zero reserved bytes, a second configuration) without state changes. - **Fixture**: a source-built EXE that imports it by name, run under the Windows loader and `pe_map`: one valid call, plus failure cases with a canary struct showing nothing changed. - `XMemVirtualAlloc` with these flags belongs to the XMem side (#875/#879, #880). I'll only record the order here and won't touch `xmem_shim`. Environment: Windows 10 Pro 22H2 (19045), MSVC 19.52, RTX 3080 Ti, plus in-box WARP and WARP 1.0.22 (`w10` preset). Related: #870 (milestone), #875/#879 and #880 (XMem side).
R0Y00 commented 2026-11-24 06:49:15 +00:00 (Migrated from github.com)
Author
Contributor

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


Thanks for taking #874. Please start with the contract note and a source-built EXE using a recording provider. That can prove the named import, 32-byte input snapshot, call order relative to the reservation calls, and propagation of a chosen failure HRESULT under Windows and pe_map. Keep the observed DWORD values as input samples while its meaning and required effect are open. A canary can catch argument writes. For a production shim, also show what configuration changes on Windows and which later operation observes it before treating the call as successful.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7106485112 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7106485112). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T16:01:25Z. --- Thanks for taking #874. Please start with the contract note and a source-built EXE using a recording provider. That can prove the named import, 32-byte input snapshot, call order relative to the reservation calls, and propagation of a chosen failure HRESULT under Windows and pe_map. Keep the observed DWORD values as input samples while its meaning and required effect are open. A canary can catch argument writes. For a production shim, also show what configuration changes on Windows and which later operation observes it before treating the call as successful.
lukaslw-lab commented 2026-11-24 06:49:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T16:29:56Z.


AI-assisted (Claude Code).

Follow-up on "which later operation observes it" (static read of the main executable, nothing executed; fixture in #891). RVAs are for my local build.

Observation Where (RVA)
The configuration call and both reservations run in a one-time init reached from the static-initializer table, so before main. init 0x1e0a320, call 0x1e1cfe0
A later startup function creates the device through D3D12XboxCreateDevice, then calls the range setup. 0x19f4df0: device 0x19f4f4f, setup 0x19f5284
The range setup keeps reservation A (0x21/4) and B (3/0x801) and the size as globals. With a device, it maps physical pages into a third range and passes that to a device method (slot +0x250). Without one, it frees A and B and uses a single reservation for both. 0x1e6c110
An allocator returns 64 KiB blocks in A. A helper returns block - A + B, and callers write through + A - B. 0x221b9e0, 0x43c4830
A helper takes a resource's +0x58 method result (GetGPUVirtualAddress in the desktop vtable) and maps [B, B+size) back to A. 0x4fd2980

Over 40 functions read A, B or the size.

Reading: B is the GPU virtual-address view of the memory whose CPU view is A, at equal offsets. The operation that observes the configuration is this offset translation. On Windows, D3D12 picks GPU addresses itself, so a bare S_OK would leave GPU addresses outside B, and the helper would return them untranslated.

Open: whether this call or the XMem attribute words make B a GPU window, and what the 3/4 DWORD means. The game's own no-device path uses A == B, which is one desktop policy worth testing. It relates to the mapping work claimed on #880 and to #888's reservation type: two views of one section would reproduce the A/B layout.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107226435 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7107226435). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-23T16:29:56Z. --- _AI-assisted (Claude Code)._ Follow-up on "which later operation observes it" (static read of the main executable, nothing executed; fixture in #891). RVAs are for my local build. | Observation | Where (RVA) | |---|---| | The configuration call and both reservations run in a one-time init reached from the static-initializer table, so before `main`. | init `0x1e0a320`, call `0x1e1cfe0` | | A later startup function creates the device through `D3D12XboxCreateDevice`, then calls the range setup. | `0x19f4df0`: device `0x19f4f4f`, setup `0x19f5284` | | The range setup keeps reservation A (`0x21`/`4`) and B (`3`/`0x801`) and the size as globals. With a device, it maps physical pages into a third range and passes that to a device method (slot `+0x250`). Without one, it frees A and B and uses a single reservation for both. | `0x1e6c110` | | An allocator returns 64 KiB blocks in A. A helper returns `block - A + B`, and callers write through `+ A - B`. | `0x221b9e0`, `0x43c4830` | | A helper takes a resource's `+0x58` method result (`GetGPUVirtualAddress` in the desktop vtable) and maps `[B, B+size)` back to A. | `0x4fd2980` | Over 40 functions read A, B or the size. **Reading:** B is the GPU virtual-address view of the memory whose CPU view is A, at equal offsets. The operation that observes the configuration is this offset translation. On Windows, D3D12 picks GPU addresses itself, so a bare `S_OK` would leave GPU addresses outside B, and the helper would return them untranslated. **Open:** whether this call or the XMem attribute words make B a GPU window, and what the 3/4 DWORD means. The game's own no-device path uses A == B, which is one desktop policy worth testing. It relates to the mapping work claimed on #880 and to #888's reservation type: two views of one section would reproduce the A/B layout.
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:42:47Z.


#891 is merged. The source-built fixture now checks the two 32-byte inputs, both reservation calls, HRESULT propagation, and the input and canary controls under Windows and pe_map. The observations above give the next test a concrete consumer: can a source-built caller preserve the same offset when translating between its CPU range and a live D3D12 resource’s GPU address? Please keep the no-device shared-range case distinct from the device path, and show a mismatched-range control. The DWORD samples remain observations; the required Windows-side configuration effect is still open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7107556941 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7107556941). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T16:42:47Z. --- #891 is merged. The source-built fixture now checks the two 32-byte inputs, both reservation calls, HRESULT propagation, and the input and canary controls under Windows and pe_map. The observations above give the next test a concrete consumer: can a source-built caller preserve the same offset when translating between its CPU range and a live D3D12 resource’s GPU address? Please keep the no-device shared-range case distinct from the device path, and show a mismatched-range control. The DWORD samples remain observations; the required Windows-side configuration effect is still open.
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:26:44Z.


#912 has merged. The device fixture verified the same CPU/GPU offset with a live D3D12 heap, and the 64 KiB shifted-window control missed all 1,024 intended words in an independent RTX 4060 Laptop run. The shared-range case also passes separately. Keep this issue open for the production configuration call. The next source-built check should identify which state a successful configuration changes, which later operation observes it, and what failed configuration leaves intact.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7108668121 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7108668121). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T17:26:44Z. --- #912 has merged. The device fixture verified the same CPU/GPU offset with a live D3D12 heap, and the 64 KiB shifted-window control missed all 1,024 intended words in an independent RTX 4060 Laptop run. The shared-range case also passes separately. Keep this issue open for the production configuration call. The next source-built check should identify which state a successful configuration changes, which later operation observes it, and what failed configuration leaves intact.
lukaslw-lab commented 2026-11-24 06:49:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T18:27:35Z.


AI-assisted (Claude Code).

Following the sparse-tile result on #870, I checked whether one reserved buffer can serve as the whole configured GPU range (B, 16 or 24 GiB). It works on WARP 1.0.22 but not on the other two adapters I have.

Setup (local probe, source-built, not yet in the repository): CreateReservedResource buffer as the window, tiles from an ordinary two-tile DEFAULT heap, staging and readback in 64 KiB pagefile sections opened with OpenExistingHeapFromFileMapping. One tile is mapped, filled by CopyBufferRegion from staging, and read by a compute dispatch through a root UAV at window GPU VA + offset. Windows 10 19045, D3D12 10.0.19041.7291, debug layer on.

Adapter VA bits per resource 16/24 GiB reserved buffer Tile below 4 GiB Tile at or above 4 GiB
WARP 1.0.22 (app-local) 40 created 13/13 pass 13/13 pass (24 GiB window, offset 4 GiB)
RTX 3080 Ti, driver 610.47 40 created 13/13 pass mapping has no effect: reads 0, also by copy; no debug message, no wrap to offset mod 4 GiB
In-box WARP 10.0.19041.7811 32 E_OUTOFMEMORY above 4095 MiB copy lands, but the root-UAV dispatch reads 0 —

Where the copy goes and when the queue sees updates (all passing cases):

  • UpdateTileMappings followed by ExecuteCommandLists on the same queue needs no fence; the copy and dispatch see the new mapping.
  • A copy submitted before the mapping is discarded (the tile was NULL), and the tile keeps its earlier bytes.
  • CPU writes to the staging section after a copy are not seen until the next copy.
  • Remapping to another pool tile and back keeps the first tile's bytes; NULL and unmapped tiles read 0.

So one 16/24 GiB window is not portable. Splitting it works: six 4 GiB reserved windows (24 GiB), each with tiles mapped at its start, middle and last 64 KiB from an 18-tile pool, each filled with a distinct pattern and read back by dispatch:

Adapter Six 4 GiB windows Result
RTX 3080 Ti, driver 610.47 created, GPU VAs 0x2e0000000 + i × 4 GiB (adjacent here; D3D12 does not promise it) 18/18 tiles, unmapped tiles read 0 in all six
WARP 1.0.22 created, 0x8000000000000000 + i × 2^40 18/18, same
In-box WARP 10.0.19041.7811 (4095 MiB each) created 0/18, device removed 0x887A0020

A B → GPU range table per window therefore covers both working adapters. In-box WARP 19041 fails root-UAV reads into reserved buffers at any size, so a WARP fixture would need WARP 1.0.22 or a newer in-box build. I'd propose that split as the production configuration effect, and put the probe's checks into the repository fixture: success, invalid configuration (no windows created, existing device and mappings untouched), and the ordering controls above.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110193400 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7110193400). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-23T18:27:35Z. --- _AI-assisted (Claude Code)._ Following the sparse-tile result on #870, I checked whether one reserved buffer can serve as the whole configured GPU range (B, 16 or 24 GiB). It works on WARP 1.0.22 but not on the other two adapters I have. Setup (local probe, source-built, not yet in the repository): `CreateReservedResource` buffer as the window, tiles from an ordinary two-tile DEFAULT heap, staging and readback in 64 KiB pagefile sections opened with `OpenExistingHeapFromFileMapping`. One tile is mapped, filled by `CopyBufferRegion` from staging, and read by a compute dispatch through a root UAV at `window GPU VA + offset`. Windows 10 19045, D3D12 10.0.19041.7291, debug layer on. | Adapter | VA bits per resource | 16/24 GiB reserved buffer | Tile below 4 GiB | Tile at or above 4 GiB | |---|---:|---|---|---| | WARP 1.0.22 (app-local) | 40 | created | 13/13 pass | 13/13 pass (24 GiB window, offset 4 GiB) | | RTX 3080 Ti, driver 610.47 | 40 | created | 13/13 pass | mapping has no effect: reads 0, also by copy; no debug message, no wrap to offset mod 4 GiB | | In-box WARP 10.0.19041.7811 | 32 | `E_OUTOFMEMORY` above 4095 MiB | copy lands, but the root-UAV dispatch reads 0 | — | Where the copy goes and when the queue sees updates (all passing cases): - `UpdateTileMappings` followed by `ExecuteCommandLists` on the same queue needs no fence; the copy and dispatch see the new mapping. - A copy submitted before the mapping is discarded (the tile was NULL), and the tile keeps its earlier bytes. - CPU writes to the staging section after a copy are not seen until the next copy. - Remapping to another pool tile and back keeps the first tile's bytes; NULL and unmapped tiles read 0. So one 16/24 GiB window is not portable. Splitting it works: six 4 GiB reserved windows (24 GiB), each with tiles mapped at its start, middle and last 64 KiB from an 18-tile pool, each filled with a distinct pattern and read back by dispatch: | Adapter | Six 4 GiB windows | Result | |---|---|---| | RTX 3080 Ti, driver 610.47 | created, GPU VAs `0x2e0000000` + i × 4 GiB (adjacent here; D3D12 does not promise it) | 18/18 tiles, unmapped tiles read 0 in all six | | WARP 1.0.22 | created, `0x8000000000000000` + i × 2^40 | 18/18, same | | In-box WARP 10.0.19041.7811 (4095 MiB each) | created | 0/18, device removed `0x887A0020` | A B → GPU range table per window therefore covers both working adapters. In-box WARP 19041 fails root-UAV reads into reserved buffers at any size, so a WARP fixture would need WARP 1.0.22 or a newer in-box build. I'd propose that split as the production configuration effect, and put the probe's checks into the repository fixture: success, invalid configuration (no windows created, existing device and mappings untouched), and the ordering controls above.
lukaslw-lab commented 2026-11-24 06:49:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T18:56:32Z.


AI-assisted (Claude Code).

Static read of the main executable (file reads only, nothing executed; RVAs for my local build): after device creation the title maps B's 64 KiB pages to a page pool through a copy queue, and maps pages from the same pool into A for the CPU. This is the later GPU-side operation on B.

Step Observation Where (RVA)
Pool XMemAllocatePhysicalPages for size / 64 KiB pages, mapped into a third reservation P (0x23/0x2004) with XMemMapPhysicalPages range setup 0x1e6c110
Register device->vtbl[+0x250](P, page_count, &out), HRESULT, int 3 on failure 0x1e6c2bb
Queue device->vtbl[+0x40] with IID ID3D12CommandQueue and desc {Type 3 (COPY), priority 0, flags 0, node mask 1} 0x1e6c2ef
CPU view per batch, free pool pages are scatter-mapped into A with XMemMapPhysicalPagesScatter 0xf2c470
GPU view the same batch builds entries {B + page << 16, page count, records} with 12-byte records {1, pool page index, 1} and calls copy_queue->vtbl[+0xF8](count, entries, P, …) 0xf2cc7f

The batch code runs before a DirectStorage queue submit (XCRDAPI.dll!DStorageGetFactory). The earlier +0x250 call on a DirectStorage wrapper object is a different call: it only records (kind, A address, 64 KiB-rounded size) in that batch.

Reading:

  • The 12-byte records have the shape of D3D12's tile-range data (range flag, heap offset in tiles, tile count), keyed by a GPU address in B. On desktop the same structure is a reserved resource for B, a tile pool for P, and UpdateTileMappings on a queue. My window probe measured exactly that, including the ordering: a mapping update is visible to later work on the same queue without a fence.
  • One difference stays: on the console A and B appear to share the physical page (both sides take their page from the same pool slot in the same loop). On desktop the tile pool cannot be the shared CPU heap (D3D12 debug error 493 in the test reported on #870), so a copy from the A-side page is still needed.
  • D3D12ConfigureVirtualMemoryX's own effect is still inferred. The likeliest reading is that it reserves the GPU virtual range that B's reservation later occupies, sized by the 3 or 4 sample. That fits the proposed production effect: on success, reserve the B windows (at most 4 GiB each) for the device; on refusal, reserve nothing.

The +0x250 and +0xF8 slots are past the desktop vtables, so their exact signatures are open; only the argument shapes above are observed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110870659 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7110870659). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-23T18:56:32Z. --- _AI-assisted (Claude Code)._ Static read of the main executable (file reads only, nothing executed; RVAs for my local build): after device creation the title maps B's 64 KiB pages to a page pool **through a copy queue**, and maps pages from the same pool into A for the CPU. This is the later GPU-side operation on B. | Step | Observation | Where (RVA) | |---|---|---| | Pool | `XMemAllocatePhysicalPages` for `size / 64 KiB` pages, mapped into a third reservation P (`0x23`/`0x2004`) with `XMemMapPhysicalPages` | range setup `0x1e6c110` | | Register | `device->vtbl[+0x250](P, page_count, &out)`, HRESULT, `int 3` on failure | `0x1e6c2bb` | | Queue | `device->vtbl[+0x40]` with IID `ID3D12CommandQueue` and desc `{Type 3 (COPY), priority 0, flags 0, node mask 1}` | `0x1e6c2ef` | | CPU view | per batch, free pool pages are scatter-mapped into A with `XMemMapPhysicalPagesScatter` | `0xf2c470` | | GPU view | the same batch builds entries `{B + page << 16, page count, records}` with 12-byte records `{1, pool page index, 1}` and calls `copy_queue->vtbl[+0xF8](count, entries, P, …)` | `0xf2cc7f` | The batch code runs before a DirectStorage queue submit (`XCRDAPI.dll!DStorageGetFactory`). The earlier `+0x250` call on a DirectStorage wrapper object is a different call: it only records `(kind, A address, 64 KiB-rounded size)` in that batch. Reading: - The 12-byte records have the shape of D3D12's tile-range data (range flag, heap offset in tiles, tile count), keyed by a GPU address in B. On desktop the same structure is a reserved resource for B, a tile pool for P, and `UpdateTileMappings` on a queue. My [window probe](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7110193400) measured exactly that, including the ordering: a mapping update is visible to later work on the same queue without a fence. - One difference stays: on the console A and B appear to share the physical page (both sides take their page from the same pool slot in the same loop). On desktop the tile pool cannot be the shared CPU heap (D3D12 debug error 493 in the test reported on #870), so a copy from the A-side page is still needed. - `D3D12ConfigureVirtualMemoryX`'s own effect is still inferred. The likeliest reading is that it reserves the GPU virtual range that B's reservation later occupies, sized by the 3 or 4 sample. That fits the proposed production effect: on success, reserve the B windows (at most 4 GiB each) for the device; on refusal, reserve nothing. The `+0x250` and `+0xF8` slots are past the desktop vtables, so their exact signatures are open; only the argument shapes above are observed.
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:49Z.


The latest local startup reached the pre-device configuration and moved on to memory allocation. It still stops before the actual device call. In a separate source-built fixture the default Device11 block and first DIRECT queue succeeded, while nondefault queue-ring settings were refused.

@lukaslw-lab, please keep your sparse-range work and the device/queue evidence linked here. The next independent check is a source-built configure → create device → create first DIRECT queue sequence. Check that the resource address remains usable and that a rejected configuration or queue request leaves the valid state intact. Reuse #912's shifted-window witness where it applies. Report adapter VA limits and capability skips separately, and keep the large reserved-buffer result separate from the default queue result.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7110901314 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7110901314). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T18:57:49Z. --- The latest local startup reached the pre-device configuration and moved on to memory allocation. It still stops before the actual device call. In a separate source-built fixture the default Device11 block and first DIRECT queue succeeded, while nondefault queue-ring settings were refused. @lukaslw-lab, please keep your sparse-range work and the device/queue evidence linked here. The next independent check is a source-built configure → create device → create first DIRECT queue sequence. Check that the resource address remains usable and that a rejected configuration or queue request leaves the valid state intact. Reuse #912's shifted-window witness where it applies. Report adapter VA limits and capability skips separately, and keep the large reserved-buffer result separate from the default queue result.
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:24:01Z.


Claimable follow-up: explicit graphics queue capacity

Extend the existing source-built deferred-device test with a versioned device description that requests a nondefault graphics command-queue capacity. Determine which effects the caller can observe, and exercise creation, more than one submission, fence completion, and cleanup on failure. Use a real Windows queue on hardware and WARP. If a field cannot be represented on Windows, identify the exact rejected category in the test.

This complements the existing sparse-address tests. Please claim the fixture here before opening a PR and link any other work on device or queue creation. Use synthetic input and public declarations.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111549696 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7111549696). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T19:24:01Z. --- ## Claimable follow-up: explicit graphics queue capacity Extend the existing source-built deferred-device test with a versioned device description that requests a nondefault graphics command-queue capacity. Determine which effects the caller can observe, and exercise creation, more than one submission, fence completion, and cleanup on failure. Use a real Windows queue on hardware and WARP. If a field cannot be represented on Windows, identify the exact rejected category in the test. This complements the existing sparse-address tests. Please claim the fixture here before opening a PR and link any other work on device or queue creation. Use synthetic input and public declarations.
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:18:40Z.


Claimable work: distinguish Xbox frame events in a Windows fixture

Use a public Xbox sample or public ABI reference to determine which frame events have distinct scheduling and wait semantics. Link the source for each supported event. A small independent Windows fixture should verify origin timing, a second event only when its contract is established, and rejection or timeout for events that cannot be represented. Record window/display requirements separately from headless timing, and include a control demonstrating cancellation or no early completion.

This task covers source-built timing and event behavior. The main startup integration is handled separately. Please claim here and link any related work before opening a PR. Use no game code, packages or SDK binaries in submissions.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112888299 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7112888299). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T20:18:40Z. --- ## Claimable work: distinguish Xbox frame events in a Windows fixture Use a public Xbox sample or public ABI reference to determine which frame events have distinct scheduling and wait semantics. Link the source for each supported event. A small independent Windows fixture should verify origin timing, a second event only when its contract is established, and rejection or timeout for events that cannot be represented. Record window/display requirements separately from headless timing, and include a control demonstrating cancellation or no early completion. This task covers source-built timing and event behavior. The main startup integration is handled separately. Please claim here and link any related work before opening a PR. Use no game code, packages or SDK binaries in submissions.
Jess-Doit commented 2026-11-24 06:49:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T20:18:45Z.


I’ll take the independent nondefault graphics queue-capacity fixture. Microsoft’s public Xbox sample names GraphicsCommandQueueRingSizeBytes on the device creation request. I’ll check the default deferred device and DIRECT queue on GTX 1060 and Windows 10 in-box WARP, then exercise the capacity request through a source-built fixture and check the exact outcome and failure cleanup. This is separate from #968’s range ownership and #986’s COPY-to-DIRECT remap ordering.

If the deferred-device fixture mentioned above is available on a public branch, please link its revision so I can reuse its request definition. I’ll use public source-built inputs for the checks.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112890210 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7112890210). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T20:18:45Z. --- I’ll take the independent nondefault graphics queue-capacity fixture. Microsoft’s public Xbox sample names GraphicsCommandQueueRingSizeBytes on the device creation request. I’ll check the default deferred device and DIRECT queue on GTX 1060 and Windows 10 in-box WARP, then exercise the capacity request through a source-built fixture and check the exact outcome and failure cleanup. This is separate from #968’s range ownership and #986’s COPY-to-DIRECT remap ordering. If the deferred-device fixture mentioned above is available on a public branch, please link its revision so I can reuse its request definition. I’ll use public source-built inputs for the checks. AI-assisted (Codex).
R0Y00 commented 2026-11-24 06:49:38 +00:00 (Migrated from github.com)
Author
Contributor

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


#986 has merged at 2f2893f0 after both Windows and both Linux checks passed. The separate source-built queue-ordering check is available on main. I reran cd9ff65 under Windows 11 26200.9974 on in-box WARP and RTX 4060 Laptop. Both matched 16,384 words before and after the remap, and the early read differed from all 16,384 expected remapped words. Keeping the old physical tile made the ordered read fail all 16,384 words on each adapter. The check uses a COPY fence signaled after the remap and a DIRECT wait before the second read. #968 still owns the production window range and its cleanup. The independent nondefault queue-capacity claim also stays open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112507415 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7112507415). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T20:04:07Z. --- #986 has merged at 2f2893f0 after both Windows and both Linux checks passed. The separate source-built queue-ordering check is available on main. I reran cd9ff65 under Windows 11 26200.9974 on in-box WARP and RTX 4060 Laptop. Both matched 16,384 words before and after the remap, and the early read differed from all 16,384 expected remapped words. Keeping the old physical tile made the ordered read fail all 16,384 words on each adapter. The check uses a COPY fence signaled after the remap and a DIRECT wait before the second read. #968 still owns the production window range and its cleanup. The independent nondefault queue-capacity claim also stays open.
Jess-Doit commented 2026-11-24 06:49:38 +00:00 (Migrated from github.com)
Author
Contributor

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


Windows 10 check for the claimed queue-capacity slice at 2f2893f, MSVC 19.44 x64, SDK 10.0.26100. GTX 1060 (32.0.15.6094) and in-box WARP (10.0.19041.5794) both passed in Debug and Release. The default desktop shim gave us a real DIRECT queue. On the same queue, two distinct 16-word copies matched their readbacks and completed fence values 1 and 2 with zero D3D12 debug warnings or errors.

Between the copies, I tried two synthetic versioned blocks, one with zero capacity and one with 2 MiB. Current D3D12XboxCreateDevice rejects any non-null parameter block, so both returned E_INVALIDARG at device creation, cleared the output and left the input intact. Replacing the nondefault block pointer with null returned a device and failed the refusal assertion. This verifies the existing whole-block gate and queue recovery.

Microsoft's sample gives the source field name GraphicsCommandQueueRingSizeBytes. To test that field independently, I need the referenced deferred-device fixture or an equivalent public request definition and a versioned default input that the fixture accepts. I have saved a minimal reproduction and the two-submission baseline. Microsoft sample

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7113067186 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7113067186). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T20:26:32Z. --- Windows 10 check for the claimed queue-capacity slice at `2f2893f`, MSVC 19.44 x64, SDK 10.0.26100. GTX 1060 (32.0.15.6094) and in-box WARP (10.0.19041.5794) both passed in Debug and Release. The default desktop shim gave us a real DIRECT queue. On the same queue, two distinct 16-word copies matched their readbacks and completed fence values 1 and 2 with zero D3D12 debug warnings or errors. Between the copies, I tried two synthetic versioned blocks, one with zero capacity and one with 2 MiB. Current `D3D12XboxCreateDevice` rejects any non-null parameter block, so both returned `E_INVALIDARG` at device creation, cleared the output and left the input intact. Replacing the nondefault block pointer with null returned a device and failed the refusal assertion. This verifies the existing whole-block gate and queue recovery. Microsoft's sample gives the source field name `GraphicsCommandQueueRingSizeBytes`. To test that field independently, I need the referenced deferred-device fixture or an equivalent public request definition and a versioned default input that the fixture accepts. I have saved a minimal reproduction and the two-submission baseline. [Microsoft sample](https://github.com/microsoft/Xbox-GDK-Samples/blob/41b5942c4fba910332123070e51827761f6040fd/Samples/Live/InGameStore/DeviceResources.cpp) AI-assisted (Codex).
R0Y00 commented 2026-11-24 06:49:38 +00:00 (Migrated from github.com)
Author
Contributor

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


Priority reviews for volunteers

The shortest path to helping startup is to take one independent item below and reply with your adapter, driver and exact test result.

  1. Review #968, GPU address reservation. Check window boundaries, partial-failure cleanup, and what hardware and WARP can reserve. This is the production range work.
  2. Review #986, COPY → DIRECT ordering. Check that the negative control detects the old tile and that the DIRECT queue waits for the COPY remap. This is the independent timing test.
  3. Claim the frame-event research above. Bring a public reference and a source-built fixture that distinguishes the events by when they complete and how the wait uses a token.

One review or reproduction per volunteer is enough. Use source-built inputs. The main executable has reached frame-event dispatch in a local diagnostic run. First frame and gameplay are still pending.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7113101411 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7113101411). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T20:27:58Z. --- ## Priority reviews for volunteers The shortest path to helping startup is to take one independent item below and reply with your adapter, driver and exact test result. 1. **Review #968, GPU address reservation.** Check window boundaries, partial-failure cleanup, and what hardware and WARP can reserve. This is the production range work. 2. **Review #986, COPY → DIRECT ordering.** Check that the negative control detects the old tile and that the DIRECT queue waits for the COPY remap. This is the independent timing test. 3. **Claim the frame-event research above.** Bring a public reference and a source-built fixture that distinguishes the events by when they complete and how the wait uses a token. One review or reproduction per volunteer is enough. Use source-built inputs. The main executable has reached frame-event dispatch in a local diagnostic run. First frame and gameplay are still pending.
R0Y00 commented 2026-11-24 06:49:40 +00:00 (Migrated from github.com)
Author
Contributor

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


Thanks for the two-submission result. This gives us a GTX 1060 and in-box WARP baseline for DIRECT queue execution and fence values 1 and 2. The current shim rejects the whole non-null request, so this run cannot distinguish the queue-capacity field yet. Please keep the same accepted versioned request fixed in the next comparison and change only its documented capacity field. Compare the two payloads and fence completions before and after an invalid-capacity attempt.

Review update: #968 merged the bounded configuration recorder and a separately owned GPU range. A configured device still releases normally; connecting the range to device creation needs an owner and fence-complete shutdown. #997 independently verifies the Win32 interior placeholder split. Those results leave the queue-capacity and frame-event questions open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7113277589 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7113277589). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T20:35:23Z. --- Thanks for the two-submission result. This gives us a GTX 1060 and in-box WARP baseline for DIRECT queue execution and fence values 1 and 2. The current shim rejects the whole non-null request, so this run cannot distinguish the queue-capacity field yet. Please keep the same accepted versioned request fixed in the next comparison and change only its documented capacity field. Compare the two payloads and fence completions before and after an invalid-capacity attempt. Review update: #968 merged the bounded configuration recorder and a separately owned GPU range. A configured device still releases normally; connecting the range to device creation needs an owner and fence-complete shutdown. #997 independently verifies the Win32 interior placeholder split. Those results leave the queue-capacity and frame-event questions open.
Holastor commented 2026-11-24 06:49:40 +00:00 (Migrated from github.com)
Author
Contributor

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


I would like to claim the Xbox frame-event research and timing fixture (item 3).

Public references

  • Microsoft Xbox-GDK-Samples: FramePacing & Simple120Hz (Samples/Graphics/FramePacing, Samples/Graphics/Simple120Hz)
  • Microsoft DirectXTK12 for Xbox (DeviceResources.cpp Xbox implementation of WaitFrameEventX, ScheduleFrameEventX, SetFrameIntervalX)
  • Microsoft Learn GDK Frame Pacing Reference:
    • ID3D12Device::WaitFrameEventX(D3D12XBOX_FRAME_EVENT eventId, UINT timeoutInMs, HANDLE hEvent, D3D12XBOX_WAIT_FRAME_EVENT_FLAGS flags, D3D12XBOX_FRAME_PIPELINE_TOKEN *pFramePipelineToken)
    • ID3D12Device::ScheduleFrameEventX(UINT Event, UINT OffsetUs, HANDLE EventHandle, UINT Flags)
    • ID3D12Device::SetFrameIntervalX(IDXGIOutput* pOutput, UINT interval, UINT period, D3D12XBOX_FRAME_INTERVAL_FLAGS flags)

Proposed fixture plan

  1. Event semantics & timing:
    • Establish D3D12XBOX_FRAME_EVENT_ORIGIN (value 0) as the primary frame boundary event that synchronizes CPU cadence to frame intervals and produces a monotonically advancing 64-bit pipeline token (D3D12XBOX_FRAME_PIPELINE_TOKEN).
    • Separate headless timing (using high-resolution waitable timer / QPC cadence when no IDXGIOutput is bound) from display-bound cadence.
  2. Refusal & timeout controls:
    • Reject unrepresented / unsupported event IDs with E_INVALIDARG, verifying output token pointers are not modified.
    • Negative control demonstrating no early completion: verify that calling WaitFrameEventX with a timeout smaller than the pending origin interval returns a timeout status (WAIT_TIMEOUT) and leaves the token untouched.
    • Verify optional OS HANDLE signaling upon event origin.
  3. Fixture structure:
    • Controlled recording provider (tests/cpu/frame_events_provider.cpp, .def) tracking scheduling, intervals, wait counts, and token generation.
    • Source-built MASM caller (tests/cpu/frame_events_caller.asm) exercising the origin wait, token advancement, timeout refusal, and unsupported event rejection.
    • Python test runner (tests/cpu/frame_events_check.py) comparing native Windows execution, pe_map, faulty provider control (e.g. eager completion / clobber), and withholding controls.

All code will be source-built using only public GDK sample signatures with zero game code or closed SDK binaries.

AI-assisted (Antigravity).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7113864804 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7113864804). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T21:00:22Z. --- I would like to claim the Xbox frame-event research and timing fixture (item 3). ### Public references - [Microsoft Xbox-GDK-Samples: FramePacing & Simple120Hz](https://github.com/microsoft/Xbox-GDK-Samples) (`Samples/Graphics/FramePacing`, `Samples/Graphics/Simple120Hz`) - [Microsoft DirectXTK12 for Xbox](https://github.com/microsoft/DirectXTK12) (`DeviceResources.cpp` Xbox implementation of `WaitFrameEventX`, `ScheduleFrameEventX`, `SetFrameIntervalX`) - [Microsoft Learn GDK Frame Pacing Reference](https://learn.microsoft.com/en-us/gaming/gdk/): - `ID3D12Device::WaitFrameEventX(D3D12XBOX_FRAME_EVENT eventId, UINT timeoutInMs, HANDLE hEvent, D3D12XBOX_WAIT_FRAME_EVENT_FLAGS flags, D3D12XBOX_FRAME_PIPELINE_TOKEN *pFramePipelineToken)` - `ID3D12Device::ScheduleFrameEventX(UINT Event, UINT OffsetUs, HANDLE EventHandle, UINT Flags)` - `ID3D12Device::SetFrameIntervalX(IDXGIOutput* pOutput, UINT interval, UINT period, D3D12XBOX_FRAME_INTERVAL_FLAGS flags)` ### Proposed fixture plan 1. **Event semantics & timing**: - Establish `D3D12XBOX_FRAME_EVENT_ORIGIN` (value `0`) as the primary frame boundary event that synchronizes CPU cadence to frame intervals and produces a monotonically advancing 64-bit pipeline token (`D3D12XBOX_FRAME_PIPELINE_TOKEN`). - Separate headless timing (using high-resolution waitable timer / QPC cadence when no `IDXGIOutput` is bound) from display-bound cadence. 2. **Refusal & timeout controls**: - Reject unrepresented / unsupported event IDs with `E_INVALIDARG`, verifying output token pointers are not modified. - Negative control demonstrating no early completion: verify that calling `WaitFrameEventX` with a timeout smaller than the pending origin interval returns a timeout status (`WAIT_TIMEOUT`) and leaves the token untouched. - Verify optional OS `HANDLE` signaling upon event origin. 3. **Fixture structure**: - Controlled recording provider (`tests/cpu/frame_events_provider.cpp`, `.def`) tracking scheduling, intervals, wait counts, and token generation. - Source-built MASM caller (`tests/cpu/frame_events_caller.asm`) exercising the origin wait, token advancement, timeout refusal, and unsupported event rejection. - Python test runner (`tests/cpu/frame_events_check.py`) comparing native Windows execution, `pe_map`, faulty provider control (e.g. eager completion / clobber), and withholding controls. All code will be source-built using only public GDK sample signatures with zero game code or closed SDK binaries. _AI-assisted (Antigravity)._
R0Y00 commented 2026-11-24 06:49:40 +00:00 (Migrated from github.com)
Author
Contributor

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


Please take the source-built frame-event fixture. Microsoft's public sample gives us the order SetFrameIntervalX → ScheduleFrameEventX(ORIGIN) → WaitFrameEventX(ORIGIN), then carries the returned token into PresentX. Keep that as the first supported call shape. The sample uses an infinite wait and a null event handle. The exact timeout status, token representation, HANDLE meaning, and any second event require separate evidence. For the recording provider, label timeout/refusal and the seeded token as fixture behavior.

Please drive the first timing check with a controlled tick: timeout before a tick leaves the output sentinel unchanged, signaling the scheduled tick delivers a token, and the next wait stays pending until the next tick. Have a fault control that releases the first wait early or overwrites the sentinel. Run the same source-built caller under Windows and pe_map. Save wall-clock, display-bound and second-event measurements for the separate evidence, so a loaded CI machine can still run this fixture reliably.

Microsoft sample, pinned · Microsoft FramePacing sample

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7113917112 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7113917112). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T21:02:37Z. --- Please take the source-built frame-event fixture. Microsoft's public sample gives us the order SetFrameIntervalX → ScheduleFrameEventX(ORIGIN) → WaitFrameEventX(ORIGIN), then carries the returned token into PresentX. Keep that as the first supported call shape. The sample uses an infinite wait and a null event handle. The exact timeout status, token representation, HANDLE meaning, and any second event require separate evidence. For the recording provider, label timeout/refusal and the seeded token as fixture behavior. Please drive the first timing check with a controlled tick: timeout before a tick leaves the output sentinel unchanged, signaling the scheduled tick delivers a token, and the next wait stays pending until the next tick. Have a fault control that releases the first wait early or overwrites the sentinel. Run the same source-built caller under Windows and pe_map. Save wall-clock, display-bound and second-event measurements for the separate evidence, so a loaded CI machine can still run this fixture reliably. [Microsoft sample, pinned](https://github.com/microsoft/Xbox-GDK-Samples/blob/41b5942c4fba910332123070e51827761f6040fd/Samples/Live/InGameStore/DeviceResources.cpp) · [Microsoft FramePacing sample](https://github.com/microsoft/Xbox-GDK-Samples/blob/main/Samples/Graphics/FramePacing/readme.md)
R0Y00 commented 2026-11-24 06:49:40 +00:00 (Migrated from github.com)
Author
Contributor

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


@Leyukaka, if you have time for an independent hardware check, #1003 has landed. On current main, please run ctest --preset release --no-tests=error -R '^vm_(copy_queue|page_provenance)_hardware$' -V after building vm_copy_queue_check. The page-provenance case puts two backing sections in reverse order, copies across the boundary, then checks that CPU writes are visible only after re-upload. Please post your adapter, driver, Windows build and the three mismatch counts. Any capability skip is useful if you include its diagnostic. Jess-Doit is already handling the separate queue-capacity claim.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114009119 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7114009119). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T21:06:29Z. --- @Leyukaka, if you have time for an independent hardware check, #1003 has landed. On current main, please run `ctest --preset release --no-tests=error -R '^vm_(copy_queue|page_provenance)_hardware$' -V` after building `vm_copy_queue_check`. The page-provenance case puts two backing sections in reverse order, copies across the boundary, then checks that CPU writes are visible only after re-upload. Please post your adapter, driver, Windows build and the three mismatch counts. Any capability skip is useful if you include its diagnostic. Jess-Doit is already handling the separate queue-capacity claim.
Holastor commented 2026-11-24 06:49:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T21:16:58Z.


The claimed source-built frame-events timing and wait fixture has been implemented in #1014, aligned strictly with the feedback above:

  • Public sample sequence: Exercises SetFrameIntervalX → ScheduleFrameEventX(ORIGIN) → WaitFrameEventX(ORIGIN) with INFINITE wait and a null event handle per InGameStore/DeviceResources.cpp.
  • Controlled tick timing: Timing checks are driven by a scheduled tick rather than wall-clock timers. A wait before a tick leaves the output sentinel unchanged (WAIT_TIMEOUT), signaling the scheduled tick delivers the token, and the next wait stays pending until the next tick.
  • Negative and fault controls: Unrepresented event IDs return E_INVALIDARG with sentinel preserved. cpu_frame_events_provider_faulty simulates premature release or sentinel clobber, caught and failed by caller assertions.
  • Multi-loader verification: Verified natively under Windows (with and without live worker) and mapped under pe_map (exit 0x874). Withholding d3d12_xs.dll halts pe_map at import resolution (STATUS["unresolved"]).
  • Qualification: Fixture policies (seeded monotonic integer tokens, WAIT_TIMEOUT, E_INVALIDARG) are explicitly labeled as requiring separate evidence.

AI-assisted (Antigravity).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114250300 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7114250300). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T21:16:58Z. --- The claimed source-built frame-events timing and wait fixture has been implemented in #1014, aligned strictly with the feedback above: - **Public sample sequence**: Exercises `SetFrameIntervalX → ScheduleFrameEventX(ORIGIN) → WaitFrameEventX(ORIGIN)` with `INFINITE` wait and a null event handle per `InGameStore/DeviceResources.cpp`. - **Controlled tick timing**: Timing checks are driven by a scheduled tick rather than wall-clock timers. A wait before a tick leaves the output sentinel unchanged (`WAIT_TIMEOUT`), signaling the scheduled tick delivers the token, and the next wait stays pending until the next tick. - **Negative and fault controls**: Unrepresented event IDs return `E_INVALIDARG` with sentinel preserved. `cpu_frame_events_provider_faulty` simulates premature release or sentinel clobber, caught and failed by caller assertions. - **Multi-loader verification**: Verified natively under Windows (with and without live worker) and mapped under `pe_map` (exit `0x874`). Withholding `d3d12_xs.dll` halts `pe_map` at import resolution (`STATUS["unresolved"]`). - **Qualification**: Fixture policies (seeded monotonic integer tokens, `WAIT_TIMEOUT`, `E_INVALIDARG`) are explicitly labeled as requiring separate evidence. _AI-assisted (Antigravity)._
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:29:47Z.


For the AMD or Intel hardware check on #1017, build vm_copy_queue_check at 979c369 and run vm_copy_queue_check.exe raw_srv_hardware from the build directory. This source-built case reads 1,024 words through a raw SRV across a 64 KiB boundary. Both valid descriptors should match their own expected words, and the descriptor shifted by four elements should differ from all 1,024 original words. Please post the adapter, driver, Windows build, debug-layer status, and the readback counts or skip diagnostic. RTX 4060 Laptop and WARP are the existing baseline. The RTX descriptor-heap capacity check remains separate.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114537077 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7114537077). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T21:29:47Z. --- For the AMD or Intel hardware check on #1017, build `vm_copy_queue_check` at `979c369` and run `vm_copy_queue_check.exe raw_srv_hardware` from the build directory. This source-built case reads 1,024 words through a raw SRV across a 64 KiB boundary. Both valid descriptors should match their own expected words, and the descriptor shifted by four elements should differ from all 1,024 original words. Please post the adapter, driver, Windows build, debug-layer status, and the readback counts or skip diagnostic. RTX 4060 Laptop and WARP are the existing baseline. The RTX descriptor-heap capacity check remains separate.
R0Y00 commented 2026-11-24 06:49:43 +00:00 (Migrated from github.com)
Author
Contributor

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


One open source-built check for #874 is a raw UAV store through two distinct logical address windows. #553 already covers direct DWORD access in one bound window, #721 covers the fixed-profile compute-store lowering, and #1017 checks SRV readback. Please build on those tests if you want to take this slice.

Use distinct sentinel data in two backing ranges. Dispatch a scalar DWORD store and a four-DWORD store through explicitly bound windows, then read back both full ranges. Check the declared alignment and require the entire 16-byte vector to fit in its window. An offset near the boundary, a misaligned address and an unmapped window should fail before dispatch and preserve both ranges. Swap the two window bindings as a separate negative control. RTX/WARP and an independent AMD or Intel result are useful. Please reply here if taking the fixture so we can keep it to one implementation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114778579 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7114778579). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T21:40:51Z. --- One open source-built check for #874 is a raw UAV store through two distinct logical address windows. #553 already covers direct DWORD access in one bound window, #721 covers the fixed-profile compute-store lowering, and #1017 checks SRV readback. Please build on those tests if you want to take this slice. Use distinct sentinel data in two backing ranges. Dispatch a scalar DWORD store and a four-DWORD store through explicitly bound windows, then read back both full ranges. Check the declared alignment and require the entire 16-byte vector to fit in its window. An offset near the boundary, a misaligned address and an unmapped window should fail before dispatch and preserve both ranges. Swap the two window bindings as a separate negative control. RTX/WARP and an independent AMD or Intel result are useful. Please reply here if taking the fixture so we can keep it to one implementation.
zohaiblazuli commented 2026-11-24 06:49:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by zohaiblazuli on 2026-11-23T21:50:12Z.


I'll take the raw UAV store through two logical address windows.

Plan: build on #1017. I'll add a raw UAV resolver next to make_raw_buffer_srv and a raw_uav_{hardware,warp} mode in vm_copy_queue_check, with #553 and #721 as references.

  • Two backing buffers, each filled with its own sentinel pattern, mapped by two explicit logical windows.
  • A scalar DWORD store and a four-DWORD store go through the resolved bindings. Both full ranges are read back, so the only words that change are the target words in the intended window.
  • The resolver checks the declared alignment (4 bytes for the scalar store, 16 bytes for the vector store) and requires the whole 16-byte vector to fit in its window. An offset near the boundary, a misaligned address and an unmapped window are refused before anything is recorded, and the test checks that both ranges are unchanged afterwards.
  • Swapping the two window bindings is a separate negative control. The writes land in the other range, and the intended range keeps its sentinels.

Environment: Windows 11 build 26300, MSVC 19.50 x64. I'll report results on an RTX 3060, an Intel UHD Graphics 770 and in-box WARP. The PR will say it depends on #1017.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114981343 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7114981343). Originally posted by [zohaiblazuli](https://github.com/zohaiblazuli) on 2026-11-23T21:50:12Z. --- I'll take the raw UAV store through two logical address windows. **Plan:** build on #1017. I'll add a raw UAV resolver next to `make_raw_buffer_srv` and a `raw_uav_{hardware,warp}` mode in `vm_copy_queue_check`, with #553 and #721 as references. - Two backing buffers, each filled with its own sentinel pattern, mapped by two explicit logical windows. - A scalar DWORD store and a four-DWORD store go through the resolved bindings. Both full ranges are read back, so the only words that change are the target words in the intended window. - The resolver checks the declared alignment (4 bytes for the scalar store, 16 bytes for the vector store) and requires the whole 16-byte vector to fit in its window. An offset near the boundary, a misaligned address and an unmapped window are refused before anything is recorded, and the test checks that both ranges are unchanged afterwards. - Swapping the two window bindings is a separate negative control. The writes land in the other range, and the intended range keeps its sentinels. **Environment:** Windows 11 build 26300, MSVC 19.50 x64. I'll report results on an RTX 3060, an Intel UHD Graphics 770 and in-box WARP. The PR will say it depends on #1017.
zohaiblazuli commented 2026-11-24 06:49:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by zohaiblazuli on 2026-11-23T21:59:14Z.


Intel hardware check for #1017 (raw_srv_hardware):

  • Adapter: Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7092, selected with XBOX2WINDOWS_ADAPTER=Intel
  • System: Windows 11 build 26300.10075, MSVC 19.50.35728 x64, Windows SDK DXC
  • Debug layer: off (the harness doesn't enable it)

From the build directory:

.\vm_copy_queue_check.exe raw_srv_hardware
device adapter 8086:a780 Intel(R) UHD Graphics 770 SRV cross-page mismatches=0 shifted mismatches=0 negative=1024/1024

Exit 0, no skip. I ran it twice:

  1. With #1017's 979c369 as the base.
  2. With the same commit rebased onto main at 6a09e87. This is the first commit of #1025, where the only change is resolving the docs/experiments.md conflict.

Both results were identical. Both valid descriptors matched their own expected words, and the descriptor shifted by four elements differed from all 1,024 original words. For comparison, an RTX 3060 (driver 32.0.16.1742) and in-box WARP gave the same counts.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115178745 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7115178745). Originally posted by [zohaiblazuli](https://github.com/zohaiblazuli) on 2026-11-23T21:59:14Z. --- Intel hardware check for #1017 (`raw_srv_hardware`): - **Adapter:** Intel UHD Graphics 770 (`8086:a780`), driver 32.0.101.7092, selected with `XBOX2WINDOWS_ADAPTER=Intel` - **System:** Windows 11 build 26300.10075, MSVC 19.50.35728 x64, Windows SDK DXC - **Debug layer:** off (the harness doesn't enable it) From the build directory: ```powershell .\vm_copy_queue_check.exe raw_srv_hardware ``` ```text device adapter 8086:a780 Intel(R) UHD Graphics 770 SRV cross-page mismatches=0 shifted mismatches=0 negative=1024/1024 ``` Exit 0, no skip. I ran it twice: 1. With #1017's `979c369` as the base. 2. With the same commit rebased onto `main` at `6a09e87`. This is the first commit of #1025, where the only change is resolving the `docs/experiments.md` conflict. Both results were identical. Both valid descriptors matched their own expected words, and the descriptor shifted by four elements differed from all 1,024 original words. For comparison, an RTX 3060 (driver 32.0.16.1742) and in-box WARP gave the same counts.
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:07:05Z.


The existing gpu_alias_lookup_writes fixture already covers global float min/max through aliased GPU addresses, with negative inputs, 256 contenders per result word and a hardware control that drops the CAS retry. The missing narrow check is signed-zero readback. A contributor can extend that fixture here: use +0 and -0 as both initial words and candidates, in both orders, and read the raw bits back. Its current strict-comparison policy keeps the stored word on equality, so document that as the fixture expectation. Also verify that a strictly smaller or larger negative input still wins under contention. Keep the separate strict dynamic-UAV probe and the existing failure counts in #369. Please claim the source-built extension here if interested.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115346547 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7115346547). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T22:07:05Z. --- The existing `gpu_alias_lookup_writes` fixture already covers global float min/max through aliased GPU addresses, with negative inputs, 256 contenders per result word and a hardware control that drops the CAS retry. The missing narrow check is signed-zero readback. A contributor can extend that fixture here: use +0 and -0 as both initial words and candidates, in both orders, and read the raw bits back. Its current strict-comparison policy keeps the stored word on equality, so document that as the fixture expectation. Also verify that a strictly smaller or larger negative input still wins under contention. Keep the separate strict dynamic-UAV probe and the existing failure counts in #369. Please claim the source-built extension here if interested.
zohaiblazuli commented 2026-11-24 06:49:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by zohaiblazuli on 2026-11-23T22:20:43Z.


I'll take the signed-zero readback extension of gpu_alias_lookup_writes described above, unless someone already has it in progress.

Scope:

  • Signed-zero ties. In tests/gpu_alias_writes.hlsl, Replaces uses a strict < or >, and -0.0 < +0.0 is false. So a float min or max between the two zeros must keep the stored word. I'll add records for initial +0/candidate -0 and initial -0/candidate +0, each through both min and max, and compare the raw bits (0x00000000 vs 0x80000000) with the CPU expectation. The fixture will document this as its expectation, not as IEEE minNum behavior.
  • Contention with a strict winner. In each case, a word starts at a signed zero while many contenders, including strictly smaller or larger negative inputs, race on it. The strict winner must still land on the word.
  • Negative control. The existing hardware control that drops the compare-exchange retry must still fail. I'll also check that a candidate that replaces on equality (<=/>=) flips the signed-zero words, so the new records can actually detect that change.
  • docs/experiments.md will get the new record counts. The separate strict dynamic-UAV probe and the #369 failure counts stay as they are.

I'll verify on WARP and an RTX 3060, and on an Intel UHD 770 if the hardware test runs there.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115635435 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7115635435). Originally posted by [zohaiblazuli](https://github.com/zohaiblazuli) on 2026-11-23T22:20:43Z. --- I'll take the signed-zero readback extension of `gpu_alias_lookup_writes` described above, unless someone already has it in progress. **Scope:** - **Signed-zero ties.** In `tests/gpu_alias_writes.hlsl`, `Replaces` uses a strict `<` or `>`, and `-0.0 < +0.0` is false. So a float min or max between the two zeros must keep the stored word. I'll add records for initial `+0`/candidate `-0` and initial `-0`/candidate `+0`, each through both min and max, and compare the raw bits (`0x00000000` vs `0x80000000`) with the CPU expectation. The fixture will document this as its expectation, not as IEEE `minNum` behavior. - **Contention with a strict winner.** In each case, a word starts at a signed zero while many contenders, including strictly smaller or larger negative inputs, race on it. The strict winner must still land on the word. - **Negative control.** The existing hardware control that drops the compare-exchange retry must still fail. I'll also check that a candidate that replaces on equality (`<=`/`>=`) flips the signed-zero words, so the new records can actually detect that change. - `docs/experiments.md` will get the new record counts. The separate strict dynamic-UAV probe and the #369 failure counts stay as they are. I'll verify on WARP and an RTX 3060, and on an Intel UHD 770 if the hardware test runs there.
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:23:31Z.


Thanks, this signed-zero slice is yours. Keep the tie cases separate from the contention cases so both zero bit patterns remain observable. For the negative-only maximum case, seed below the expected winning negative value; a negative candidate cannot replace zero under a strict greater-than comparison. Keep the retry control and the <=/>= tie mutation. Please report WARP and the adapter/driver for each hardware run, with skips separate. This checks our fixture's tie policy; leave NaN or native-instruction behavior to separately evidenced work.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7115693640 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7115693640). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T22:23:31Z. --- Thanks, this signed-zero slice is yours. Keep the tie cases separate from the contention cases so both zero bit patterns remain observable. For the negative-only maximum case, seed below the expected winning negative value; a negative candidate cannot replace zero under a strict greater-than comparison. Keep the retry control and the <=/>= tie mutation. Please report WARP and the adapter/driver for each hardware run, with skips separate. This checks our fixture's tie policy; leave NaN or native-instruction behavior to separately evidenced work.
R0Y00 commented 2026-11-24 06:49:48 +00:00 (Migrated from github.com)
Author
Contributor

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


The synthetic renderer in #1037 reported an OPTIONS19 view-heap value of 1,000,000 on RTX 4060 Laptop (32.0.16.1656) and 2,097,152 on WARP (10.0.26100.9818). Both offscreen draws passed. That query gives a useful starting point for physical-adapter descriptor-window work. Older Tier 3 drivers can still receive larger allocation requests, so please log actual creation results as well as the reported value.

If you want to take the next source-built check, reuse the existing two-submission pattern from #829 with two descriptor windows and distinct output words. Close and execute the first list, signal and observe its fence, then reset, bind the other window, close and submit again. Read both outputs and add a stale-window or omitted-second-submit control. Please claim here and report the adapter, driver, debug-layer status and the first failure or capability skip. Microsoft OPTIONS19 specification

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116042923 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7116042923). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T22:40:22Z. --- The synthetic renderer in #1037 reported an OPTIONS19 view-heap value of 1,000,000 on RTX 4060 Laptop (32.0.16.1656) and 2,097,152 on WARP (10.0.26100.9818). Both offscreen draws passed. That query gives a useful starting point for physical-adapter descriptor-window work. Older Tier 3 drivers can still receive larger allocation requests, so please log actual creation results as well as the reported value. If you want to take the next source-built check, reuse the existing two-submission pattern from #829 with two descriptor windows and distinct output words. Close and execute the first list, signal and observe its fence, then reset, bind the other window, close and submit again. Read both outputs and add a stale-window or omitted-second-submit control. Please claim here and report the adapter, driver, debug-layer status and the first failure or capability skip. [Microsoft OPTIONS19 specification](https://microsoft.github.io/DirectX-Specs/d3d/VulkanOn12.html#sampler-descriptor-heap-size-increase)
Jess-Doit commented 2026-11-24 06:49:51 +00:00 (Migrated from github.com)
Author
Contributor

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


I’ll take the shader-visible descriptor-window fixture requested above. I’ll reuse #829’s fence sequence on the GTX 1060 and Windows 10 in-box WARP: submit with window A, observe its fence, reset, bind window B, and verify both distinct output words. A stale-window run will deliberately bind A on the second submission. I’ll record the reported view-heap limit when available, the actual heap creation results, and D3D12 debug-layer status.

This covers descriptor-table binding across submissions. The existing raw SRV/UAV address-window work in #1017 and #1025 keeps its current scope.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116904510 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7116904510). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T23:23:45Z. --- I’ll take the shader-visible descriptor-window fixture requested above. I’ll reuse #829’s fence sequence on the GTX 1060 and Windows 10 in-box WARP: submit with window A, observe its fence, reset, bind window B, and verify both distinct output words. A stale-window run will deliberately bind A on the second submission. I’ll record the reported view-heap limit when available, the actual heap creation results, and D3D12 debug-layer status. This covers descriptor-table binding across submissions. The existing raw SRV/UAV address-window work in #1017 and #1025 keeps its current scope. AI-assisted (Codex).
Jess-Doit commented 2026-11-24 06:49:52 +00:00 (Migrated from github.com)
Author
Contributor

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


The two-submission descriptor-window fixture is in #1054 at 7239f86. On Windows 10 22H2 19045.6456, both the GTX 1060 6 GB (32.0.15.6094) and in-box WARP (10.0.19041.5794) returned S_OK when creating a shader-visible heap with 1,000,000 CBV/SRV/UAV descriptors. Neither reported an OPTIONS19 view-heap size.

  • Fence 1 with slot 0 read 13579bdf,a5a5a5a5.
  • Fence 2 with slot 999,999 read 13579bdf,2468ace0.
  • The stale control bound slot 0 again for fence 2 and read 13579bdf,13579bdf.

Debug and Release each passed nine focused tests with zero skips. The D3D12 debug layer was enabled, with zero warnings and errors in the new cases. The PR includes the commands and generated inputs.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117109534 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117109534). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T23:34:09Z. --- The two-submission descriptor-window fixture is in #1054 at `7239f86`. On Windows 10 22H2 `19045.6456`, both the GTX 1060 6 GB (`32.0.15.6094`) and in-box WARP (`10.0.19041.5794`) returned `S_OK` when creating a shader-visible heap with 1,000,000 CBV/SRV/UAV descriptors. Neither reported an OPTIONS19 view-heap size. - Fence 1 with slot 0 read `13579bdf,a5a5a5a5`. - Fence 2 with slot 999,999 read `13579bdf,2468ace0`. - The stale control bound slot 0 again for fence 2 and read `13579bdf,13579bdf`. Debug and Release each passed nine focused tests with zero skips. The D3D12 debug layer was enabled, with zero warnings and errors in the new cases. The PR includes the commands and generated inputs. AI-assisted (Codex).
R0Y00 commented 2026-11-24 06:49:53 +00:00 (Migrated from github.com)
Author
Contributor

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


Jess's two-submission fixture can stay focused on window rebinding and the stale-window control. For the follow-up on descriptor paging, XCL's on-demand page allocation gives us a reference: use two logical heaps, copy distinct descriptors across a page boundary, then bind and read from both heaps through the same shared shader-visible heap. A stale-page or swapped-heap control should produce the wrong sentinel. Report the actual heap allocation result and the readback separately. XCL descriptor paging

If you are working on the queue or presentation path, a separate source-built lifetime check can verify that the source stays live through the copy fence and that a wait timeout leaves its allocator unavailable for reset. XCL frame and texture handling

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117289535 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117289535). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T23:43:19Z. --- Jess's two-submission fixture can stay focused on window rebinding and the stale-window control. For the follow-up on descriptor paging, XCL's on-demand page allocation gives us a reference: use two logical heaps, copy distinct descriptors across a page boundary, then bind and read from both heaps through the same shared shader-visible heap. A stale-page or swapped-heap control should produce the wrong sentinel. Report the actual heap allocation result and the readback separately. [XCL descriptor paging](https://github.com/ivall/xcl/pull/84) If you are working on the queue or presentation path, a separate source-built lifetime check can verify that the source stays live through the copy fence and that a wait timeout leaves its allocator unavailable for reset. [XCL frame and texture handling](https://github.com/ivall/xcl/pull/69)
R0Y00 commented 2026-11-24 06:49:54 +00:00 (Migrated from github.com)
Author
Contributor

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


#1054 merged as 1a6425e4. It observes both fence values before reuse, verifies both output words after each submission, and reproduces a wrong second word when the earlier descriptor table remains bound. The author verified GTX 1060 and in-box WARP on Windows 10. The independent RTX 4060 Laptop/WARP Release run passed all nine selected CTests. This covers two endpoint bindings in one heap. The cross-page and two-logical-heap checks remain as follow-ups.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117473252 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117473252). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T23:53:27Z. --- #1054 merged as 1a6425e4. It observes both fence values before reuse, verifies both output words after each submission, and reproduces a wrong second word when the earlier descriptor table remains bound. The author verified GTX 1060 and in-box WARP on Windows 10. The independent RTX 4060 Laptop/WARP Release run passed all nine selected CTests. This covers two endpoint bindings in one heap. The cross-page and two-logical-heap checks remain as follow-ups.
Jess-Doit commented 2026-11-24 06:49:55 +00:00 (Migrated from github.com)
Author
Contributor

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


I’ll take the two-logical-heap paging fixture from the follow-up above. I’ll start from merged #1054 and test a two-descriptor copy from slots 255 to 256 in each logical heap. Interleaving page allocation will put adjacent logical pages in separate regions of one shader-visible heap. The four readbacks and a swapped-heap control will be checked on the GTX 1060 and Windows 10 in-box WARP. I’ll report heap creation and GPU readback separately.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117870878 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117870878). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-24T00:15:15Z. --- I’ll take the two-logical-heap paging fixture from the follow-up above. I’ll start from merged #1054 and test a two-descriptor copy from slots 255 to 256 in each logical heap. Interleaving page allocation will put adjacent logical pages in separate regions of one shader-visible heap. The four readbacks and a swapped-heap control will be checked on the GTX 1060 and Windows 10 in-box WARP. I’ll report heap creation and GPU readback separately. AI-assisted (Codex).
Jess-Doit commented 2026-11-24 06:49:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-24T00:21:51Z.


The two-logical-heap paging fixture is in #1074 at 232103a0. I ran Debug and Release on Windows 10 19045.6456, GTX 1060 6 GB (32.0.15.6094) and in-box WARP (10.0.19041.5794).

  • Heap creation: both returned S_OK for the 1,024-slot shader-visible heap.
  • Publication: the two ranges at logical slots 255 and 256 each split into two copies. The physical slots were 255,512 for the first heap and 511,768 for the second. Four pages became resident, leaving both untouched pages unmapped.
  • Readback: a00100ff,a0010100,b00200ff,b0020100. The swapped control exchanged both pairs while using the same shared heap.

Each preset passed all 13 selected tests. There were zero skips, warnings or errors from the D3D12 debug layer in the paging cases. The PR contains the commands and generated inputs.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117989966 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117989966). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-24T00:21:51Z. --- The two-logical-heap paging fixture is in #1074 at `232103a0`. I ran Debug and Release on Windows 10 `19045.6456`, GTX 1060 6 GB (`32.0.15.6094`) and in-box WARP (`10.0.19041.5794`). - Heap creation: both returned `S_OK` for the 1,024-slot shader-visible heap. - Publication: the two ranges at logical slots 255 and 256 each split into two copies. The physical slots were `255,512` for the first heap and `511,768` for the second. Four pages became resident, leaving both untouched pages unmapped. - Readback: `a00100ff,a0010100,b00200ff,b0020100`. The swapped control exchanged both pairs while using the same shared heap. Each preset passed all 13 selected tests. There were zero skips, warnings or errors from the D3D12 debug layer in the paging cases. The PR contains the commands and generated inputs. AI-assisted (Codex).
Jess-Doit commented 2026-11-24 06:49:58 +00:00 (Migrated from github.com)
Author
Contributor

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


I'll take a source-built GetCustomHeapProperties struct-return fixture for #874. I'll compare both argument orders against the desktop result on Windows 10 GTX 1060 and WARP, including a stack output buffer seeded with the device's vtable pointer.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118590846 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7118590846). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-24T00:56:23Z. --- I'll take a source-built `GetCustomHeapProperties` struct-return fixture for #874. I'll compare both argument orders against the desktop result on Windows 10 GTX 1060 and WARP, including a stack output buffer seeded with the device's vtable pointer. AI-assisted (Codex).
R0Y00 commented 2026-11-24 06:49:59 +00:00 (Migrated from github.com)
Author
Contributor

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


Thanks for the independent RX 6600M run. Both cross-page entries passed. The early and ordered reads each had zero mismatches, with 16,384 changed words after remap. The three page-provenance snapshots each matched all 1,024 words. Please add the exact checkout SHA to the original report when convenient so the result stays reproducible as main advances.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118606585 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7118606585). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T00:57:20Z. --- Thanks for the independent RX 6600M run. Both cross-page entries passed. The early and ordered reads each had zero mismatches, with 16,384 changed words after remap. The three page-provenance snapshots each matched all 1,024 words. Please add the exact checkout SHA to the original report when convenient so the result stays reproducible as main advances.
Holastor commented 2026-11-24 06:49:59 +00:00 (Migrated from github.com)
Author
Contributor

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


Independent hardware retest for COPY → DIRECT cross-page ordering (Refs #874, baseline #1003):

Environment

  • Commit under test: d4cbfcd4 (re-verified on cbf3c8bb)
  • Adapter: AMD Radeon RX 6600M (vendor=1002, device=73ff)
  • Driver: 32.0.21045.11001
  • OS: Windows 11 Pro x64 (build 26100.3037)
  • Toolchain: MSVC 19.51.36263.0, CMake 4.3.1, release preset

Commands & Results

cmake --build --preset release --target vm_copy_queue_check
ctest --preset release --no-tests=error -R '^vm_(copy_queue|page_provenance)_hardware$' -V

Output:

test 585
    Start 585: vm_copy_queue_hardware
585: device adapter 1002:73ff AMD Radeon RX 6600M
585: copy queue early mismatches=0 ordered mismatches=0 early vs remapped=16384/16384
1/2 Test #585: vm_copy_queue_hardware ...........   Passed    0.16 sec

test 586
    Start 586: vm_page_provenance_hardware
586: device adapter 1002:73ff AMD Radeon RX 6600M
586: cross-page upload in mapped order: 0/1024 mismatches
586: GPU keeps its prior snapshot after CPU writes: 0/1024 mismatches
586: re-upload observes the updated CPU pages: 0/1024 mismatches
2/2 Test #586: vm_page_provenance_hardware ......   Passed    0.09 sec

100% tests passed, 0 tests failed out of 2
  • Early read: 0 mismatches
  • Post-copy read: 0 mismatches
  • Post-remap read: 16384/16384 distinct words confirmed
  • Capability skips: 0 (full execution on hardware)
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118233810 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7118233810). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-24T00:35:50Z. --- Independent hardware retest for **COPY → DIRECT cross-page ordering** (Refs #874, baseline #1003): ### Environment - **Commit under test:** `d4cbfcd4` (re-verified on `cbf3c8bb`) - **Adapter:** AMD Radeon RX 6600M (`vendor=1002, device=73ff`) - **Driver:** `32.0.21045.11001` - **OS:** Windows 11 Pro x64 (build 26100.3037) - **Toolchain:** MSVC 19.51.36263.0, CMake 4.3.1, `release` preset ### Commands & Results ```powershell cmake --build --preset release --target vm_copy_queue_check ctest --preset release --no-tests=error -R '^vm_(copy_queue|page_provenance)_hardware$' -V ``` **Output:** ``` test 585 Start 585: vm_copy_queue_hardware 585: device adapter 1002:73ff AMD Radeon RX 6600M 585: copy queue early mismatches=0 ordered mismatches=0 early vs remapped=16384/16384 1/2 Test #585: vm_copy_queue_hardware ........... Passed 0.16 sec test 586 Start 586: vm_page_provenance_hardware 586: device adapter 1002:73ff AMD Radeon RX 6600M 586: cross-page upload in mapped order: 0/1024 mismatches 586: GPU keeps its prior snapshot after CPU writes: 0/1024 mismatches 586: re-upload observes the updated CPU pages: 0/1024 mismatches 2/2 Test #586: vm_page_provenance_hardware ...... Passed 0.09 sec 100% tests passed, 0 tests failed out of 2 ``` - Early read: 0 mismatches - Post-copy read: 0 mismatches - Post-remap read: 16384/16384 distinct words confirmed - Capability skips: 0 (full execution on hardware)
Not-Saii commented 2026-11-24 06:50:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-24T01:08:09Z.


I'll take the CreateSamplerX desktop sampler contract row.

Plan: a source-built startup_sampler_x_ fixture with distinguishable address modes per axis and explicit MinLOD/MaxLOD limits, read back on WARP and hardware, plus a deliberately swapped sampler as the negative control. The PR will list which filter fields are supported and which are refused.

  • Base: main at 78a6b31e
  • Environment: Windows 11 build 26300.9974, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), plus WARP
  • Overlap: #1091 covers a static sampler in a root signature, not CreateSamplerX. I'll keep the two separate and rebase if it lands first.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118790643 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7118790643). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-24T01:08:09Z. --- I'll take the **`CreateSamplerX` desktop sampler contract** row. Plan: a source-built `startup_sampler_x_` fixture with distinguishable address modes per axis and explicit MinLOD/MaxLOD limits, read back on WARP and hardware, plus a deliberately swapped sampler as the negative control. The PR will list which filter fields are supported and which are refused. - **Base:** `main` at `78a6b31e` - **Environment:** Windows 11 build 26300.9974, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), plus WARP - **Overlap:** #1091 covers a static sampler in a root signature, not `CreateSamplerX`. I'll keep the two separate and rebase if it lands first. AI-assisted (Claude Code).
Not-Saii commented 2026-11-24 06:50:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-24T01:22:12Z.


CreateSamplerX desktop sampler contract: opened #1121.

  • Scope: desktop D3D12_SAMPLER_DESC contract only; no console descriptor layout is assumed.
  • Fields measured: point and linear filtering, per-axis WRAP/MIRROR/CLAMP/BORDER, opaque-white border, MinLOD and MaxLOD.
  • Negative control: a swapped-sampler run must read back the other sampler's values.
  • Command: ctest --preset dev --no-tests=error -R '^startup_sampler_x_' -V
  • Results: 4/4 pass in Debug and Release on RTX 4090 (driver 32.0.16.1088) and WARP 10.0.26100.9818, Windows 11 build 26300.9974. 0 of 21 mismatches, no skips.
  • Not checked: debug-layer validation (debug layer unavailable on this machine).
  • Not measured: AddressW, MipLODBias, comparison samplers and other border colours. Anisotropic filtering can't be measured with SampleLevel.

Open question: could someone with the startup diagnostic share a sanitized summary of the "projected sampler" descriptor (size and which fields are nonzero)? That would show which of these desktop fields a translation needs to fill.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119032120 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7119032120). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-24T01:22:12Z. --- **`CreateSamplerX` desktop sampler contract:** opened #1121. - **Scope:** desktop `D3D12_SAMPLER_DESC` contract only; no console descriptor layout is assumed. - **Fields measured:** point and linear filtering, per-axis WRAP/MIRROR/CLAMP/BORDER, opaque-white border, MinLOD and MaxLOD. - **Negative control:** a swapped-sampler run must read back the other sampler's values. - **Command:** `ctest --preset dev --no-tests=error -R '^startup_sampler_x_' -V` - **Results:** 4/4 pass in Debug and Release on RTX 4090 (driver 32.0.16.1088) and WARP 10.0.26100.9818, Windows 11 build 26300.9974. 0 of 21 mismatches, no skips. - **Not checked:** debug-layer validation (debug layer unavailable on this machine). - **Not measured:** AddressW, MipLODBias, comparison samplers and other border colours. Anisotropic filtering can't be measured with `SampleLevel`. Open question: could someone with the startup diagnostic share a sanitized summary of the "projected sampler" descriptor (size and which fields are nonzero)? That would show which of these desktop fields a translation needs to fill. AI-assisted (Claude Code).
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:29:57Z.


NVIDIA retest of the copy-queue and descriptor rows. All pass, with no capability skips.

Environment: main at a7710b7350bfbb16020f45962988f85eea269793, clean tree. Windows 11 Pro build 26300, MSVC 19.44.35207.1 x64. NVIDIA GeForce RTX 3090 (10de:2204), driver 32.0.16.1664. Tests run one at a time (-j 1).

COPY → DIRECT cross-page ordering (release)

ctest --preset release --no-tests=error -j 1 -R '^vm_(copy_queue|page_provenance)_hardware$' -V
Test Result Readback
vm_copy_queue_hardware Passed early mismatches 0, ordered mismatches 0, early vs remapped 16384/16384
vm_page_provenance_hardware Passed cross-page upload in mapped order 0/1024 mismatches; GPU keeps its prior snapshot after CPU writes 0/1024; re-upload observes the updated CPU pages 0/1024

Descriptor windows, record copies and paging (dev, D3D12 debug layer enabled)

ctest --preset dev --no-tests=error -j 1 -R '^descriptor_(heap_paging|window|record_copy)_' -V
  • 14/14 passed: 7 hardware and 7 WARP.
    • descriptor_window_{submissions,stale}
    • descriptor_record_copy_{live,stale,unknown}
    • descriptor_heap_paging{,_swapped}
  • All 14 report debug_layer=enabled with debug_errors=0 debug_warnings=0.
  • Paging on hardware: shared_heap_request=1024 create_hresult=0x00000000, initial_pages=2 resident_pages=4 copy_chunks=2,2 physical=255,512,511,768, and words a00100ff,a0010100,b00200ff,b0020100 with swapped=0.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119158297 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7119158297). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-24T01:29:57Z. --- NVIDIA retest of the copy-queue and descriptor rows. All pass, with no capability skips. **Environment:** `main` at `a7710b7350bfbb16020f45962988f85eea269793`, clean tree. Windows 11 Pro build 26300, MSVC 19.44.35207.1 x64. NVIDIA GeForce RTX 3090 (`10de:2204`), driver 32.0.16.1664. Tests run one at a time (`-j 1`). **COPY → DIRECT cross-page ordering (`release`)** ```powershell ctest --preset release --no-tests=error -j 1 -R '^vm_(copy_queue|page_provenance)_hardware$' -V ``` | Test | Result | Readback | | --- | --- | --- | | `vm_copy_queue_hardware` | Passed | early mismatches 0, ordered mismatches 0, early vs remapped 16384/16384 | | `vm_page_provenance_hardware` | Passed | cross-page upload in mapped order 0/1024 mismatches; GPU keeps its prior snapshot after CPU writes 0/1024; re-upload observes the updated CPU pages 0/1024 | **Descriptor windows, record copies and paging (`dev`, D3D12 debug layer enabled)** ```powershell ctest --preset dev --no-tests=error -j 1 -R '^descriptor_(heap_paging|window|record_copy)_' -V ``` - 14/14 passed: 7 hardware and 7 WARP. - `descriptor_window_{submissions,stale}` - `descriptor_record_copy_{live,stale,unknown}` - `descriptor_heap_paging{,_swapped}` - All 14 report `debug_layer=enabled` with `debug_errors=0 debug_warnings=0`. - Paging on hardware: `shared_heap_request=1024 create_hresult=0x00000000`, `initial_pages=2 resident_pages=4 copy_chunks=2,2 physical=255,512,511,768`, and words `a00100ff,a0010100,b00200ff,b0020100` with `swapped=0`. AI-assisted (Claude Code).
mumba17 commented 2026-11-24 06:50:03 +00:00 (Migrated from github.com)
Author
Contributor

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


Folded into my #870 claim, posted a minute earlier, which already covers this fence. A fence method that returns the address of the completed value, polled by the caller, is part of that list/queue/fence adapter slice. I am not opening a separate fence-only fixture, so there is one claim and one review thread for that work.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119187762 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7119187762). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-24T01:31:40Z. --- Folded into my [#870 claim](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7119174818), posted a minute earlier, which already covers this fence. A fence method that returns the address of the completed value, polled by the caller, is part of that list/queue/fence adapter slice. I am not opening a separate fence-only fixture, so there is one claim and one review thread for that work. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:50:25 +00:00 (Migrated from github.com)
Author
Contributor

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


@Jess-Doit, could you review the logical-to-physical boundary for the startup draw path using your #1074 fixture? On two local runs the four sampled output regions went black for 60 of every 216 presents, always at the same phase. An independent compositor capture reproduced the dark intervals while the confirmation page was idle.

One hypothesis is that slot 36 clamps a title table to the physical heap size. The reported logical heap has 1,245,184 descriptors, the desktop heap has 1,000,000, and the observed step is 4,096 slots. The 245,184-slot tail spans about 60 such steps. A local A/B comparison that keeps slot 32’s bound heap identity during resolution is underway. The matching lengths alone do not establish causality.

Could you adapt the source-built two-heap setup to pass through the startup binding path? Use different sentinel data at the same tail index in two logical CBV/SRV/UAV heaps; cover the last physical slot, first logical-only slot, last logical slot, and one past the logical end. Preserve a swapped-heap or stale-binding control and check the returned GPU bytes on hardware and WARP. The existing fixture baseline is ctest --preset release --no-tests=error -R '^descriptor_heap_paging' -V. Please link an existing implementation if one covers these slots; otherwise a focused independent review or fixture is welcome. The local mainline run is already assigned.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7122774410 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7122774410). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T05:15:22Z. --- @Jess-Doit, could you review the logical-to-physical boundary for the startup draw path using your #1074 fixture? On two local runs the four sampled output regions went black for 60 of every 216 presents, always at the same phase. An independent compositor capture reproduced the dark intervals while the confirmation page was idle. One hypothesis is that slot 36 clamps a title table to the physical heap size. The reported logical heap has 1,245,184 descriptors, the desktop heap has 1,000,000, and the observed step is 4,096 slots. The 245,184-slot tail spans about 60 such steps. A local A/B comparison that keeps slot 32’s bound heap identity during resolution is underway. The matching lengths alone do not establish causality. Could you adapt the source-built two-heap setup to pass through the startup binding path? Use different sentinel data at the same tail index in two logical CBV/SRV/UAV heaps; cover the last physical slot, first logical-only slot, last logical slot, and one past the logical end. Preserve a swapped-heap or stale-binding control and check the returned GPU bytes on hardware and WARP. The existing fixture baseline is `ctest --preset release --no-tests=error -R '^descriptor_heap_paging' -V`. Please link an existing implementation if one covers these slots; otherwise a focused independent review or fixture is welcome. The local mainline run is already assigned.
R0Y00 commented 2026-11-24 06:50:32 +00:00 (Migrated from github.com)
Author
Contributor

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


The source-built logical-view regression is now on main in #1255 (b9234523). On RTX 4060 Laptop, driver 32.0.16.1656, Windows 11 26200.9974, the fixture presented a logical heap of 1,245,184 views over a 1,000,000-slot physical heap. All 32 pixels matched across the boundary, logical-end, heap-switch and wrong-heap cases. WARP accepted the large heap directly and skipped the fallback-specific cases.

ctest --preset release --no-tests=error -R '^startup_(logical_view|view_heap|stream_(draw|request))' --output-on-failure: five passed, two capability skips.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7123923926 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7123923926). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T06:25:49Z. --- The source-built logical-view regression is now on main in #1255 (`b9234523`). On RTX 4060 Laptop, driver 32.0.16.1656, Windows 11 26200.9974, the fixture presented a logical heap of 1,245,184 views over a 1,000,000-slot physical heap. All 32 pixels matched across the boundary, logical-end, heap-switch and wrong-heap cases. WARP accepted the large heap directly and skipped the fallback-specific cases. `ctest --preset release --no-tests=error -R '^startup_(logical_view|view_heap|stream_(draw|request))' --output-on-failure`: five passed, two capability skips.
R0Y00 commented 2026-11-24 07:07:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T07:06:34Z.


A modified local diagnostic executable on RTX 4060 Laptop reached a loading error in the acceleration-structure builder. It reported a destination beyond its 40-bit limit and raised an unhandled C++ exception on the same thread. The runtime address producer is still under investigation. Original executable startup remains unverified.

Source-built validation. #1305 is on main. Two live buffers with identical low 40 guest-address bits retain distinct mappings. An independent DXR scene in #1307 places two bottom-level acceleration structures at interior offsets. Four rays distinguish the two scenes on RTX 4060 Laptop and WARP. Truncating the address changes which geometry is hit. The DXR comparison currently registers its own test ranges.

Open integration work. Main development is checking how the startup stand-in registers and consumes addresses for placed resources. An independent adapter retest of #1305 is welcome using ctest --preset dev --no-tests=error -R "^gpu_alias_(hardware|warp)$" -V. Please provide the commit, adapter, driver and any skip or first mismatch. Source-built inputs suffice.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7124625737 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7124625737). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T07:06:34Z. --- A modified local diagnostic executable on RTX 4060 Laptop reached a loading error in the acceleration-structure builder. It reported a destination beyond its 40-bit limit and raised an unhandled C++ exception on the same thread. The runtime address producer is still under investigation. Original executable startup remains unverified. **Source-built validation.** [#1305](https://github.com/R0Y00/Xbox2Windows/pull/1305) is on main. Two live buffers with identical low 40 guest-address bits retain distinct mappings. An independent [DXR scene in #1307](https://github.com/R0Y00/Xbox2Windows/pull/1307) places two bottom-level acceleration structures at interior offsets. Four rays distinguish the two scenes on RTX 4060 Laptop and WARP. Truncating the address changes which geometry is hit. The DXR comparison currently registers its own test ranges. **Open integration work.** Main development is checking how the startup stand-in registers and consumes addresses for placed resources. An independent adapter retest of #1305 is welcome using `ctest --preset dev --no-tests=error -R "^gpu_alias_(hardware|warp)$" -V`. Please provide the commit, adapter, driver and any skip or first mismatch. Source-built inputs suffice.
MasterDomino commented 2026-11-24 08:01:38 +00:00 (Migrated from github.com)
Author
Contributor

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


RX 9070 XT data point for the logical-view heap path from #1240/#1255. Measurement only, no project change.

The fallback never engages on this adapter. The driver accepts the full 1,245,184-view shader-visible heap directly, so the slot 36 clamp hypothesis from https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7122774410 can't apply here.

Environment

  • AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31044.16, D3D12 debug layer enabled.
  • Windows 11 26H2, build 26300.9974; main at d5508e72, dev preset (Debug), MSVC 19.44.

Result

offscreen_hardware reports max_view_descriptor_heap_size=33554432 (OPTIONS19); WARP 10.0.26100.9818 reports 2097152.

ctest --preset dev --no-tests=error -R '^startup_(logical_view|view_heap|stream_(draw|request))_' -V
test hardware WARP
startup_view_heap skip 77: adapter accepts 1245184 descriptors directly; the shortcut is not needed here same skip
startup_logical_view skip 77 (draw_logical_tables: 1,245,184 accepted) same skip
startup_stream_draw pass pass
startup_stream_request — pass

So the fallback-specific cases have hardware coverage only on adapters that cap below 1,245,184 (NVIDIA at 1,000,000 so far). One small thing: startup_logical_view_check.py prints no reason when the consumer returns 77, unlike startup_view_heap_check, so the skip shows up in the log without an explanation.

Full suite at the same commit, -j 8: 771 tests, 758 pass, 3 fail, 10 skips. The three failures are the known RDNA 4 ones (#1011 dxr_opacity_hardware, #369 gpu_alias_lookup_writes_hardware, #958 pixel_aot_comparisons_hardware). All 10 skips are capability skips: the two above on each backend, plus wave widths (WARP's 4 lanes, and this adapter's 32..64 range for wave_startup_4_hardware). No new failures since 1ccc326.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7124705315 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7124705315). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T07:10:46Z. --- RX 9070 XT data point for the logical-view heap path from #1240/#1255. Measurement only, no project change. The fallback never engages on this adapter. The driver accepts the full 1,245,184-view shader-visible heap directly, so the slot 36 clamp hypothesis from https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7122774410 can't apply here. ## Environment - AMD Radeon RX 9070 XT (`1002:7550`), driver `32.0.31044.16`, D3D12 debug layer enabled. - Windows 11 26H2, build 26300.9974; `main` at `d5508e72`, `dev` preset (Debug), MSVC 19.44. ## Result `offscreen_hardware` reports `max_view_descriptor_heap_size=33554432` (OPTIONS19); WARP `10.0.26100.9818` reports `2097152`. ```powershell ctest --preset dev --no-tests=error -R '^startup_(logical_view|view_heap|stream_(draw|request))_' -V ``` | test | hardware | WARP | |---|---|---| | `startup_view_heap` | skip 77: `adapter accepts 1245184 descriptors directly; the shortcut is not needed here` | same skip | | `startup_logical_view` | skip 77 (`draw_logical_tables`: 1,245,184 accepted) | same skip | | `startup_stream_draw` | pass | pass | | `startup_stream_request` | — | pass | So the fallback-specific cases have hardware coverage only on adapters that cap below 1,245,184 (NVIDIA at 1,000,000 so far). One small thing: `startup_logical_view_check.py` prints no reason when the consumer returns 77, unlike `startup_view_heap_check`, so the skip shows up in the log without an explanation. Full suite at the same commit, `-j 8`: 771 tests, 758 pass, 3 fail, 10 skips. The three failures are the known RDNA 4 ones (#1011 `dxr_opacity_hardware`, #369 `gpu_alias_lookup_writes_hardware`, #958 `pixel_aot_comparisons_hardware`). All 10 skips are capability skips: the two above on each backend, plus wave widths (WARP's 4 lanes, and this adapter's 32..64 range for `wave_startup_4_hardware`). No new failures since `1ccc326`. AI-assisted.
R0Y00 commented 2026-11-24 08:01:39 +00:00 (Migrated from github.com)
Author
Contributor

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


#1305 has landed with the source-built bit-40 collision check. The RTX 4060 Laptop and WARP runs each passed. The fixture uses two separate backing buffers whose guest addresses share their low 40 bits. Clearing bit 40 redirects the write to the other buffer and exposes the change in readback. Both runs also check guards and that removing the high mapping preserves the low one.

ctest --preset release --no-tests=error -R '^gpu_alias_(warp|hardware)$' -V

Independent adapter results are welcome with the commit, driver and Windows build. The runtime's address producer remains under investigation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7125039649 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7125039649). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T07:28:59Z. --- #1305 has landed with the source-built bit-40 collision check. The RTX 4060 Laptop and WARP runs each passed. The fixture uses two separate backing buffers whose guest addresses share their low 40 bits. Clearing bit 40 redirects the write to the other buffer and exposes the change in readback. Both runs also check guards and that removing the high mapping preserves the low one. `ctest --preset release --no-tests=error -R '^gpu_alias_(warp|hardware)$' -V` Independent adapter results are welcome with the commit, driver and Windows build. The runtime's address producer remains under investigation.
R0Y00 commented 2026-11-24 08:01:40 +00:00 (Migrated from github.com)
Author
Contributor

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


#1307 is now on main. It extends the synthetic address-collision check to actual DXR builds and ray dispatch. The RTX 4060 Laptop and WARP each selected the intended backing with full addresses. Clearing the high address bits selected the other valid backing and changed the expected hit ID and distance. The Release run passed all ten DXR address, pipeline, query and update tests.

ctest --preset release --no-tests=error -R '^dxr_(address_ranges|pipeline|query|update_)' --output-on-failure

These results cover the source-built range lookup through DXR. The runtime address producer is still being traced.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7125323055 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7125323055). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T07:44:38Z. --- #1307 is now on main. It extends the synthetic address-collision check to actual DXR builds and ray dispatch. The RTX 4060 Laptop and WARP each selected the intended backing with full addresses. Clearing the high address bits selected the other valid backing and changed the expected hit ID and distance. The Release run passed all ten DXR address, pipeline, query and update tests. `ctest --preset release --no-tests=error -R '^dxr_(address_ranges|pipeline|query|update_)' --output-on-failure` These results cover the source-built range lookup through DXR. The runtime address producer is still being traced.
MasterDomino commented 2026-11-24 08:01:41 +00:00 (Migrated from github.com)
Author
Contributor

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


Independent RX 9070 XT retest of #1305 and #1307. The guest-address routing behaves as expected on this adapter: hit/miss, instance and truncation outcomes match WARP. dxr_address_ranges_hardware still fails, because the fixture compares the hit distance bit-exactly and this adapter returns t one ULP below 1.0 and 2.0. Measurement only, no project change.

Environment

  • main at f5d83c31 (includes #1305 6c1b5710 and #1307 0adfe857), release preset, MSVC 19.44.35207, DXC 1.8.2502.11.
  • AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31044.16, D3D12 debug layer enabled, DXR tier 1.1.
  • Windows 11 26H2, build 26300.9974. WARP 10.0.26100.9818 as control.

Command and result

ctest --preset release --no-tests=error -R '^(gpu_alias_(warp|hardware)|dxr_(address_ranges|pipeline|query|update_).*)$' -V

11 of 12 pass, with no skips. The one failure is dxr_address_ranges_hardware, with DXR address range or truncation-control mismatch at ray 0. It fails 3 of 3 runs. debug_errors=0 debug_warnings=0.

  • gpu_alias_hardware / _warp: pass, high_address_bit=40 words=4096 truncation_writes_low_range=1 … mismatches=0.
  • dxr_query, dxr_pipeline, dxr_update, dxr_update_pipeline: pass on both backends.

First mismatch

The check prints no values, so I added a local print of the four result rows (hit, instance, primitive, t bits) for one diagnostic run. The print is not committed. Here are its rows, the same in 3 of 3 hardware runs:

ray hardware full WARP full hardware truncated WARP truncated
0 1, 7, 0, 0x3f7fffff 1, 7, 0, 0x3f800000 1, 7, 0, 0x3f7fffff 1, 7, 0, 0x3f800000
1 miss miss miss miss
2 miss miss 1, 11, 0, 0x3f7fffff 1, 11, 0, 0x3f800000
3 1, 11, 0, 0x3fffffff 1, 11, 0, 0x40000000 miss miss

Every hit/miss and instance ID matches the expected full=[hit7@1,miss,miss,hit11@2] and truncated=[hit7@1,miss,hit11@1,miss]. Clearing bit 40 still selects the other backing. The only difference is t: 0.99999994 instead of 1.0, and 1.9999999 instead of 2.0, which is one ULP below in every hit.

The other DXR checks in tests/dxr_check.cpp compare distance with a tolerance (std::abs(distance - 1.f) < 1e-5f, < 1e-4f). check_dxr_address_ranges compares the Row words exactly, including 0x3f800000 / 0x40000000. A tolerance on the distance word only, keeping hit, instance and primitive exact, would make this adapter pass without weakening the address check. If that's the direction you want, I can send it as a small PR.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7125549380 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7125549380). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T07:56:50Z. --- Independent RX 9070 XT retest of #1305 and #1307. The guest-address routing behaves as expected on this adapter: hit/miss, instance and truncation outcomes match WARP. `dxr_address_ranges_hardware` still fails, because the fixture compares the hit distance bit-exactly and this adapter returns t one ULP below 1.0 and 2.0. Measurement only, no project change. ## Environment - `main` at `f5d83c31` (includes #1305 `6c1b5710` and #1307 `0adfe857`), `release` preset, MSVC 19.44.35207, DXC 1.8.2502.11. - AMD Radeon RX 9070 XT (`1002:7550`), driver `32.0.31044.16`, D3D12 debug layer enabled, DXR tier 1.1. - Windows 11 26H2, build 26300.9974. WARP `10.0.26100.9818` as control. ## Command and result ```powershell ctest --preset release --no-tests=error -R '^(gpu_alias_(warp|hardware)|dxr_(address_ranges|pipeline|query|update_).*)$' -V ``` 11 of 12 pass, with no skips. The one failure is `dxr_address_ranges_hardware`, with `DXR address range or truncation-control mismatch at ray 0`. It fails 3 of 3 runs. `debug_errors=0 debug_warnings=0`. - `gpu_alias_hardware` / `_warp`: pass, `high_address_bit=40 words=4096 truncation_writes_low_range=1 … mismatches=0`. - `dxr_query`, `dxr_pipeline`, `dxr_update`, `dxr_update_pipeline`: pass on both backends. ## First mismatch The check prints no values, so I added a local print of the four result rows `(hit, instance, primitive, t bits)` for one diagnostic run. The print is not committed. Here are its rows, the same in 3 of 3 hardware runs: | ray | hardware full | WARP full | hardware truncated | WARP truncated | |---|---|---|---|---| | 0 | `1, 7, 0, 0x3f7fffff` | `1, 7, 0, 0x3f800000` | `1, 7, 0, 0x3f7fffff` | `1, 7, 0, 0x3f800000` | | 1 | miss | miss | miss | miss | | 2 | miss | miss | `1, 11, 0, 0x3f7fffff` | `1, 11, 0, 0x3f800000` | | 3 | `1, 11, 0, 0x3fffffff` | `1, 11, 0, 0x40000000` | miss | miss | Every hit/miss and instance ID matches the expected `full=[hit7@1,miss,miss,hit11@2]` and `truncated=[hit7@1,miss,hit11@1,miss]`. Clearing bit 40 still selects the other backing. The only difference is t: `0.99999994` instead of `1.0`, and `1.9999999` instead of `2.0`, which is one ULP below in every hit. The other DXR checks in `tests/dxr_check.cpp` compare distance with a tolerance (`std::abs(distance - 1.f) < 1e-5f`, `< 1e-4f`). `check_dxr_address_ranges` compares the `Row` words exactly, including `0x3f800000` / `0x40000000`. A tolerance on the distance word only, keeping hit, instance and primitive exact, would make this adapter pass without weakening the address check. If that's the direction you want, I can send it as a small PR. AI-assisted.
R0Y00 commented 2026-11-24 09:04:43 +00:00 (Migrated from github.com)
Author
Contributor

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


#1025 is on main at 436ac1bf. The source-built raw UAV test passed on RTX 4060 Laptop and WARP in Release. It uses two separate buffer windows, checks both complete readbacks, and swaps the bindings to verify that the expected locations would otherwise keep their sentinels. The raw SRV, COPY queue and page-provenance cases also passed on both adapters (8/8 tests total). This records the window fixture; the startup binding work remains tracked here.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7125760614 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7125760614). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T08:07:50Z. --- #1025 is on main at 436ac1bf. The source-built raw UAV test passed on RTX 4060 Laptop and WARP in Release. It uses two separate buffer windows, checks both complete readbacks, and swaps the bindings to verify that the expected locations would otherwise keep their sentinels. The raw SRV, COPY queue and page-provenance cases also passed on both adapters (8/8 tests total). This records the window fixture; the startup binding work remains tracked here.
R0Y00 commented 2026-11-24 09:04:44 +00:00 (Migrated from github.com)
Author
Contributor

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


Follow-up on the AS destination address in the existing modified diagnostic run. The 99,776-page XMem mapping has a separate reservation. Neither of the first two destination addresses nor either scratch address captured in the 16-build batch falls in that mapping. Both scratch addresses are covered by a recorded placed resource.

The destination arena has 65 distinct registrations logged as aliased with the same CPU-to-GPU offset. It also has 3,164 distinct registrations logged as not aliased, with 3,153 different address offsets. Neither captured destination falls inside a logged placement. The closest preceding placement ends 140 bytes before the first destination and is only 4 bytes wide. Registration traces alone do not establish which resources were live at build time. Applying the offset of a neighbouring placement to an uncovered address would therefore be unjustified.

For the next independent check, correlate a destination's allocation, declared extent, resource state, and lifetime with the build that consumes it. PR #1326 provides a source-built control for an explicitly registered destination and separately registered scratch. The diagnostic batch recorded only the prefix of the descriptor array; the specific failing element is still unknown.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7126102601 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7126102601). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T08:24:46Z. --- Follow-up on the AS destination address in the existing modified diagnostic run. The 99,776-page XMem mapping has a separate reservation. Neither of the first two destination addresses nor either scratch address captured in the 16-build batch falls in that mapping. Both scratch addresses are covered by a recorded placed resource. The destination arena has 65 distinct registrations logged as aliased with the same CPU-to-GPU offset. It also has 3,164 distinct registrations logged as not aliased, with 3,153 different address offsets. Neither captured destination falls inside a logged placement. The closest preceding placement ends 140 bytes before the first destination and is only 4 bytes wide. Registration traces alone do not establish which resources were live at build time. Applying the offset of a neighbouring placement to an uncovered address would therefore be unjustified. For the next independent check, correlate a destination's allocation, declared extent, resource state, and lifetime with the build that consumes it. [PR #1326](https://github.com/R0Y00/Xbox2Windows/pull/1326) provides a source-built control for an explicitly registered destination and separately registered scratch. The diagnostic batch recorded only the prefix of the descriptor array; the specific failing element is still unknown.
R0Y00 commented 2026-11-24 09:04:45 +00:00 (Migrated from github.com)
Author
Contributor

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


@MasterDomino, thanks for the RX 9070 XT results. Please take the address-routing follow-up here if you are available. The hit IDs, primitive IDs and misses already distinguish the correct BLAS from the truncated address. Your hardware test also identified a separate one-ULP distance difference.

For the PR, please add a native D3D12 control on the same adapter with identical triangles, masks, rays and instance transforms. Give its TLAS the two BLAS GPU addresses directly. For the truncation control, explicitly point both instances at the left BLAS. Compare all four output words for every ray against the respective direct-address result, including the distance bits. Keep the fixed geometry expectations and report the measured distance bits against 1.0 and 2.0. Retain the bit-40 negative control and demonstrate that intentionally routing the high instance to the low backing fails the normal-path comparison.

Please post the four sets of rows on the RX 9070 XT and WARP, with the tested SHA and driver. That will tell us whether the discrepancy originates in triangle intersection on that device or in address translation. The existing AMD run remains recorded as 11/12 until the comparison is available.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7126252815 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7126252815). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T08:32:08Z. --- @MasterDomino, thanks for the RX 9070 XT results. Please take the address-routing follow-up here if you are available. The hit IDs, primitive IDs and misses already distinguish the correct BLAS from the truncated address. Your hardware test also identified a separate one-ULP distance difference. For the PR, please add a native D3D12 control on the same adapter with identical triangles, masks, rays and instance transforms. Give its TLAS the two BLAS GPU addresses directly. For the truncation control, explicitly point both instances at the left BLAS. Compare all four output words for every ray against the respective direct-address result, including the distance bits. Keep the fixed geometry expectations and report the measured distance bits against 1.0 and 2.0. Retain the bit-40 negative control and demonstrate that intentionally routing the high instance to the low backing fails the normal-path comparison. Please post the four sets of rows on the RX 9070 XT and WARP, with the tested SHA and driver. That will tell us whether the discrepancy originates in triangle intersection on that device or in address translation. The existing AMD run remains recorded as 11/12 until the comparison is available.
MasterDomino commented 2026-11-24 09:04:46 +00:00 (Migrated from github.com)
Author
Contributor

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


Taking the address-routing follow-up for dxr_address_ranges: a native D3D12 control on the same adapter (identical triangles, masks, rays and transforms; TLAS given the two BLAS GPU addresses directly, and both instances on the left BLAS for the truncation control), all four words per ray compared against the direct-address result including distance bits, fixed geometry expectations kept with the measured bits reported against 1.0/2.0, the bit-40 negative control retained, plus a mutant routing the high instance to the low backing that must fail. I'll post the four row sets for RX 9070 XT and WARP with SHA and driver, and link the PR here.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7126350168 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7126350168). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T08:36:56Z. --- Taking the address-routing follow-up for `dxr_address_ranges`: a native D3D12 control on the same adapter (identical triangles, masks, rays and transforms; TLAS given the two BLAS GPU addresses directly, and both instances on the left BLAS for the truncation control), all four words per ray compared against the direct-address result including distance bits, fixed geometry expectations kept with the measured bits reported against 1.0/2.0, the bit-40 negative control retained, plus a mutant routing the high instance to the low backing that must fail. I'll post the four row sets for RX 9070 XT and WARP with SHA and driver, and link the PR here. AI-assisted.
MasterDomino commented 2026-11-24 10:02:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T09:13:33Z.


Address-routing follow-up: https://github.com/R0Y00/Xbox2Windows/pull/1360 (f008456f, release, driver/SHA in the PR).

The native direct-address control on the RX 9070 XT (32.0.31044.16) gives the same one-ULP-low distances as the title path, so the discrepancy is in the device's triangle intersection, not in address translation:

set RX 9070 XT WARP 10.0.26100.9818
title full [1,7,0,0x3f7fffff] miss miss [1,11,0,0x3fffffff] [1,7,0,0x3f800000] miss miss [1,11,0,0x40000000]
direct full [1,7,0,0x3f7fffff] miss miss [1,11,0,0x3fffffff] [1,7,0,0x3f800000] miss miss [1,11,0,0x40000000]
title truncated [1,7,0,0x3f7fffff] miss [1,11,0,0x3f7fffff] miss [1,7,0,0x3f800000] miss [1,11,0,0x3f800000] miss
direct truncated [1,7,0,0x3f7fffff] miss [1,11,0,0x3f7fffff] miss [1,7,0,0x3f800000] miss [1,11,0,0x3f800000] miss

Title equals direct in all four words on both backends, the bit-40 truncation control still routes both instances to the left BLAS, and routing the high instance to the low backing differs from the direct result (ray 2 hit, ray 3 miss) and is caught. Both tests now pass; debug_errors=0.

Separate finding, not in that PR: dxr_placed_build_hardware (#1326) fails on the same adapter for the same reason. Its fixed expectation {1,7,0,0x3f800000, …} gets 0x3f7fffff (2 of 2 runs, local print only); WARP passes. If you want, I can give it the same direct-address comparison in a separate PR.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7127123476 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7127123476). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T09:13:33Z. --- Address-routing follow-up: https://github.com/R0Y00/Xbox2Windows/pull/1360 (`f008456f`, release, driver/SHA in the PR). The native direct-address control on the RX 9070 XT (`32.0.31044.16`) gives the same one-ULP-low distances as the title path, so the discrepancy is in the device's triangle intersection, not in address translation: | set | RX 9070 XT | WARP 10.0.26100.9818 | |---|---|---| | title full | `[1,7,0,0x3f7fffff] miss miss [1,11,0,0x3fffffff]` | `[1,7,0,0x3f800000] miss miss [1,11,0,0x40000000]` | | direct full | `[1,7,0,0x3f7fffff] miss miss [1,11,0,0x3fffffff]` | `[1,7,0,0x3f800000] miss miss [1,11,0,0x40000000]` | | title truncated | `[1,7,0,0x3f7fffff] miss [1,11,0,0x3f7fffff] miss` | `[1,7,0,0x3f800000] miss [1,11,0,0x3f800000] miss` | | direct truncated | `[1,7,0,0x3f7fffff] miss [1,11,0,0x3f7fffff] miss` | `[1,7,0,0x3f800000] miss [1,11,0,0x3f800000] miss` | Title equals direct in all four words on both backends, the bit-40 truncation control still routes both instances to the left BLAS, and routing the high instance to the low backing differs from the direct result (ray 2 hit, ray 3 miss) and is caught. Both tests now pass; `debug_errors=0`. Separate finding, not in that PR: `dxr_placed_build_hardware` (#1326) fails on the same adapter for the same reason. Its fixed expectation `{1,7,0,0x3f800000, …}` gets `0x3f7fffff` (2 of 2 runs, local print only); WARP passes. If you want, I can give it the same direct-address comparison in a separate PR. AI-assisted.
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:04:31Z.


Yes, please make a separate PR for dxr_placed_build_hardware and its WARP counterpart, following #1360. Build a direct-address desktop D3D12 reference on the same adapter with identical geometry, build and instance inputs, rays, and readback shader. Give the reference the desktop GPU addresses directly, bypassing only the placed-address resolver under test. Compare all four raw words of each ray against that adapter’s direct result, including distance bits. Keep the fixed hit/miss, instance, and primitive expectations and record the measured distance bits against the mathematical reference. Use this comparison on all adapters.

Keep #1326’s refusal controls and add or retain a wrong-routing control that must differ from the direct result. Please report RX 9070 XT and WARP with exact SHA, driver and debug-layer status. Matching one-ULP results on the two paths supplies evidence for this fixture without introducing a general distance tolerance.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7133798953 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7133798953). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T14:04:31Z. --- Yes, please make a separate PR for `dxr_placed_build_hardware` and its WARP counterpart, following #1360. Build a direct-address desktop D3D12 reference on the same adapter with identical geometry, build and instance inputs, rays, and readback shader. Give the reference the desktop GPU addresses directly, bypassing only the placed-address resolver under test. Compare all four raw words of each ray against that adapter’s direct result, including distance bits. Keep the fixed hit/miss, instance, and primitive expectations and record the measured distance bits against the mathematical reference. Use this comparison on all adapters. Keep #1326’s refusal controls and add or retain a wrong-routing control that must differ from the direct result. Please report RX 9070 XT and WARP with exact SHA, driver and debug-layer status. Matching one-ULP results on the two paths supplies evidence for this fixture without introducing a general distance tolerance.
RenzoWit35 commented 2026-11-24 15:02:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RenzoWit35 on 2026-11-24T14:22:12Z.


I can take the small follow-up from the RX 9070 XT logical-view report above: startup_logical_view_<backend> skips with 77 and prints no reason. The plan is a one-line message in draw_logical_tables() (tests/startup_stream_draw.cpp) in the wording startup_view_heap_check already uses, with the exit code and CTest registration unchanged. Environment: Windows 11 build 26300, MSVC 14.51, WARP 10.0.26100.9818 (skip path) and Intel(R) Graphics 32.0.101.8991 (capped at 1,000,000, non-skip path). No shared interface changes and no overlap with an open PR that I could find.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7134262099 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7134262099). Originally posted by [RenzoWit35](https://github.com/RenzoWit35) on 2026-11-24T14:22:12Z. --- I can take the small follow-up from the RX 9070 XT logical-view report above: `startup_logical_view_<backend>` skips with 77 and prints no reason. The plan is a one-line message in `draw_logical_tables()` (`tests/startup_stream_draw.cpp`) in the wording `startup_view_heap_check` already uses, with the exit code and CTest registration unchanged. Environment: Windows 11 build 26300, MSVC 14.51, WARP 10.0.26100.9818 (skip path) and Intel(R) Graphics 32.0.101.8991 (capped at 1,000,000, non-skip path). No shared interface changes and no overlap with an open PR that I could find. AI-assisted.
MasterDomino commented 2026-11-24 15:02:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T14:59:33Z.


Claiming the dxr_placed_build_{hardware,warp} follow-up: a direct-address reference with identical geometry, build/instance inputs, rays and readback, bypassing only the placed-address resolver; all four words per ray compared, fixed hit/instance/primitive expectations kept, distance bits recorded against the mathematical reference, #1326's refusal controls kept plus a wrong-routing control. Separate PR, link to follow.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7135281132 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7135281132). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T14:59:33Z. --- Claiming the `dxr_placed_build_{hardware,warp}` follow-up: a direct-address reference with identical geometry, build/instance inputs, rays and readback, bypassing only the placed-address resolver; all four words per ray compared, fixed hit/instance/primitive expectations kept, distance bits recorded against the mathematical reference, #1326's refusal controls kept plus a wrong-routing control. Separate PR, link to follow. AI-assisted.
MasterDomino commented 2026-11-24 16:03:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T15:07:32Z.


dxr_placed_build follow-up: https://github.com/R0Y00/Xbox2Windows/pull/1619 (8e0eb6cd). RX 9070 XT (32.0.31044.16): placed and direct both [1,7,0,0x3f7fffff], miss, masked miss; WARP: both 0x3f800000; the decoy-routing control differs on both (ray 0 miss, ray 1 hit). Debug layer on, zero errors. Replaces the 1e-5 tolerance from 82680176; #1326's refusal controls unchanged.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7135498957 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7135498957). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T15:07:32Z. --- `dxr_placed_build` follow-up: https://github.com/R0Y00/Xbox2Windows/pull/1619 (`8e0eb6cd`). RX 9070 XT (`32.0.31044.16`): placed and direct both `[1,7,0,0x3f7fffff]`, miss, masked miss; WARP: both `0x3f800000`; the decoy-routing control differs on both (ray 0 miss, ray 1 hit). Debug layer on, zero errors. Replaces the 1e-5 tolerance from `82680176`; #1326's refusal controls unchanged. AI-assisted.
R0Y00 commented 2026-11-24 16:03:33 +00:00 (Migrated from github.com)
Author
Contributor

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


#1619 merged at 60572183. The placed and direct builds compare all 12 raw ray words on each adapter and keep the wrong-routing and refusal controls. The author reported the RX 9070 XT and WARP readbacks, and my independent Windows Release RTX and WARP checks passed 2/2 with no skips.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7135990281 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7135990281). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T15:25:02Z. --- #1619 merged at 60572183. The placed and direct builds compare all 12 raw ray words on each adapter and keep the wrong-routing and refusal controls. The author reported the RX 9070 XT and WARP readbacks, and my independent Windows Release RTX and WARP checks passed 2/2 with no skips.
MasterDomino commented 2026-11-24 16:03:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T15:32:50Z.


GPU claim note: I'm taking #1628 (composite provenance fixture) on RX 9070 XT + WARP.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136210574 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7136210574). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T15:32:50Z. --- GPU claim note: I'm taking #1628 (composite provenance fixture) on RX 9070 XT + WARP. AI-assisted.
MasterDomino commented 2026-11-24 16:03:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T15:41:57Z.


Coordination note: offered the record-side half of #1629 (locating the pixel input masks in local shader records, aggregates only, plus running @RenzoWit35's proposed scanner on them); waiting for a go-ahead there before starting.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136462444 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7136462444). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T15:41:57Z. --- Coordination note: offered the record-side half of #1629 (locating the pixel input masks in local shader records, aggregates only, plus running @RenzoWit35's proposed scanner on them); waiting for a go-ahead there before starting. AI-assisted.
ChazY11 commented 2026-11-24 17:02:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T16:38:39Z.


Proposing one small infrastructure task for this board, because it currently blocks a class of coverage rather than adding a new fixture.

Gap. X2W_SHIM_DRAW_ADAPTER=hardware selects the first high-performance, non-software adapter that passes a D3D12CreateDevice probe (tests/cpu/shim_gpu_device.h, the EnumAdapterByGpuPreference loop). There is no way to ask for the second adapter. On a two-adapter machine every shim-driven startup_*_hardware fixture therefore only ever exercises one of them.

I hit this while recording adapter results: with an Intel Arc 140T at 8086:7d51 and an RTX 5080 Laptop at 10de:2c59, the startup_* hardware tests always report the RTX. Querying CTest, 45 _hardware tests are currently absent from docs/experiments.md, and the startup_* subset is unreachable on the second adapter for exactly this reason — so no second-adapter result can be recorded for them at any driver version.

Proposal. Keep hardware as it is by default and add one optional selector, read only in the hardware branch:

X2W_SHIM_ADAPTER_MATCH=<substring>
  • when unset: current behaviour, byte for byte;
  • when set: the enumeration skips adapters whose DXGI_ADAPTER_DESC1::Description does not contain the substring (case-insensitive), and the probe loop continues as it does today;
  • when set and nothing matches: print the requested substring and exit 77, so CTest records a capability skip instead of silently falling back to the wrong adapter. A silent fallback would be the dangerous outcome: the run would look green while measuring a different GPU.

Acceptance. ctest --preset dev --no-tests=error -R '^startup_null_views_hardware$' -V — it prints device adapter <vendor>:<device> <name>, so the selected adapter is observable:

(no variable)                       -> 10de:2c59 NVIDIA GeForce RTX 5080 Laptop GPU   PASSED
X2W_SHIM_ADAPTER_MATCH=Intel        -> 8086:7d51 Intel(R) Arc(TM) 140T GPU (16GB)     PASSED
X2W_SHIM_ADAPTER_MATCH=NoSuchCard   -> "no D3D12 adapter matches ...", exit 77

The third line is the negative control: it proves the selector is honoured rather than ignored.

Why this is worth a row. It does not change any fixture's expectations and it unblocks second-adapter results for the whole startup_* family, which is where the unrecorded hardware runs are concentrated.

Claiming it in this comment. I will keep it to the header, the two-line comment block at the top, and the PR body; no fixture behaviour changes, and I will run the three lines above plus the startup_queue_wait_ and startup_view_heap_ families before and after to show the default path is unchanged.

If you would rather the selector were spelled like the offscreen_check harness (XBOX2WINDOWS_ADAPTER, substring on the same field), say so and I will use that name instead — one name for both harnesses is probably better than two.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7137986020 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7137986020). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-24T16:38:39Z. --- Proposing one small infrastructure task for this board, because it currently blocks a class of coverage rather than adding a new fixture. **Gap.** `X2W_SHIM_DRAW_ADAPTER=hardware` selects the first high-performance, non-software adapter that passes a `D3D12CreateDevice` probe (`tests/cpu/shim_gpu_device.h`, the `EnumAdapterByGpuPreference` loop). There is no way to ask for the second adapter. On a two-adapter machine every shim-driven `startup_*_hardware` fixture therefore only ever exercises one of them. I hit this while recording adapter results: with an Intel Arc 140T at `8086:7d51` and an RTX 5080 Laptop at `10de:2c59`, the `startup_*` hardware tests always report the RTX. Querying CTest, 45 `_hardware` tests are currently absent from `docs/experiments.md`, and the `startup_*` subset is unreachable on the second adapter for exactly this reason — so no second-adapter result can be recorded for them at any driver version. **Proposal.** Keep `hardware` as it is by default and add one optional selector, read only in the hardware branch: ```text X2W_SHIM_ADAPTER_MATCH=<substring> ``` - when unset: current behaviour, byte for byte; - when set: the enumeration skips adapters whose `DXGI_ADAPTER_DESC1::Description` does not contain the substring (case-insensitive), and the probe loop continues as it does today; - when set and nothing matches: print the requested substring and exit 77, so CTest records a capability skip instead of silently falling back to the wrong adapter. A silent fallback would be the dangerous outcome: the run would look green while measuring a different GPU. **Acceptance.** `ctest --preset dev --no-tests=error -R '^startup_null_views_hardware$' -V` — it prints `device adapter <vendor>:<device> <name>`, so the selected adapter is observable: ```text (no variable) -> 10de:2c59 NVIDIA GeForce RTX 5080 Laptop GPU PASSED X2W_SHIM_ADAPTER_MATCH=Intel -> 8086:7d51 Intel(R) Arc(TM) 140T GPU (16GB) PASSED X2W_SHIM_ADAPTER_MATCH=NoSuchCard -> "no D3D12 adapter matches ...", exit 77 ``` The third line is the negative control: it proves the selector is honoured rather than ignored. **Why this is worth a row.** It does not change any fixture's expectations and it unblocks second-adapter results for the whole `startup_*` family, which is where the unrecorded hardware runs are concentrated. Claiming it in this comment. I will keep it to the header, the two-line comment block at the top, and the PR body; no fixture behaviour changes, and I will run the three lines above plus the `startup_queue_wait_` and `startup_view_heap_` families before and after to show the default path is unchanged. If you would rather the selector were spelled like the `offscreen_check` harness (`XBOX2WINDOWS_ADAPTER`, substring on the same field), say so and I will use that name instead — one name for both harnesses is probably better than two.
ChazY11 commented 2026-11-24 17:02:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T16:42:09Z.


Correction to my previous comment, and it is my error, not a wording quibble.

I claimed that startup_* hardware fixtures cannot reach a second adapter and proposed a new selector for it. That is wrong. The startup fixtures do not go through tests/cpu/shim_gpu_device.h at all; they use tests/xmem_test_device.h, which already reads XBOX2WINDOWS_ADAPTER as a case-insensitive substring and reports unmatched when nothing matches — the same convention offscreen_check uses. I checked the wrong header and did not test the claim before posting it.

What I verified instead, on this machine at d90dd76b:

(no variable)                     startup_null_views_hardware -> device adapter 10de:2c59 NVIDIA GeForce RTX 5080 Laptop GPU
XBOX2WINDOWS_ADAPTER=Intel        startup_null_views_hardware -> device adapter 8086:7d51 Intel(R) Arc(TM) 140T GPU (16GB)

So the selector exists, works, and my proposed X2W_SHIM_ADAPTER_MATCH would be a second name for a solved problem. I have dropped that branch; nothing was pushed.

The run did produce a real result, which is a better contribution than the code I was about to write. With the Arc selected, the same fixture reports:

slot 19 format 86 -> 86; slot 20 format 115 -> 115; device OK

where the RTX 5080 rewrites both slots to format 28. So the null-descriptor fallback is adapter-specific within one machine: live on the RTX, idle on the Arc, idle on WARP. That is three behaviours the paragraph in docs/startup-runtime.md did not distinguish before, and I will fold it into the open PR rather than open a new one.

Two things I would like to know, briefly:

  1. Is XBOX2WINDOWS_ADAPTER intended to cover every harness (offscreen_check, xmem_test_device, and the tests/cpu/* providers that still accept only warp/hardware), or is the tests/cpu gap deliberate? If it is deliberate I will leave it alone; if not, that gap is a smaller and accurate version of what I proposed above and I will take it with a one-line acceptance test.
  2. For the startup_* family, would you rather have per-fixture second-adapter results appended where each fixture is already described, or collected into one short coverage paragraph per section? I have an Intel Arc 140T and can run the family either way.

Sorry for the noise — the check I skipped was grep for the environment variable in the file the fixture actually includes.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138075155 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7138075155). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-24T16:42:09Z. --- Correction to my previous comment, and it is my error, not a wording quibble. I claimed that `startup_*` hardware fixtures cannot reach a second adapter and proposed a new selector for it. That is wrong. The startup fixtures do not go through `tests/cpu/shim_gpu_device.h` at all; they use `tests/xmem_test_device.h`, which already reads `XBOX2WINDOWS_ADAPTER` as a case-insensitive substring and reports `unmatched` when nothing matches — the same convention `offscreen_check` uses. I checked the wrong header and did not test the claim before posting it. What I verified instead, on this machine at `d90dd76b`: ```text (no variable) startup_null_views_hardware -> device adapter 10de:2c59 NVIDIA GeForce RTX 5080 Laptop GPU XBOX2WINDOWS_ADAPTER=Intel startup_null_views_hardware -> device adapter 8086:7d51 Intel(R) Arc(TM) 140T GPU (16GB) ``` So the selector exists, works, and my proposed `X2W_SHIM_ADAPTER_MATCH` would be a second name for a solved problem. I have dropped that branch; nothing was pushed. The run did produce a real result, which is a better contribution than the code I was about to write. With the Arc selected, the same fixture reports: ```text slot 19 format 86 -> 86; slot 20 format 115 -> 115; device OK ``` where the RTX 5080 rewrites both slots to format 28. So the null-descriptor fallback is adapter-specific within one machine: live on the RTX, idle on the Arc, idle on WARP. That is three behaviours the paragraph in `docs/startup-runtime.md` did not distinguish before, and I will fold it into the open PR rather than open a new one. Two things I would like to know, briefly: 1. Is `XBOX2WINDOWS_ADAPTER` intended to cover every harness (offscreen_check, xmem_test_device, and the `tests/cpu/*` providers that still accept only `warp`/`hardware`), or is the `tests/cpu` gap deliberate? If it is deliberate I will leave it alone; if not, that gap is a smaller and accurate version of what I proposed above and I will take it with a one-line acceptance test. 2. For the `startup_*` family, would you rather have per-fixture second-adapter results appended where each fixture is already described, or collected into one short coverage paragraph per section? I have an Intel Arc 140T and can run the family either way. Sorry for the noise — the check I skipped was `grep` for the environment variable in the file the fixture actually includes.
ChazY11 commented 2026-11-24 17:02:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T16:42:51Z.


Claiming a second, smaller item while the selector question above waits.

Observation. tests/startup_null_views_check.cpp passes on any adapter, but it does not assert which outcome the adapter should produce: the R8G8B8A8 substitution is only correct when the adapter lacks the format support the view needs. So the fixture is self-consistent rather than rule-checking, and an adapter that started substituting when it does not need to would still pass.

The three implementations on this machine disagree, which is what makes the assertion possible:

RTX 5080 Laptop 32.0.15.8142   slot 19 format 86 -> 28; slot 20 format 115 -> 28   (substituted)
Intel Arc 140T 32.0.101.8132   slot 19 format 86 -> 86; slot 20 format 115 -> 115   (untouched)
WARP 10.0.26100.9818           slot 19 format 86 -> 86; slot 20 format 115 -> 115   (untouched)

Proposal. Query CheckFeatureSupport for the two formats the rule names — B5G5R5A1_UNORM for the typed-UAV case (slot 19) and B4G4R4A4_UNORM for the render-target case (slot 20) — and then require the slot result that follows from that answer: substituted when unsupported, preserved when supported. Same fixture, one added expectation; no new binary.

Negative control. The rule check has to fail if the substitution is unconditional: forcing the wrapper to always substitute must fail on the Arc/WARP side, and forcing it never to substitute must fail on the RTX. I will run both and report the failure lines.

Acceptance. ctest --preset dev --no-tests=error -R '^startup_null_views_' -V with XBOX2WINDOWS_ADAPTER unset, set to Intel, and set to NVIDIA on this machine; all three should pass and each should name the expected outcome it checked.

Scope. One test file, plus the changed message lines. It does not change src/startup_stubs/null_texture_view.h; if the feature query and the substitution disagree anywhere, the fixture fails instead of hiding it, and that disagreement would be the interesting result.

If this is not worth a row, say so and I will drop it — the alternative I have is simply recording the Arc column for the startup_* family, which needs no code at all.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138093040 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7138093040). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-24T16:42:51Z. --- Claiming a second, smaller item while the selector question above waits. **Observation.** `tests/startup_null_views_check.cpp` passes on any adapter, but it does not assert *which* outcome the adapter should produce: the R8G8B8A8 substitution is only correct when the adapter lacks the format support the view needs. So the fixture is self-consistent rather than rule-checking, and an adapter that started substituting when it does not need to would still pass. The three implementations on this machine disagree, which is what makes the assertion possible: ```text RTX 5080 Laptop 32.0.15.8142 slot 19 format 86 -> 28; slot 20 format 115 -> 28 (substituted) Intel Arc 140T 32.0.101.8132 slot 19 format 86 -> 86; slot 20 format 115 -> 115 (untouched) WARP 10.0.26100.9818 slot 19 format 86 -> 86; slot 20 format 115 -> 115 (untouched) ``` **Proposal.** Query `CheckFeatureSupport` for the two formats the rule names — `B5G5R5A1_UNORM` for the typed-UAV case (slot 19) and `B4G4R4A4_UNORM` for the render-target case (slot 20) — and then require the slot result that follows from that answer: substituted when unsupported, preserved when supported. Same fixture, one added expectation; no new binary. **Negative control.** The rule check has to fail if the substitution is unconditional: forcing the wrapper to always substitute must fail on the Arc/WARP side, and forcing it never to substitute must fail on the RTX. I will run both and report the failure lines. **Acceptance.** `ctest --preset dev --no-tests=error -R '^startup_null_views_' -V` with `XBOX2WINDOWS_ADAPTER` unset, set to `Intel`, and set to `NVIDIA` on this machine; all three should pass and each should name the expected outcome it checked. **Scope.** One test file, plus the changed message lines. It does not change `src/startup_stubs/null_texture_view.h`; if the feature query and the substitution disagree anywhere, the fixture fails instead of hiding it, and that disagreement would be the interesting result. If this is not worth a row, say so and I will drop it — the alternative I have is simply recording the Arc column for the `startup_*` family, which needs no code at all.
ChazY11 commented 2026-11-24 17:02:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T16:50:02Z.


Withdrawing the second claim too, and this time the check was cheap: I ran the two mutations the fixture is supposed to survive before writing anything further.

tests/startup_null_views_check.cpp already asserts the rule I proposed to add. Lines 41 and 54 are:

if (changed == !!(support.Support1 & D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW)) return 1;
if (rtv_changed == !!(support.Support1 & D3D12_FORMAT_SUPPORT1_RENDER_TARGET)) return 1;

That is exactly "substituted must equal not-supported", for both the UAV and the RTV case, against a live CheckFeatureSupport. I read the printed slot NN format a -> b lines and the paragraph in docs/startup-runtime.md, and never read the assertions twenty lines above them.

Both directions are covered. I mutated src/startup_stubs/null_texture_view.h and rebuilt only startup_null_views_check:

mutation what it breaks Arc 140T WARP RTX 5080
!needs_null_unorm_fallback(...) -> false substitutes even when the format is supported Failed Failed not needed
guard left as the earlier ` true` never substitutes, even when unsupported Passed

So the fixture fails in the on-the-wrong-side direction on the adapter that can distinguish it, and the two adapters cover the two halves: the Arc and WARP catch "always substitute" because both formats are supported there, and the RTX catches "never substitute" because neither format is supported there. Nothing needs adding, and my proposed CheckFeatureSupport check would have duplicated lines 41 and 54.

What is worth recording from the run, and not recorded anywhere I could find, is that pair of mutants with the adapter that catches each. If you want it, the natural home is a sentence in the null-view paragraph of docs/startup-runtime.md saying which side each backend covers, since the paragraph currently presents the three observed format rows without saying how the rule is guarded. I will draft that if you want it; otherwise the two tables above are in this thread and that is enough.

Two corrections in two rounds is not a good rate, and the cause is the same both times: reading the fixture's printed output instead of the code that decides it. I have stopped proposing changes to files I have not read end to end, and I will run a mutation before claiming that a guard is missing rather than after.

Still open from me: the one-line question about whether tests/cpu/* should accept XBOX2WINDOWS_ADAPTER like xmem_test_device.h does. That one I will not act on without an answer.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7138277120 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7138277120). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-24T16:50:02Z. --- Withdrawing the second claim too, and this time the check was cheap: I ran the two mutations the fixture is supposed to survive before writing anything further. `tests/startup_null_views_check.cpp` already asserts the rule I proposed to add. Lines 41 and 54 are: ```cpp if (changed == !!(support.Support1 & D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW)) return 1; if (rtv_changed == !!(support.Support1 & D3D12_FORMAT_SUPPORT1_RENDER_TARGET)) return 1; ``` That is exactly "substituted must equal not-supported", for both the UAV and the RTV case, against a live `CheckFeatureSupport`. I read the printed `slot NN format a -> b` lines and the paragraph in `docs/startup-runtime.md`, and never read the assertions twenty lines above them. **Both directions are covered.** I mutated `src/startup_stubs/null_texture_view.h` and rebuilt only `startup_null_views_check`: | mutation | what it breaks | Arc 140T | WARP | RTX 5080 | |---|---|---|---|---| | `!needs_null_unorm_fallback(...)` -> `false` | substitutes even when the format is supported | **Failed** | **Failed** | not needed | | guard left as the earlier `|| true` | never substitutes, even when unsupported | Passed | Passed | **Failed** | So the fixture fails in the on-the-wrong-side direction on the adapter that can distinguish it, and the two adapters cover the two halves: the Arc and WARP catch "always substitute" because both formats are supported there, and the RTX catches "never substitute" because neither format is supported there. Nothing needs adding, and my proposed `CheckFeatureSupport` check would have duplicated lines 41 and 54. What is worth recording from the run, and not recorded anywhere I could find, is that pair of mutants with the adapter that catches each. If you want it, the natural home is a sentence in the null-view paragraph of `docs/startup-runtime.md` saying which side each backend covers, since the paragraph currently presents the three observed format rows without saying how the rule is guarded. I will draft that if you want it; otherwise the two tables above are in this thread and that is enough. Two corrections in two rounds is not a good rate, and the cause is the same both times: reading the fixture's printed output instead of the code that decides it. I have stopped proposing changes to files I have not read end to end, and I will run a mutation before claiming that a guard is missing rather than after. Still open from me: the one-line question about whether `tests/cpu/*` should accept `XBOX2WINDOWS_ADAPTER` like `xmem_test_device.h` does. That one I will not act on without an answer.
MasterDomino commented 2026-11-24 20:01:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T19:17:39Z.


A gap summary for the console's unified memory model, from the #1758 work. I'm posting it so it's on record where the virtual-memory contract lives. Nothing here is a claim beyond the address-placement PR already scoped on #1758.

What is already established (source-built or documented)

  • Address translation in the title. It keeps two equal reservations, A (CPU) and B (GPU), and translates by offset: gpu = cpu − A + B and the reverse. Addresses outside A/B pass through unchanged (docs/experiments.md, "CPU/GPU range translation").
  • Title memory as a GPU heap. vm_translation_device_{warp,hardware} opens a committed CPU range with OpenExistingHeapFromAddress and places a buffer over it. GPU reads and writes then go through that memory without copies. The same tests record GPU VA widths (40 bits on the RTX 3080 Ti; 32 per resource on WARP).
  • A large GPU range. d3d12_xs_range covers 32 GiB in ≤4 GiB windows, with tile mapping, lifetime and partial-failure tests.
  • The mirror and the page contract.
    • The GPU-view mirror (X2W_XMEM_GPU_MIRROR) maps each physical page section into both views (docs/startup-runtime.md).
    • The physical-page contract is #880; commit pressure from sections is #1199.

How the live runtime handles title memory today

Mostly by copying:

  • title data reached by GPU address is copied into a desktop upload ring per draw;
  • textures are uploaded to desktop resources: about 1,370 textures, about 5.4 GiB in the RX 9070 XT runs on #870;
  • placed resources get desktop counterparts.

That is enough for the first-run UI, but the GPU never works directly on title memory.

Gaps the post-confirm load exposes (#1758 runs)

  1. Address width.
    • The title passes CPU addresses from blocks outside A/B straight through as GPU addresses, so they must fit in 40 bits.
    • Traced by elimination to the startup commit blocks with attributes 0x283 (large-page XMemVirtualAlloc without an address, through commit_startup_block). Lowering only those passes the BVH builder's 40-bit check. Lowering only the startup reservations or only the placeholder reserves does not.
    • The scoped placement PR covers this path only.
  2. Upload memory from the command list. The BVH builder asks command-list slot 148 for upload memory, and today it gets null. Main development owns this, with the #1774 arena for the ABI/lifetime control.
  3. Direct command writes (hypothesis, not observed). The same builder routine appears to write command packets into the list object's own buffer. Per the note on #1758, I'm treating it as a hypothesis until a run reaches it.
  4. Coherence. CPU writes after a copy, or GPU writes into title memory that the CPU reads back, aren't covered by the copy model. I haven't measured a case yet. It becomes relevant once loading produces GPU-written data the title reads.
  5. Memory doubling.
    • Peak commit reaches 14.6–16.2 GiB during loading, against roughly 10–13 GiB attributable to the title (#870).
    • Title pages and desktop copies of textures and resources coexist.
    • The default -MemoryGiB 14 cap stops these runs.

Question

Would you like a dedicated design issue for how far the runtime should move from copies to direct use of title memory (the OpenExistingHeapFromAddress path already tested here), or should that stay inside #874's task table? I can draft the measurements a design would need: which title ranges the GPU actually reads or writes, and how much of the copied volume could be shared. Placement and slot 148 stay scoped as they are.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7141885173 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7141885173). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T19:17:39Z. --- A gap summary for the console's unified memory model, from the #1758 work. I'm posting it so it's on record where the virtual-memory contract lives. Nothing here is a claim beyond the address-placement PR already scoped on #1758. ## What is already established (source-built or documented) - **Address translation in the title.** It keeps two equal reservations, A (CPU) and B (GPU), and translates by offset: `gpu = cpu − A + B` and the reverse. Addresses outside A/B pass through unchanged (docs/experiments.md, "CPU/GPU range translation"). - **Title memory as a GPU heap.** `vm_translation_device_{warp,hardware}` opens a committed CPU range with `OpenExistingHeapFromAddress` and places a buffer over it. GPU reads and writes then go through that memory without copies. The same tests record GPU VA widths (40 bits on the RTX 3080 Ti; 32 per resource on WARP). - **A large GPU range.** `d3d12_xs_range` covers 32 GiB in ≤4 GiB windows, with tile mapping, lifetime and partial-failure tests. - **The mirror and the page contract.** - The GPU-view mirror (`X2W_XMEM_GPU_MIRROR`) maps each physical page section into both views (docs/startup-runtime.md). - The physical-page contract is #880; commit pressure from sections is #1199. ## How the live runtime handles title memory today Mostly by copying: - title data reached by GPU address is copied into a desktop upload ring per draw; - textures are uploaded to desktop resources: about 1,370 textures, about 5.4 GiB in the RX 9070 XT runs on #870; - placed resources get desktop counterparts. That is enough for the first-run UI, but the GPU never works directly on title memory. ## Gaps the post-confirm load exposes (#1758 runs) 1. **Address width.** - The title passes CPU addresses from blocks outside A/B straight through as GPU addresses, so they must fit in 40 bits. - Traced by elimination to the startup commit blocks with attributes `0x283` (large-page `XMemVirtualAlloc` without an address, through `commit_startup_block`). Lowering only those passes the BVH builder's 40-bit check. Lowering only the startup reservations or only the placeholder reserves does not. - The scoped placement PR covers this path only. 2. **Upload memory from the command list.** The BVH builder asks command-list slot 148 for upload memory, and today it gets null. Main development owns this, with the #1774 arena for the ABI/lifetime control. 3. **Direct command writes (hypothesis, not observed).** The same builder routine appears to write command packets into the list object's own buffer. Per the note on #1758, I'm treating it as a hypothesis until a run reaches it. 4. **Coherence.** CPU writes after a copy, or GPU writes into title memory that the CPU reads back, aren't covered by the copy model. I haven't measured a case yet. It becomes relevant once loading produces GPU-written data the title reads. 5. **Memory doubling.** - Peak commit reaches 14.6–16.2 GiB during loading, against roughly 10–13 GiB attributable to the title (#870). - Title pages and desktop copies of textures and resources coexist. - The default `-MemoryGiB 14` cap stops these runs. ## Question Would you like a dedicated design issue for how far the runtime should move from copies to direct use of title memory (the `OpenExistingHeapFromAddress` path already tested here), or should that stay inside #874's task table? I can draft the measurements a design would need: which title ranges the GPU actually reads or writes, and how much of the copied volume could be shared. Placement and slot 148 stay scoped as they are. AI-assisted.
Lifither commented 2026-11-24 20:01:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T19:17:59Z.


RX 590 retest for the COPY → DIRECT, descriptor paging, and CreateSamplerX rows. Tested upstream ddeaa5ebd11cfc03248c72e5d0dbbe7d005bd20b on Windows 11 x64 build 26300.9974, Release, clang-cl 23.1.6 with /EHa, Windows SDK 10.0.26100, DXC 1.9.2609.5. Radeon RX 590 Series (1002:67df), driver 31.0.21923.1000. WARP was Microsoft Basic Render Driver (1414:008c), version 10.0.26100.9818. The offscreen descriptor and sampler tests reported the D3D12 debug layer as unavailable. The copy-queue fixture did not report debug-layer status.

cmake --build <build> --target vm_copy_queue_check offscreen_check
$env:XBOX2WINDOWS_ADAPTER = 'RX 590'
ctest --test-dir <build> --no-tests=error -R '^(vm_copy_queue|vm_page_provenance|descriptor_heap_paging(_swapped)?|startup_sampler_x(_swapped)?)_(hardware|warp)$' -V
ctest --test-dir <build> --no-tests=error -R '^vm_copy_queue_hardware$' -V
Case RX 590 WARP
vm_copy_queue FAIL, reproduced in an isolated retest PASS
vm_page_provenance PASS PASS
descriptor_heap_paging, including swapped control 2/2 PASS 2/2 PASS
startup_sampler_x, including swapped control 2/2 PASS 2/2 PASS

COPY → DIRECT: On the RX 590 both runs printed early mismatches=0 ordered mismatches=16384 early vs remapped=16384/16384. The early DIRECT read matched tile 0. After COPY updated the mapping and DIRECT waited on the remap fence, all 16,384 DWORDs differed from the expected tile 1 pattern. WARP printed early mismatches=0 ordered mismatches=0 early vs remapped=16384/16384. The fixture prints aggregate mismatch counts. The actual post-remap values and the cause are open.

Page provenance: Both backends had 0/1024 mismatches at each of cross-page upload, prior GPU snapshot after CPU writes, and re-upload.

Descriptors and samplers: Both adapters returned the same descriptor words (a00100ff,a0010100,b00200ff,b0020100) and the control reversed the two pairs. Both adapters matched all 21 sampler values for each binding order, with tables 0 and 1 exchanging their values in the swapped case.

Total for these rows: 11 passes, one failure, zero skips in the combined run. Source-built fixtures only. Codex assisted with the build, test runs, and reporting.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7141893310 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7141893310). Originally posted by [Lifither](https://github.com/Lifither) on 2026-11-24T19:17:59Z. --- RX 590 retest for the COPY → DIRECT, descriptor paging, and CreateSamplerX rows. Tested upstream `ddeaa5ebd11cfc03248c72e5d0dbbe7d005bd20b` on Windows 11 x64 build 26300.9974, Release, clang-cl 23.1.6 with `/EHa`, Windows SDK 10.0.26100, DXC 1.9.2609.5. Radeon RX 590 Series (1002:67df), driver 31.0.21923.1000. WARP was Microsoft Basic Render Driver (1414:008c), version 10.0.26100.9818. The offscreen descriptor and sampler tests reported the D3D12 debug layer as unavailable. The copy-queue fixture did not report debug-layer status. ```powershell cmake --build <build> --target vm_copy_queue_check offscreen_check $env:XBOX2WINDOWS_ADAPTER = 'RX 590' ctest --test-dir <build> --no-tests=error -R '^(vm_copy_queue|vm_page_provenance|descriptor_heap_paging(_swapped)?|startup_sampler_x(_swapped)?)_(hardware|warp)$' -V ctest --test-dir <build> --no-tests=error -R '^vm_copy_queue_hardware$' -V ``` | Case | RX 590 | WARP | | --- | --- | --- | | `vm_copy_queue` | FAIL, reproduced in an isolated retest | PASS | | `vm_page_provenance` | PASS | PASS | | `descriptor_heap_paging`, including swapped control | 2/2 PASS | 2/2 PASS | | `startup_sampler_x`, including swapped control | 2/2 PASS | 2/2 PASS | **COPY → DIRECT:** On the RX 590 both runs printed `early mismatches=0 ordered mismatches=16384 early vs remapped=16384/16384`. The early DIRECT read matched tile 0. After COPY updated the mapping and DIRECT waited on the remap fence, all 16,384 DWORDs differed from the expected tile 1 pattern. WARP printed `early mismatches=0 ordered mismatches=0 early vs remapped=16384/16384`. The fixture prints aggregate mismatch counts. The actual post-remap values and the cause are open. **Page provenance:** Both backends had 0/1024 mismatches at each of cross-page upload, prior GPU snapshot after CPU writes, and re-upload. **Descriptors and samplers:** Both adapters returned the same descriptor words (`a00100ff,a0010100,b00200ff,b0020100`) and the control reversed the two pairs. Both adapters matched all 21 sampler values for each binding order, with tables 0 and 1 exchanging their values in the swapped case. Total for these rows: 11 passes, one failure, zero skips in the combined run. Source-built fixtures only. Codex assisted with the build, test runs, and reporting.
Lifither commented 2026-11-24 20:01:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Lifither on 2026-11-24T19:25:28Z.


RX 590 and WARP retest for the raw address windows and copied descriptor records rows (#1025 and #1060).

Tested upstream 82749f0f84d9f8b571566fdf564d530e71f499aa on Windows 11 x64 build 26300.9974, Release, clang-cl 23.1.6 with /EHa, Windows SDK 10.0.26100, DXC 1.9.2609.5. Radeon RX 590 Series (1002:67df), driver 31.0.21923.1000. WARP: Microsoft Basic Render Driver (1414:008c), version 10.0.26100.9818. The offscreen descriptor checks reported the D3D12 debug layer as unavailable. The VM fixture did not report debug-layer status.

cmake --build <build> --target offscreen_check vm_copy_queue_check
$env:XBOX2WINDOWS_ADAPTER = 'RX 590'
ctest --test-dir <build> --no-tests=error -R '^(vm_raw_(srv|uav)|descriptor_(window_(submissions|stale)|record_copy_(live|stale|unknown)))_(hardware|warp)$' -V

14 passed, zero failed, zero skipped. Each backend passed two raw-window cases and five descriptor cases.

  • Raw SRV: zero mismatches for cross-page and shifted reads. The negative control differed at all 1,024 words on both backends.
  • Raw UAV: zero mismatches for normal and swapped bindings on both backends. The normal case changed five of 2,048 words. The swap preserved all five originally intended words. All 11 refusal checks passed.
  • Descriptor windows and record copies: live cases read the second word 2468ace0; both stale controls read 13579bdf instead, as expected. The unknown-record guard passed on both backends.

Source-built fixtures only. Codex assisted with testing and reporting.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7142075731 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142075731). Originally posted by [Lifither](https://github.com/Lifither) on 2026-11-24T19:25:28Z. --- RX 590 and WARP retest for the raw address windows and copied descriptor records rows (#1025 and #1060). Tested upstream `82749f0f84d9f8b571566fdf564d530e71f499aa` on Windows 11 x64 build 26300.9974, Release, clang-cl 23.1.6 with `/EHa`, Windows SDK 10.0.26100, DXC 1.9.2609.5. Radeon RX 590 Series (1002:67df), driver 31.0.21923.1000. WARP: Microsoft Basic Render Driver (1414:008c), version 10.0.26100.9818. The offscreen descriptor checks reported the D3D12 debug layer as unavailable. The VM fixture did not report debug-layer status. ```powershell cmake --build <build> --target offscreen_check vm_copy_queue_check $env:XBOX2WINDOWS_ADAPTER = 'RX 590' ctest --test-dir <build> --no-tests=error -R '^(vm_raw_(srv|uav)|descriptor_(window_(submissions|stale)|record_copy_(live|stale|unknown)))_(hardware|warp)$' -V ``` 14 passed, zero failed, zero skipped. Each backend passed two raw-window cases and five descriptor cases. - Raw SRV: zero mismatches for cross-page and shifted reads. The negative control differed at all 1,024 words on both backends. - Raw UAV: zero mismatches for normal and swapped bindings on both backends. The normal case changed five of 2,048 words. The swap preserved all five originally intended words. All 11 refusal checks passed. - Descriptor windows and record copies: live cases read the second word `2468ace0`; both stale controls read `13579bdf` instead, as expected. The unknown-record guard passed on both backends. Source-built fixtures only. Codex assisted with testing and reporting.
Lifither commented 2026-11-24 20:01:19 +00:00 (Migrated from github.com)
Author
Contributor

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


Follow-up to the RX 590 COPY → DIRECT report. I built d4cbfcd4558ccb80dd42ced9a709c178b1f5cc07, the revision reported passing on RX 6600M. Windows 11 x64 build 26300.9974, Release, clang-cl 23.1.6 with /EHa, Windows SDK 10.0.26100. Radeon RX 590 Series (1002:67df), driver 31.0.21923.1000. WARP: Microsoft Basic Render Driver, version 10.0.26100.9818. The VM fixture did not report debug-layer status.

cmake --build <build> --target vm_copy_queue_check
$env:XBOX2WINDOWS_ADAPTER = 'RX 590'
ctest --test-dir <build> --no-tests=error -R '^vm_(copy_queue|page_provenance)_(hardware|warp)$' -V

The RX 590 again reported early mismatches=0 ordered mismatches=16384 early vs remapped=16384/16384. WARP reported zero early and ordered mismatches. Page Provenance passed on both with 0/1024 mismatches at each of its three checkpoints. Total: three passes, one failure, zero skips.

The RX 590 failure is present at both the older comparison revision and the later revision from our original report. The comparison with RX 6600M aligns the source revision. Adapter, driver, Windows build, and compiler differ between the two reports.

Source-built fixtures only. Codex assisted with build, testing and reporting.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7142379308 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142379308). Originally posted by [Lifither](https://github.com/Lifither) on 2026-11-24T19:38:16Z. --- Follow-up to the [RX 590 COPY → DIRECT report](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7141893310). I built `d4cbfcd4558ccb80dd42ced9a709c178b1f5cc07`, the [revision reported passing on RX 6600M](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7118233810). Windows 11 x64 build 26300.9974, Release, clang-cl 23.1.6 with `/EHa`, Windows SDK 10.0.26100. Radeon RX 590 Series (1002:67df), driver 31.0.21923.1000. WARP: Microsoft Basic Render Driver, version 10.0.26100.9818. The VM fixture did not report debug-layer status. ```powershell cmake --build <build> --target vm_copy_queue_check $env:XBOX2WINDOWS_ADAPTER = 'RX 590' ctest --test-dir <build> --no-tests=error -R '^vm_(copy_queue|page_provenance)_(hardware|warp)$' -V ``` The RX 590 again reported `early mismatches=0 ordered mismatches=16384 early vs remapped=16384/16384`. WARP reported zero early and ordered mismatches. Page Provenance passed on both with 0/1024 mismatches at each of its three checkpoints. Total: three passes, one failure, zero skips. The RX 590 failure is present at both the older comparison revision and the later revision from our original report. The comparison with RX 6600M aligns the source revision. Adapter, driver, Windows build, and compiler differ between the two reports. Source-built fixtures only. Codex assisted with build, testing and reporting.
MasterDomino commented 2026-11-24 20:01:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T19:42:44Z.


The scoped address-placement change from #1758 is up as #1860 (opt-in, 0x283 startup blocks only).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7142482448 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142482448). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T19:42:44Z. --- The scoped address-placement change from #1758 is up as #1860 (opt-in, `0x283` startup blocks only). AI-assisted.
MasterDomino commented 2026-11-24 20:01:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T19:43:19Z.


A third AMD data point for the COPY → DIRECT case @Lifither reported on the RX 590.

Setup: main at 82749f0f, built in the worktree of #1860, whose only change is in the xmem shim and is not used by these fixtures. Windows 11 build 26300.9974, MSVC 19.44.35221, dev preset. Radeon RX 9070 XT (1002:7550), driver 32.0.31044.16; WARP as the control. The fixture did not report debug-layer status.

$env:XBOX2WINDOWS_ADAPTER = '9070'
ctest --preset dev --no-tests=error -R '^vm_(copy_queue|page_provenance)_(hardware|warp)$' -V
Case RX 9070 XT WARP
vm_copy_queue PASS: early mismatches=0 ordered mismatches=0 early vs remapped=16384/16384 PASS, same counts
vm_page_provenance PASS: 0/1024 at each of the three checkpoints PASS, same

4 passed, 0 failed, 0 skipped. So the ordered COPY → DIRECT remap is observed correctly on RDNA4 here, alongside the RX 6600M pass and the RX 590 (Polaris) failure. Adapter generation and driver branch differ between all three.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7142495780 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7142495780). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T19:43:19Z. --- A third AMD data point for the COPY → DIRECT case @Lifither reported on the RX 590. **Setup:** `main` at `82749f0f`, built in the worktree of #1860, whose only change is in the xmem shim and is not used by these fixtures. Windows 11 build 26300.9974, MSVC 19.44.35221, `dev` preset. Radeon RX 9070 XT (1002:7550), driver 32.0.31044.16; WARP as the control. The fixture did not report debug-layer status. ```powershell $env:XBOX2WINDOWS_ADAPTER = '9070' ctest --preset dev --no-tests=error -R '^vm_(copy_queue|page_provenance)_(hardware|warp)$' -V ``` | Case | RX 9070 XT | WARP | |---|---|---| | `vm_copy_queue` | PASS: `early mismatches=0 ordered mismatches=0 early vs remapped=16384/16384` | PASS, same counts | | `vm_page_provenance` | PASS: 0/1024 at each of the three checkpoints | PASS, same | 4 passed, 0 failed, 0 skipped. So the ordered COPY → DIRECT remap is observed correctly on RDNA4 here, alongside the RX 6600M pass and the RX 590 (Polaris) failure. Adapter generation and driver branch differ between all three. AI-assisted.
JustinDCosta commented 2026-11-24 21:01:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JustinDCosta on 2026-11-24T20:17:09Z.


I would like to take the independent source-built ABI/fence control for the slot 148 upload lifetime item in #874.

Scope: exercise the upload allocation through the command-list interface after the production wiring is available, checking CPU/GPU address correspondence and required alignment, refusal after Close, and allocation A remaining valid behind a GPU fence while Reset begins a new allocation B. After the fence completes, verify both recorded payloads and page lifetime. Keep the production slot wiring with main development.

I will use source-built inputs only and report WARP and RTX 3060 Laptop GPU separately. No title files or dumps.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7143305649 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7143305649). Originally posted by [JustinDCosta](https://github.com/JustinDCosta) on 2026-11-24T20:17:09Z. --- I would like to take the independent source-built ABI/fence control for the slot 148 upload lifetime item in #874. Scope: exercise the upload allocation through the command-list interface after the production wiring is available, checking CPU/GPU address correspondence and required alignment, refusal after Close, and allocation A remaining valid behind a GPU fence while Reset begins a new allocation B. After the fence completes, verify both recorded payloads and page lifetime. Keep the production slot wiring with main development. I will use source-built inputs only and report WARP and RTX 3060 Laptop GPU separately. No title files or dumps.
JustinDCosta commented 2026-11-24 21:01:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JustinDCosta on 2026-11-24T20:19:44Z.


I confirmed that main contains the standalone #1774 Arena and its allocation/idle-reset fixture, but no slot 148 integration is present yet. To keep this control on the real command-list ABI rather than a test-only mock, could main development link the wiring PR/branch or share the intended integration point when it is ready? I can build the source-owned fence control against that while leaving production wiring untouched.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7143374903 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7143374903). Originally posted by [JustinDCosta](https://github.com/JustinDCosta) on 2026-11-24T20:19:44Z. --- I confirmed that main contains the standalone #1774 Arena and its allocation/idle-reset fixture, but no slot 148 integration is present yet. To keep this control on the real command-list ABI rather than a test-only mock, could main development link the wiring PR/branch or share the intended integration point when it is ready? I can build the source-owned fence control against that while leaving production wiring untouched.
MasterDomino commented 2026-11-24 21:27:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T21:03:18Z.


Following up on the gap summary above: I've opened #1914 as a dedicated design record for how the runtime backs the console's unified CPU/GPU memory on desktop. It covers copies vs direct use of title memory, a hybrid, and who translates title addresses.

I'm flagging it because it is a sensitive, cross-cutting decision: it fixes the memory backing behind xmem, the D3D12 stand-in, storage and the translators. One data point from current main: of 3,575 placed resources in one run, only 67 are aliased with title memory. The other 3,508 get separate desktop copies, because title pages are mapped sections that the address-based path refuses.

The concrete rows here (placement #1860, slot 148) stay as scoped. #1914 only asks which overall direction to take and which measurements should come first. I'm not starting any implementation before that is decided.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7144414157 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7144414157). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T21:03:18Z. --- Following up on the [gap summary above](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7141885173): I've opened **#1914** as a dedicated design record for how the runtime backs the console's unified CPU/GPU memory on desktop. It covers copies vs direct use of title memory, a hybrid, and who translates title addresses. I'm flagging it because it is a sensitive, cross-cutting decision: it fixes the memory backing behind xmem, the D3D12 stand-in, storage and the translators. One data point from current `main`: of 3,575 placed resources in one run, only 67 are aliased with title memory. The other 3,508 get separate desktop copies, because title pages are mapped sections that the address-based path refuses. The concrete rows here (placement #1860, slot 148) stay as scoped. #1914 only asks which overall direction to take and which measurements should come first. I'm not starting any implementation before that is decided. AI-assisted.
MasterDomino commented 2026-11-24 22:01:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T21:58:15Z.


For the #1914 unified-memory direction: the first shared vs copied vs refused-sharing comparison of one linear buffer is up as #1942. It is test-only and reuses the source-built heap and cross-queue controls from here (vm_page_provenance_*, vm_copy_queue_*). The summary is in #1914.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7145629725 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7145629725). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-24T21:58:15Z. --- For the #1914 unified-memory direction: the first shared vs copied vs refused-sharing comparison of one linear buffer is up as #1942. It is test-only and reuses the source-built heap and cross-queue controls from here (`vm_page_provenance_*`, `vm_copy_queue_*`). The summary is in #1914. AI-assisted.
Not-Saii commented 2026-11-25 01:01:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-24T23:23:47Z.


An NVIDIA data point for the COPY → DIRECT cross-page ordering retest row, alongside the RX 6600M, RX 590 and RX 9070 XT reports.

Setup: main at 1744710c, dev preset (Debug), MSVC 14.44.35207. Windows 11 build 26300.9974. NVIDIA GeForce RTX 4090 (10de:2684), driver 32.0.16.1088; WARP as the control. The fixture did not report debug-layer status.

ctest --preset dev --no-tests=error -R '^vm_(copy_queue|page_provenance)_(hardware|warp)$' -V
Case RTX 4090 WARP
vm_copy_queue: early read / ordered read mismatches 0 / 0 0 / 0
vm_copy_queue: early vs remapped differing 16384/16384 16384/16384
vm_page_provenance: cross-page upload in mapped order 0/1024 0/1024
vm_page_provenance: GPU keeps prior snapshot after CPU writes 0/1024 0/1024
vm_page_provenance: re-upload observes updated CPU pages 0/1024 0/1024

Result: 4/4 passed, no capability skips. The RX 590 ordered-copy failure does not reproduce on this NVIDIA adapter.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147350817 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7147350817). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-24T23:23:47Z. --- An NVIDIA data point for the **COPY → DIRECT cross-page ordering retest** row, alongside the RX 6600M, RX 590 and RX 9070 XT reports. **Setup:** `main` at `1744710c`, `dev` preset (Debug), MSVC 14.44.35207. Windows 11 build 26300.9974. NVIDIA GeForce RTX 4090 (10de:2684), driver 32.0.16.1088; WARP as the control. The fixture did not report debug-layer status. ```powershell ctest --preset dev --no-tests=error -R '^vm_(copy_queue|page_provenance)_(hardware|warp)$' -V ``` | Case | RTX 4090 | WARP | |---|---|---| | `vm_copy_queue`: early read / ordered read mismatches | 0 / 0 | 0 / 0 | | `vm_copy_queue`: early vs remapped differing | 16384/16384 | 16384/16384 | | `vm_page_provenance`: cross-page upload in mapped order | 0/1024 | 0/1024 | | `vm_page_provenance`: GPU keeps prior snapshot after CPU writes | 0/1024 | 0/1024 | | `vm_page_provenance`: re-upload observes updated CPU pages | 0/1024 | 0/1024 | **Result:** 4/4 passed, no capability skips. The RX 590 ordered-copy failure does not reproduce on this NVIDIA adapter.
MasterDomino commented 2026-11-25 06:01:38 +00:00 (Migrated from github.com)
Author
Contributor

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


The first production slice of the #1914 direction is up as #2218: opt-in linear-buffer backing for slot 133, by sharing or a submit-time copy. The summary is in #1914.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7154062939 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7154062939). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-25T05:42:33Z. --- The first production slice of the #1914 direction is up as #2218: opt-in linear-buffer backing for slot 133, by sharing or a submit-time copy. The summary is in #1914. AI-assisted.
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:46:16Z.


Taking the residency accounting requested on #870. The plan is one PR:

  • Opt-in budget samples. Each sample logs the adapter's local and non-local budget and usage, plus aggregate live bytes by category:

    • placed resources;
    • committed textures;
    • committed buffers;
    • upload and readback heaps.

    Underlying heaps are counted once.

  • A source-built allocate/release fixture. It checks that every category returns to its baseline, with a control that fails if a release is missed.

Once it is in, I'll repeat the GTX 1060 replay with the workload unchanged and post only the budget and count summary and the DRED status here.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7156233325 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7156233325). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T07:46:16Z. --- Taking the residency accounting requested on [#870](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7156163956). The plan is one PR: - **Opt-in budget samples.** Each sample logs the adapter's local and non-local budget and usage, plus aggregate live bytes by category: - placed resources; - committed textures; - committed buffers; - upload and readback heaps. Underlying heaps are counted once. - **A source-built allocate/release fixture.** It checks that every category returns to its baseline, with a control that fails if a release is missed. Once it is in, I'll repeat the GTX 1060 replay with the workload unchanged and post only the budget and count summary and the DRED status here.
Jess-Doit commented 2026-11-25 09:04:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T08:40:00Z.


GTX 1060 budget and count summary, as requested on #870

Build: #2256 (b5fd19f9, on main e94e14ff) with X2W_D3D12_BUDGET=1, plus local DRED.

  • I reverted #2242 locally, because without that revert the run stops at the first menu input (details).
  • Otherwise the workload matches the earlier runs: same host and flags, a 22 GiB job cap, the same initial warm cache, and input by hand.

Stop:

  • second-chance read access violation at a small offset from a null pointer in the application, at 619.5 s and 17,737 frames;
  • 8 placed-resource creations were refused with E_OUTOFMEMORY before it;
  • no device removal, so DRED has nothing to report;
  • process commit peaked at 16,353 MiB.

Live category bytes, in MiB, with object counts in brackets. retained means released by the application but still held by the shim.

Time Local used / budget Committed textures, live Textures, retained Buffers, live Placed, live Upload Heaps (counted once)
5 s 608 / 5,261 287 (32) 0 174 (2) 0 (1) 256 (1) 2,199 (1)
57 s 5,441 / 5,082 4,324 (1,223) 99 (13) 1,054 (3,330) 161 (56) 256 (4) 3,371 (2)
207 s 5,441 / 5,110 4,324 (1,220) 99 (18) 1,054 (3,330) 161 (56) 256 (4) 3,371 (2)
357 s 5,990 / 5,101 4,797 (1,485) 174 (39) 1,056 (3,358) 169 (58) 256 (4) 3,371 (2)
507 s 8,684 / 5,105 7,429 (2,653) 232 (70) 1,060 (3,360) 169 (58) 256 (4) 3,371 (2)
608 s 9,169 / 5,101 7,883 (2,985) 263 (91) 1,061 (3,374) 169 (58) 256 (4) 3,371 (2)

What these counts show:

  • The growth is live committed textures. They went from 4.3 to 7.9 GiB and from 1,220 to 2,985 objects. Retained textures stayed under 0.3 GiB, about 3% of local usage at the end, so missed retirement is not the main driver.
  • Everything else held flat after the first minute: buffers, placed resources, upload, readback and the two heaps.
  • Local usage was over budget from about 57 s and reached 1.8 times the budget. Readback stayed at 32 MiB and unmeasured was 0 throughout.

The committed-texture category includes the desktop textures the shim creates for textures at application addresses. I can't tell from aggregate counts whether the live set includes several desktop textures for the same application range. A count of live textures whose application ranges overlap would answer that, if useful.

Ready for more review.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7157319708 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7157319708). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T08:40:00Z. --- ### GTX 1060 budget and count summary, as requested on [#870](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7156163956) **Build:** #2256 (`b5fd19f9`, on `main` `e94e14ff`) with `X2W_D3D12_BUDGET=1`, plus local DRED. - I reverted #2242 locally, because without that revert the run stops at the first menu input ([details](https://github.com/R0Y00/Xbox2Windows/pull/2242#issuecomment-7157098484)). - Otherwise the workload matches the earlier runs: same host and flags, a 22 GiB job cap, the same initial warm cache, and input by hand. **Stop:** - second-chance read access violation at a small offset from a null pointer in the application, at 619.5 s and 17,737 frames; - 8 placed-resource creations were refused with `E_OUTOFMEMORY` before it; - **no device removal**, so DRED has nothing to report; - process commit peaked at 16,353 MiB. Live category bytes, in MiB, with object counts in brackets. `retained` means released by the application but still held by the shim. | Time | Local used / budget | Committed textures, live | Textures, retained | Buffers, live | Placed, live | Upload | Heaps (counted once) | |---|---|---|---|---|---|---|---| | 5 s | 608 / 5,261 | 287 (32) | 0 | 174 (2) | 0 (1) | 256 (1) | 2,199 (1) | | 57 s | 5,441 / 5,082 | 4,324 (1,223) | 99 (13) | 1,054 (3,330) | 161 (56) | 256 (4) | 3,371 (2) | | 207 s | 5,441 / 5,110 | 4,324 (1,220) | 99 (18) | 1,054 (3,330) | 161 (56) | 256 (4) | 3,371 (2) | | 357 s | 5,990 / 5,101 | 4,797 (1,485) | 174 (39) | 1,056 (3,358) | 169 (58) | 256 (4) | 3,371 (2) | | 507 s | 8,684 / 5,105 | 7,429 (2,653) | 232 (70) | 1,060 (3,360) | 169 (58) | 256 (4) | 3,371 (2) | | 608 s | 9,169 / 5,101 | 7,883 (2,985) | 263 (91) | 1,061 (3,374) | 169 (58) | 256 (4) | 3,371 (2) | What these counts show: - **The growth is live committed textures.** They went from 4.3 to 7.9 GiB and from 1,220 to 2,985 objects. Retained textures stayed under 0.3 GiB, about 3% of local usage at the end, so missed retirement is not the main driver. - **Everything else held flat after the first minute:** buffers, placed resources, upload, readback and the two heaps. - **Local usage was over budget from about 57 s and reached 1.8 times the budget.** Readback stayed at 32 MiB and `unmeasured` was 0 throughout. The committed-texture category includes the desktop textures the shim creates for textures at application addresses. I can't tell from aggregate counts whether the live set includes several desktop textures for the same application range. A count of live textures whose application ranges overlap would answer that, if useful. Ready for more review.
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:41:06Z.


#2256 is on main at 40f15019. The eight Windows Release checks passed on WARP and RTX 4060 Laptop with the debug layer both off and on. The shared heap was counted once and the missed-release control was detected.

For the existing GTX 1060 replay, use X2W_D3D12_BUDGET=1 with the same workload and record the first and last x2w-budget summaries plus one intermediate point. Include local usage/budget, live and retained bytes by category, and DRED removal or completion status. The placed column describes heap occupancy, so keep it separate from total heap bytes.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7157342486 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7157342486). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T08:41:06Z. --- [#2256](https://github.com/R0Y00/Xbox2Windows/pull/2256) is on main at `40f15019`. The eight Windows Release checks passed on WARP and RTX 4060 Laptop with the debug layer both off and on. The shared heap was counted once and the missed-release control was detected. For the existing GTX 1060 replay, use `X2W_D3D12_BUDGET=1` with the same workload and record the first and last `x2w-budget` summaries plus one intermediate point. Include local usage/budget, live and retained bytes by category, and DRED removal or completion status. The `placed` column describes heap occupancy, so keep it separate from total heap bytes.
Jess-Doit commented 2026-11-25 09:04:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T08:43:20Z.


That GTX 1060 replay is the summary just above. It posted a minute before your comment and covers what you asked for:

  • It has the first sample (5 s), the last (608 s) and four intermediate points.
  • Each point gives local usage and budget, plus live and retained bytes by category.
  • placed is kept separate from heap bytes, and each heap is counted once.
  • DRED status: no device removal in that run, so nothing to report.

In short, the growth is live committed textures: 4.3 to 7.9 GiB, and 1,220 to 2,985 objects. Retained bytes stay under 0.3 GiB.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7157387667 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7157387667). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-25T08:43:20Z. --- That GTX 1060 replay is the summary [just above](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7157319708). It posted a minute before your comment and covers what you asked for: - It has the first sample (5 s), the last (608 s) and four intermediate points. - Each point gives local usage and budget, plus live and retained bytes by category. - `placed` is kept separate from heap bytes, and each heap is counted once. - DRED status: no device removal in that run, so nothing to report. In short, the growth is live committed textures: 4.3 to 7.9 GiB, and 1,220 to 2,985 objects. Retained bytes stay under 0.3 GiB.
roansystemlabs commented 2026-11-25 23:02:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-25T22:15:03Z.


Coordination note for #1629: per the go-ahead there, I'm opening a translator-side PR for the source-built association check. tools/startup/gfx2hlsl.py lays out the pixel entry VGPRs by the address mask and loads them by the enable mask, and takes both masks from a per-pipeline description next to the request files. A decoy pipeline, a stale or foreign description, a missing mask and contradictory masks are each refused by name, with no translated draw. The PR also adds a CTest built from source on the #1634 gradient fixture.

It touches only the translator and tests: no runtime, D3D12, residency or virtual-memory code, so it doesn't overlap with the lines already taken here. The description file is a proposal. Capturing it in the runtime, and the provenance of the composite's masks, stay with main development and #870.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176125295 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7176125295). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-25T22:15:03Z. --- Coordination note for #1629: per the go-ahead there, I'm opening a translator-side PR for the source-built association check. `tools/startup/gfx2hlsl.py` lays out the pixel entry VGPRs by the address mask and loads them by the enable mask, and takes both masks from a per-pipeline description next to the request files. A decoy pipeline, a stale or foreign description, a missing mask and contradictory masks are each refused by name, with no translated draw. The PR also adds a CTest built from source on the #1634 gradient fixture. It touches only the translator and tests: no runtime, D3D12, residency or virtual-memory code, so it doesn't overlap with the lines already taken here. The description file is a proposal. Capturing it in the runtime, and the provenance of the composite's masks, stay with main development and #870. AI-assisted.
Jess-Doit commented 2026-11-30 23:53:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-30T23:53:17Z.


Budget samples from a GTX 1060 6 GB run with the shared presets, as a follow-up to the summary above.

The run: main bee9c64d with #3664 on Windows 10 19045, started with run_preset.py --console x --gpu nvidia, so X2W_D3D12_BUDGET=1 and X2W_D3D12_RELEASE_RETIRED=1 were on.

time local / budget live textures (count) live buffers (count) heap upload
5 s 0.59 / 5.14 GiB 0.28 GiB (32) 0.17 GiB (2) 2.15 GiB 0.02 GiB
78 s 5.31 / 4.90 GiB 4.22 GiB (1,227) 1.03 GiB (3,334) 2.15 GiB 0.10 GiB
228 s 5.96 / 4.91 GiB 4.84 GiB (1,571) 1.04 GiB (3,362) 2.15 GiB 0.27 GiB
303 s 8.20 / 4.90 GiB 7.07 GiB (2,534) 1.04 GiB (3,362) 2.15 GiB 0.32 GiB
378 s 8.71 / 4.89 GiB 7.59 GiB (2,850) 1.04 GiB (3,372) 2.15 GiB 0.39 GiB
about 505 s 9.59 / 5.16 GiB 8.36 GiB (2,991) 1.16 GiB (3,991) 2.15 GiB 0.49 GiB
  • The budget is passed by the loading screen (about 80 s). Live textures account for almost all of the growth after that, and buffers stay near 1 GiB.
  • The textures are live. The retained columns stayed small, and RELEASE_RETIRED had dropped 5,000 desktop references by the end.
  • The device was removed at 517 s (0x887a0005, first seen after a queue execute), during the prologue. The title then stopped itself through its own watchdog about 40 s later (#870).
  • Same pattern without the presets. Three runs with slot 57 refused reached 9.5–10 GiB local and stopped the same way.

So on a 6 GB card, the live texture set at the prologue (about 3,000 textures, 8.4 GiB) is close to twice the local budget. The next step on this host would be a run with DRED, to classify the removal as a page fault or a hang.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7295640604 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7295640604). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-30T23:53:17Z. --- Budget samples from a GTX 1060 6 GB run with the shared presets, as a follow-up to the [summary above](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7157319708). The run: `main` `bee9c64d` with #3664 on Windows 10 19045, started with `run_preset.py --console x --gpu nvidia`, so `X2W_D3D12_BUDGET=1` and `X2W_D3D12_RELEASE_RETIRED=1` were on. | time | local / budget | live textures (count) | live buffers (count) | heap | upload | |---|---|---|---|---|---| | 5 s | 0.59 / 5.14 GiB | 0.28 GiB (32) | 0.17 GiB (2) | 2.15 GiB | 0.02 GiB | | 78 s | 5.31 / 4.90 GiB | 4.22 GiB (1,227) | 1.03 GiB (3,334) | 2.15 GiB | 0.10 GiB | | 228 s | 5.96 / 4.91 GiB | 4.84 GiB (1,571) | 1.04 GiB (3,362) | 2.15 GiB | 0.27 GiB | | 303 s | 8.20 / 4.90 GiB | 7.07 GiB (2,534) | 1.04 GiB (3,362) | 2.15 GiB | 0.32 GiB | | 378 s | 8.71 / 4.89 GiB | 7.59 GiB (2,850) | 1.04 GiB (3,372) | 2.15 GiB | 0.39 GiB | | about 505 s | 9.59 / 5.16 GiB | 8.36 GiB (2,991) | 1.16 GiB (3,991) | 2.15 GiB | 0.49 GiB | - **The budget is passed by the loading screen** (about 80 s). Live textures account for almost all of the growth after that, and buffers stay near 1 GiB. - **The textures are live.** The retained columns stayed small, and `RELEASE_RETIRED` had dropped 5,000 desktop references by the end. - **The device was removed at 517 s** (`0x887a0005`, first seen after a queue execute), during the prologue. The title then stopped itself through its own watchdog about 40 s later ([#870](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7295632202)). - **Same pattern without the presets.** Three runs with slot 57 refused reached 9.5–10 GiB local and stopped the same way. So on a 6 GB card, the live texture set at the prologue (about 3,000 textures, 8.4 GiB) is close to twice the local budget. The next step on this host would be a run with DRED, to classify the removal as a page fault or a hang. AI-assisted.
Jess-Doit commented 2026-12-01 00:12:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-12-01T00:12:52Z.


Follow-up to the budget samples above: I repeated that preset run with DRED forced on, as a local diagnostic patch. DRED enabled auto-breadcrumbs, breadcrumb contexts and page-fault reporting before device creation.

Device removed 538.6 s, 0x887a0005, first seen after a queue execute
Runtime debug output before it only D3D12: Removing Device., with no error message
DRED breadcrumbs GetAutoBreadcrumbsOutput1 S_OK, 0 nodes, 0 unfinished
DRED page fault GetPageFaultAllocationOutput1 S_OK, VA 0, no existing or recently freed allocation
Local video memory 9.40 / 5.28 GiB; live textures 8.17 GiB (2,901)
Host commit 36.2 / 41.3 GB

No command list was in flight on the GPU and nothing faulted. So this is not a GPU hang (that would be DXGI_ERROR_DEVICE_HUNG with breadcrumbs left) and not a page fault on a freed or missing resource. It reads as the runtime removing the device at about 1.8 times the local budget, which points back at the size of the live texture set rather than at a bad command.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7296066291 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7296066291). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-12-01T00:12:52Z. --- Follow-up to the [budget samples above](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7295640604): I repeated that preset run with DRED forced on, as a local diagnostic patch. DRED enabled auto-breadcrumbs, breadcrumb contexts and page-fault reporting before device creation. | | | |---|---| | Device removed | 538.6 s, `0x887a0005`, first seen after a queue execute | | Runtime debug output before it | only `D3D12: Removing Device.`, with no error message | | DRED breadcrumbs | `GetAutoBreadcrumbsOutput1` S_OK, 0 nodes, 0 unfinished | | DRED page fault | `GetPageFaultAllocationOutput1` S_OK, VA 0, no existing or recently freed allocation | | Local video memory | 9.40 / 5.28 GiB; live textures 8.17 GiB (2,901) | | Host commit | 36.2 / 41.3 GB | No command list was in flight on the GPU and nothing faulted. So this is not a GPU hang (that would be `DXGI_ERROR_DEVICE_HUNG` with breadcrumbs left) and not a page fault on a freed or missing resource. It reads as the runtime removing the device at about 1.8 times the local budget, which points back at the size of the live texture set rather than at a bad command. AI-assisted.
Jess-Doit commented 2026-12-01 00:29:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-12-01T00:29:00Z.


A census of how much of the live texture set lies on title memory that another live texture also covers. The question was whether sharing title pages between textures, instead of one desktop copy per placement, could fit this on a 6 GB card. On this run, it cannot.

The run: GTX 1060 6 GB, Windows 10 19045, shared presets, main bee9c64d with #3664, plus a local diagnostic patch (not for upstream). The patch takes every live texture that has a budget ticket and title memory, as the span [title address, + desktop bytes from its ticket]. The desktop size stands in for the console footprint, which the placed-texture record does not keep. Sum is what the desktop copies cost; union is the title memory those spans cover.

time live textures sum union same start overlapping another
early 32 287 MiB 274 MiB 0 10 (17 MiB)
loading screen 1,299 4,555 MiB 4,259 MiB 208 242 (487 MiB)
1,687 5,126 MiB 4,830 MiB 208 242 (487 MiB)
2,807 7,638 MiB 7,342 MiB 208 242 (487 MiB)
at removal, 553 s 3,219 8,349 MiB 8,053 MiB 208 242 (487 MiB)
  • The overlap is fixed early. 242 textures and 487 MiB, set by the loading screen. After that, union grows with sum.
  • All later growth is distinct title memory. Shared title pages would save at most about 300 MiB, roughly 4%. The set the title keeps live really is about 8 GiB on its own.
  • Local was 9.99 / 5.27 GiB at the removal.
  • Records without a desktop copy. About 32,000 more live texture records had no desktop copy (no budget ticket) by the end. They cost nothing on the card.

So on a 6 GB card the live set has to shrink in a different way: drop the desktop copies of textures that have not been used recently, and upload them again from title memory on their next use. Once nothing recorded or submitted still refers to a texture, its copy can be released, which RELEASE_RETIRED already does for released textures. The next measurement would be how many of these 3,219 textures went unused over the last few seconds before the removal. That needs a last-use mark per texture, which the stand-in does not keep yet.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7296385551 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7296385551). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-12-01T00:29:00Z. --- A census of how much of the live texture set lies on title memory that another live texture also covers. The question was whether sharing title pages between textures, instead of one desktop copy per placement, could fit this on a 6 GB card. On this run, it cannot. The run: GTX 1060 6 GB, Windows 10 19045, shared presets, `main` `bee9c64d` with #3664, plus a local diagnostic patch (not for upstream). The patch takes every live texture that has a budget ticket and title memory, as the span [title address, + desktop bytes from its ticket]. The desktop size stands in for the console footprint, which the placed-texture record does not keep. Sum is what the desktop copies cost; union is the title memory those spans cover. | time | live textures | sum | union | same start | overlapping another | |---|---|---|---|---|---| | early | 32 | 287 MiB | 274 MiB | 0 | 10 (17 MiB) | | loading screen | 1,299 | 4,555 MiB | 4,259 MiB | 208 | 242 (487 MiB) | | | 1,687 | 5,126 MiB | 4,830 MiB | 208 | 242 (487 MiB) | | | 2,807 | 7,638 MiB | 7,342 MiB | 208 | 242 (487 MiB) | | at removal, 553 s | 3,219 | 8,349 MiB | 8,053 MiB | 208 | 242 (487 MiB) | - **The overlap is fixed early.** 242 textures and 487 MiB, set by the loading screen. After that, union grows with sum. - **All later growth is distinct title memory.** Shared title pages would save at most about 300 MiB, roughly 4%. The set the title keeps live really is about 8 GiB on its own. - **Local was 9.99 / 5.27 GiB at the removal.** - **Records without a desktop copy.** About 32,000 more live texture records had no desktop copy (no budget ticket) by the end. They cost nothing on the card. So on a 6 GB card the live set has to shrink in a different way: drop the desktop copies of textures that have not been used recently, and upload them again from title memory on their next use. Once nothing recorded or submitted still refers to a texture, its copy can be released, which `RELEASE_RETIRED` already does for released textures. The next measurement would be how many of these 3,219 textures went unused over the last few seconds before the removal. That needs a last-use mark per texture, which the stand-in does not keep yet. AI-assisted.
Jess-Doit commented 2026-12-01 00:52:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-12-01T00:52:39Z.


A design question that follows from the overlap census.

Sharing title pages would save about 4% of the 8 GiB live texture set on that run. The other way to shrink the set is to release the desktop copies of live textures that are not in use and upload them again from title memory on their next use. That needs a usage signal per texture. With the shared presets, the stand-in does not have one:

  • Draws. The draws use native shaders that reach textures through the descriptor heaps, so no per-texture step runs at draw time. A local last-use stamp on the address-SRV read path in d3d12_draw.inl, and on the Dispatch read path in d3d12_compute_dispatch.inl, saw 0 reads in 34,541 translated draws.
  • Descriptors. With X2W_D3D12_INLINE_DESCRIPTORS=1 the title writes its descriptors itself. retire_view_refs is then not maintained, and both uses of it in d3d12_xs_device.cpp are guarded by !inline_descriptors_on(). So no live descriptor slot count is kept for a texture either.
  • Render-target flag. At the loading screen of that run, 784 of the 1,280 live textures with a desktop copy (3.2 of 4.5 GiB) were created with ALLOW_RENDER_TARGET or ALLOW_DEPTH_STENCIL. Leaving out "targets" by their flag would therefore leave out most of the set.

Ways I can see to get a signal. I have not started any of them:

  1. Scan the title's descriptor heaps. Periodically walk the title's shader-visible descriptor heap memory for the stand-in's view tokens, and mark the textures they name. Release only textures named by no token and held by no recorded list or submission (the RELEASE_RETIRED hold rule).
  2. Evict only without inline descriptors. Allow eviction only with X2W_D3D12_INLINE_DESCRIPTORS unset, using retire_view_refs == 0 plus the list holds. The presets record inline descriptors as a measured gain, so that trades one against the other.
  3. Something already planned in #1914's memory model that would make this unnecessary.

On a 6 GB card the runs reach about 9.5 GiB local and the device is removed soon after the prologue loads. Is one of these the direction you want? If 2 is acceptable as a measurement, I can count the textures no descriptor slot names, on the same host with inline descriptors off.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7296841663 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7296841663). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-12-01T00:52:39Z. --- A design question that follows from the [overlap census](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7296385551). Sharing title pages would save about 4% of the 8 GiB live texture set on that run. The other way to shrink the set is to release the desktop copies of live textures that are not in use and upload them again from title memory on their next use. That needs a usage signal per texture. With the shared presets, the stand-in does not have one: - **Draws.** The draws use native shaders that reach textures through the descriptor heaps, so no per-texture step runs at draw time. A local last-use stamp on the address-SRV read path in `d3d12_draw.inl`, and on the Dispatch read path in `d3d12_compute_dispatch.inl`, saw 0 reads in 34,541 translated draws. - **Descriptors.** With `X2W_D3D12_INLINE_DESCRIPTORS=1` the title writes its descriptors itself. `retire_view_refs` is then not maintained, and both uses of it in `d3d12_xs_device.cpp` are guarded by `!inline_descriptors_on()`. So no live descriptor slot count is kept for a texture either. - **Render-target flag.** At the loading screen of that run, 784 of the 1,280 live textures with a desktop copy (3.2 of 4.5 GiB) were created with `ALLOW_RENDER_TARGET` or `ALLOW_DEPTH_STENCIL`. Leaving out "targets" by their flag would therefore leave out most of the set. Ways I can see to get a signal. I have not started any of them: 1. **Scan the title's descriptor heaps.** Periodically walk the title's shader-visible descriptor heap memory for the stand-in's view tokens, and mark the textures they name. Release only textures named by no token and held by no recorded list or submission (the `RELEASE_RETIRED` hold rule). 2. **Evict only without inline descriptors.** Allow eviction only with `X2W_D3D12_INLINE_DESCRIPTORS` unset, using `retire_view_refs` == 0 plus the list holds. The presets record inline descriptors as a measured gain, so that trades one against the other. 3. **Something already planned** in #1914's memory model that would make this unnecessary. On a 6 GB card the runs reach about 9.5 GiB local and the device is removed soon after the prologue loads. Is one of these the direction you want? If 2 is acceptable as a measurement, I can count the textures no descriptor slot names, on the same host with inline descriptors off. AI-assisted.
R0Y00 commented 2026-12-02 20:36:56 +00:00 (Migrated from github.com)
Author
Contributor

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


Thanks, @Jess-Doit. Please start with option 2 as a measurement. On the same 6 GB host, compare the shared preset with inline descriptors enabled and disabled, keeping the build, profile and shader-cache starting state fixed. At the same checkpoints, count the live desktop texture copies and their bytes, then the subset with retire_view_refs == 0 and no recorded or in-flight list hold. Please include the local memory budget and the first device-removal timestamp, if any. This will give us a candidate upper bound for reclamation. Leave release behavior unchanged while the broader memory-model decision stays in #1914.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7358027486 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7358027486). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T20:36:56Z. --- Thanks, @Jess-Doit. Please start with option 2 as a measurement. On the same 6 GB host, compare the shared preset with inline descriptors enabled and disabled, keeping the build, profile and shader-cache starting state fixed. At the same checkpoints, count the live desktop texture copies and their bytes, then the subset with `retire_view_refs == 0` and no recorded or in-flight list hold. Please include the local memory budget and the first device-removal timestamp, if any. This will give us a candidate upper bound for reclamation. Leave release behavior unchanged while the broader memory-model decision stays in #1914.
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#867
No description provided.