gpu: establish the D3D12ConfigureVirtualMemoryX startup contract #867
Open
opened 2026-11-23 15:14:38 +00:00 by R0Y00
·
85 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
startup_stream_consumer; run `ctest --preset release --no-tests=error -j 1 -R '^startup_slot67_indirect_dispatch_(warp|hardware)s_bfm_b64(#2007)ctest --preset dev --no-tests=error -R '^startup_list_upload_slot148_(hardware|warp)$' -Vwith the slot wiring.ctest --preset dev --no-tests=error -R '^startup_composite_provenance_(hardware|warp)$' -V(requested fixture)ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V(requested fixture)ctest --preset dev --no-tests=error -R '^descriptor_heap_paging_' -Voffscreen_check, then runctest --preset dev --no-tests=error -R '^descriptor_(window|record_copy)_' -V.vm_copy_queue_check, then runctest --preset release --no-tests=error -R '^vm_(copy_queue|page_provenance|raw_srv|raw_uav)_' -V.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 1744710cvm_copy_queue_check, then runctest --preset release --no-tests=error -R '^vm_(copy_queue|page_provenance)_hardware$' -V.ctest --preset dev --no-tests=error -R '^rectlist_' -V.CreateSamplerXdesktop sampler contractctest --preset dev --no-tests=error -R '^startup_sampler_x_' -Von the proposed PR.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
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 shaders_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 runctest --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 runctest --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. | Buildvm_copy_queue_check, then runctest --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. | Buildvm_copy_queue_check, then runctest --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, runctest --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
Available to claim. Comment with your environment and links to overlapping GPU VA work. Keep candidate binaries, dumps and private logs local.
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.
jmp [IAT]thunk, one direct call sitehr = D3D12ConfigureVirtualMemoryX(&cfg): one pointer argument, HRESULT checked withSUCCEEDEDcfgceil(size / 16 GiB) + 2, wheresizeis 16 GiB or 24 GiB (so 3 or 4)sizesourceHKLM\Software\Microsoft\Windows NT\CurrentVersion\OEM\ConsoleMode(DWORD); one mode gives 16 GiB, the others 24 GiB; a missing key takes the 24 GiB pathXMemVirtualAlloc(NULL, size, 0x20402000, …)reservations ofsize(4th/5th arguments0x21/4and3/0x801)int 3; execution continuesPlan:
d3d12_xsexport that accepts this shape and refuses anything else (a null pointer, non-zero reserved bytes, a second configuration) without state changes.pe_map: one valid call, plus failure cases with a canary struct showing nothing changed.XMemVirtualAllocwith these flags belongs to the XMem side (#875/#879, #880). I'll only record the order here and won't touchxmem_shim.Environment: Windows 10 Pro 22H2 (19045), MSVC 19.52, RTX 3080 Ti, plus in-box WARP and WARP 1.0.22 (
w10preset).Related: #870 (milestone), #875/#879 and #880 (XMem side).
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.
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.
main.0x1e0a320, call0x1e1cfe0D3D12XboxCreateDevice, then calls the range setup.0x19f4df0: device0x19f4f4f, setup0x19f52840x21/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.0x1e6c110block - A + B, and callers write through+ A - B.0x221b9e0,0x43c4830+0x58method result (GetGPUVirtualAddressin the desktop vtable) and maps[B, B+size)back to A.0x4fd2980Over 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_OKwould 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.
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.
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.
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):
CreateReservedResourcebuffer as the window, tiles from an ordinary two-tile DEFAULT heap, staging and readback in 64 KiB pagefile sections opened withOpenExistingHeapFromFileMapping. One tile is mapped, filled byCopyBufferRegionfrom staging, and read by a compute dispatch through a root UAV atwindow GPU VA + offset. Windows 10 19045, D3D12 10.0.19041.7291, debug layer on.E_OUTOFMEMORYabove 4095 MiBWhere the copy goes and when the queue sees updates (all passing cases):
UpdateTileMappingsfollowed byExecuteCommandListson the same queue needs no fence; the copy and dispatch see the new mapping.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:
0x2e0000000+ i × 4 GiB (adjacent here; D3D12 does not promise it)0x8000000000000000+ i × 2^400x887A0020A 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.
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.
XMemAllocatePhysicalPagesforsize / 64 KiBpages, mapped into a third reservation P (0x23/0x2004) withXMemMapPhysicalPages0x1e6c110device->vtbl[+0x250](P, page_count, &out), HRESULT,int 3on failure0x1e6c2bbdevice->vtbl[+0x40]with IIDID3D12CommandQueueand desc{Type 3 (COPY), priority 0, flags 0, node mask 1}0x1e6c2efXMemMapPhysicalPagesScatter0xf2c470{B + page << 16, page count, records}with 12-byte records{1, pool page index, 1}and callscopy_queue->vtbl[+0xF8](count, entries, P, …)0xf2cc7fThe batch code runs before a DirectStorage queue submit (
XCRDAPI.dll!DStorageGetFactory). The earlier+0x250call on a DirectStorage wrapper object is a different call: it only records(kind, A address, 64 KiB-rounded size)in that batch.Reading:
UpdateTileMappingson 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.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
+0x250and+0xF8slots are past the desktop vtables, so their exact signatures are open; only the argument shapes above are observed.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.
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.
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.
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).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T20:04:07Z.
#986 has merged at
2f2893f0after both Windows and both Linux checks passed. The separate source-built queue-ordering check is available on main. I rerancd9ff65under 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.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
D3D12XboxCreateDevicerejects any non-null parameter block, so both returnedE_INVALIDARGat 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 sampleAI-assisted (Codex).
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.
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.
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.
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
Samples/Graphics/FramePacing,Samples/Graphics/Simple120Hz)DeviceResources.cppXbox implementation ofWaitFrameEventX,ScheduleFrameEventX,SetFrameIntervalX)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
D3D12XBOX_FRAME_EVENT_ORIGIN(value0) 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).IDXGIOutputis bound) from display-bound cadence.E_INVALIDARG, verifying output token pointers are not modified.WaitFrameEventXwith a timeout smaller than the pending origin interval returns a timeout status (WAIT_TIMEOUT) and leaves the token untouched.HANDLEsignaling upon event origin.tests/cpu/frame_events_provider.cpp,.def) tracking scheduling, intervals, wait counts, and token generation.tests/cpu/frame_events_caller.asm) exercising the origin wait, token advancement, timeout refusal, and unsupported event rejection.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).
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
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$' -Vafter buildingvm_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.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:
SetFrameIntervalX → ScheduleFrameEventX(ORIGIN) → WaitFrameEventX(ORIGIN)withINFINITEwait and a null event handle perInGameStore/DeviceResources.cpp.WAIT_TIMEOUT), signaling the scheduled tick delivers the token, and the next wait stays pending until the next tick.E_INVALIDARGwith sentinel preserved.cpu_frame_events_provider_faultysimulates premature release or sentinel clobber, caught and failed by caller assertions.pe_map(exit0x874). Withholdingd3d12_xs.dllhaltspe_mapat import resolution (STATUS["unresolved"]).WAIT_TIMEOUT,E_INVALIDARG) are explicitly labeled as requiring separate evidence.AI-assisted (Antigravity).
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_checkat979c369and runvm_copy_queue_check.exe raw_srv_hardwarefrom 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.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.
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_srvand araw_uav_{hardware,warp}mode invm_copy_queue_check, with #553 and #721 as references.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.
Imported from R0Y00/Xbox2Windows. Originally posted by zohaiblazuli on 2026-11-23T21:59:14Z.
Intel hardware check for #1017 (
raw_srv_hardware):8086:a780), driver 32.0.101.7092, selected withXBOX2WINDOWS_ADAPTER=IntelFrom the build directory:
Exit 0, no skip. I ran it twice:
979c369as the base.mainat6a09e87. This is the first commit of #1025, where the only change is resolving thedocs/experiments.mdconflict.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.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T22:07:05Z.
The existing
gpu_alias_lookup_writesfixture 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.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_writesdescribed above, unless someone already has it in progress.Scope:
tests/gpu_alias_writes.hlsl,Replacesuses a strict<or>, and-0.0 < +0.0is false. So a float min or max between the two zeros must keep the stored word. I'll add records for initial+0/candidate-0and initial-0/candidate+0, each through both min and max, and compare the raw bits (0x00000000vs0x80000000) with the CPU expectation. The fixture will document this as its expectation, not as IEEEminNumbehavior.<=/>=) flips the signed-zero words, so the new records can actually detect that change.docs/experiments.mdwill 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.
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.
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
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).
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 22H219045.6456, both the GTX 1060 6 GB (32.0.15.6094) and in-box WARP (10.0.19041.5794) returnedS_OKwhen creating a shader-visible heap with 1,000,000 CBV/SRV/UAV descriptors. Neither reported an OPTIONS19 view-heap size.13579bdf,a5a5a5a5.13579bdf,2468ace0.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).
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
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.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).
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 1019045.6456, GTX 1060 6 GB (32.0.15.6094) and in-box WARP (10.0.19041.5794).S_OKfor the 1,024-slot shader-visible heap.255,512for the first heap and511,768for the second. Four pages became resident, leaving both untouched pages unmapped.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).
Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-24T00:56:23Z.
I'll take a source-built
GetCustomHeapPropertiesstruct-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).
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.
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
d4cbfcd4(re-verified oncbf3c8bb)vendor=1002, device=73ff)32.0.21045.11001releasepresetCommands & Results
Output:
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-24T01:08:09Z.
I'll take the
CreateSamplerXdesktop 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.mainat78a6b31eCreateSamplerX. I'll keep the two separate and rebase if it lands first.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-24T01:22:12Z.
CreateSamplerXdesktop sampler contract: opened #1121.D3D12_SAMPLER_DESCcontract only; no console descriptor layout is assumed.ctest --preset dev --no-tests=error -R '^startup_sampler_x_' -VSampleLevel.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).
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:
mainata7710b7350bfbb16020f45962988f85eea269793, 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)vm_copy_queue_hardwarevm_page_provenance_hardwareDescriptor windows, record copies and paging (
dev, D3D12 debug layer enabled)descriptor_window_{submissions,stale}descriptor_record_copy_{live,stale,unknown}descriptor_heap_paging{,_swapped}debug_layer=enabledwithdebug_errors=0 debug_warnings=0.shared_heap_request=1024 create_hresult=0x00000000,initial_pages=2 resident_pages=4 copy_chunks=2,2 physical=255,512,511,768, and wordsa00100ff,a0010100,b00200ff,b0020100withswapped=0.AI-assisted (Claude Code).
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).
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.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.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.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
1002:7550), driver32.0.31044.16, D3D12 debug layer enabled.mainatd5508e72,devpreset (Debug), MSVC 19.44.Result
offscreen_hardwarereportsmax_view_descriptor_heap_size=33554432(OPTIONS19); WARP10.0.26100.9818reports2097152.startup_view_heapadapter accepts 1245184 descriptors directly; the shortcut is not needed herestartup_logical_viewdraw_logical_tables: 1,245,184 accepted)startup_stream_drawstartup_stream_requestSo 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.pyprints no reason when the consumer returns 77, unlikestartup_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 (#1011dxr_opacity_hardware, #369gpu_alias_lookup_writes_hardware, #958pixel_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 forwave_startup_4_hardware). No new failures since1ccc326.AI-assisted.
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)$' -VIndependent adapter results are welcome with the commit, driver and Windows build. The runtime's address producer remains under investigation.
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-failureThese results cover the source-built range lookup through DXR. The runtime address producer is still being traced.
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_hardwarestill 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
mainatf5d83c31(includes #13056c1b5710and #13070adfe857),releasepreset, MSVC 19.44.35207, DXC 1.8.2502.11.1002:7550), driver32.0.31044.16, D3D12 debug layer enabled, DXR tier 1.1.10.0.26100.9818as control.Command and result
11 of 12 pass, with no skips. The one failure is
dxr_address_ranges_hardware, withDXR 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:1, 7, 0, 0x3f7fffff1, 7, 0, 0x3f8000001, 7, 0, 0x3f7fffff1, 7, 0, 0x3f8000001, 11, 0, 0x3f7fffff1, 11, 0, 0x3f8000001, 11, 0, 0x3fffffff1, 11, 0, 0x40000000Every hit/miss and instance ID matches the expected
full=[hit7@1,miss,miss,hit11@2]andtruncated=[hit7@1,miss,hit11@1,miss]. Clearing bit 40 still selects the other backing. The only difference is t:0.99999994instead of1.0, and1.9999999instead of2.0, which is one ULP below in every hit.The other DXR checks in
tests/dxr_check.cppcompare distance with a tolerance (std::abs(distance - 1.f) < 1e-5f,< 1e-4f).check_dxr_address_rangescompares theRowwords exactly, including0x3f800000/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.
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.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.
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.
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.
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:[1,7,0,0x3f7fffff] miss miss [1,11,0,0x3fffffff][1,7,0,0x3f800000] miss miss [1,11,0,0x40000000][1,7,0,0x3f7fffff] miss miss [1,11,0,0x3fffffff][1,7,0,0x3f800000] miss miss [1,11,0,0x40000000][1,7,0,0x3f7fffff] miss [1,11,0,0x3f7fffff] miss[1,7,0,0x3f800000] miss [1,11,0,0x3f800000] miss[1,7,0,0x3f7fffff] miss [1,11,0,0x3f7fffff] miss[1,7,0,0x3f800000] miss [1,11,0,0x3f800000] missTitle 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, …}gets0x3f7fffff(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.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T14:04:31Z.
Yes, please make a separate PR for
dxr_placed_build_hardwareand 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.
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 indraw_logical_tables()(tests/startup_stream_draw.cpp) in the wordingstartup_view_heap_checkalready 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.
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.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T15:07:32Z.
dxr_placed_buildfollow-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: both0x3f800000; the decoy-routing control differs on both (ray 0 miss, ray 1 hit). Debug layer on, zero errors. Replaces the 1e-5 tolerance from82680176; #1326's refusal controls unchanged.AI-assisted.
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.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.
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.
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=hardwareselects the first high-performance, non-software adapter that passes aD3D12CreateDeviceprobe (tests/cpu/shim_gpu_device.h, theEnumAdapterByGpuPreferenceloop). There is no way to ask for the second adapter. On a two-adapter machine every shim-drivenstartup_*_hardwarefixture therefore only ever exercises one of them.I hit this while recording adapter results: with an Intel Arc 140T at
8086:7d51and an RTX 5080 Laptop at10de:2c59, thestartup_*hardware tests always report the RTX. Querying CTest, 45_hardwaretests are currently absent fromdocs/experiments.md, and thestartup_*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
hardwareas it is by default and add one optional selector, read only in the hardware branch:DXGI_ADAPTER_DESC1::Descriptiondoes not contain the substring (case-insensitive), and the probe loop continues as it does today;Acceptance.
ctest --preset dev --no-tests=error -R '^startup_null_views_hardware$' -V— it printsdevice adapter <vendor>:<device> <name>, so the selected adapter is observable: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_andstartup_view_heap_families before and after to show the default path is unchanged.If you would rather the selector were spelled like the
offscreen_checkharness (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.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 throughtests/cpu/shim_gpu_device.hat all; they usetests/xmem_test_device.h, which already readsXBOX2WINDOWS_ADAPTERas a case-insensitive substring and reportsunmatchedwhen nothing matches — the same conventionoffscreen_checkuses. I checked the wrong header and did not test the claim before posting it.What I verified instead, on this machine at
d90dd76b:So the selector exists, works, and my proposed
X2W_SHIM_ADAPTER_MATCHwould 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:
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.mddid 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:
XBOX2WINDOWS_ADAPTERintended to cover every harness (offscreen_check, xmem_test_device, and thetests/cpu/*providers that still accept onlywarp/hardware), or is thetests/cpugap 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.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
grepfor the environment variable in the file the fixture actually includes.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.cpppasses 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:
Proposal. Query
CheckFeatureSupportfor the two formats the rule names —B5G5R5A1_UNORMfor the typed-UAV case (slot 19) andB4G4R4A4_UNORMfor 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_' -VwithXBOX2WINDOWS_ADAPTERunset, set toIntel, and set toNVIDIAon 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.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.cppalready asserts the rule I proposed to add. Lines 41 and 54 are:That is exactly "substituted must equal not-supported", for both the UAV and the RTV case, against a live
CheckFeatureSupport. I read the printedslot NN format a -> blines and the paragraph indocs/startup-runtime.md, and never read the assertions twenty lines above them.Both directions are covered. I mutated
src/startup_stubs/null_texture_view.hand rebuilt onlystartup_null_views_check:!needs_null_unorm_fallback(...)->falseSo 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
CheckFeatureSupportcheck 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.mdsaying 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 acceptXBOX2WINDOWS_ADAPTERlikexmem_test_device.hdoes. That one I will not act on without an answer.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)
gpu = cpu − A + Band the reverse. Addresses outside A/B pass through unchanged (docs/experiments.md, "CPU/GPU range translation").vm_translation_device_{warp,hardware}opens a committed CPU range withOpenExistingHeapFromAddressand 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).d3d12_xs_rangecovers 32 GiB in ≤4 GiB windows, with tile mapping, lifetime and partial-failure tests.X2W_XMEM_GPU_MIRROR) maps each physical page section into both views (docs/startup-runtime.md).How the live runtime handles title memory today
Mostly by copying:
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)
0x283(large-pageXMemVirtualAllocwithout an address, throughcommit_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.-MemoryGiB 14cap 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
OpenExistingHeapFromAddresspath 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.
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
ddeaa5ebd11cfc03248c72e5d0dbbe7d005bd20bon 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.vm_copy_queuevm_page_provenancedescriptor_heap_paging, including swapped controlstartup_sampler_x, including swapped controlCOPY → 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 printedearly 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.
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
82749f0f84d9f8b571566fdf564d530e71f499aaon 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.14 passed, zero failed, zero skipped. Each backend passed two raw-window cases and five descriptor cases.
2468ace0; both stale controls read13579bdfinstead, as expected. The unknown-record guard passed on both backends.Source-built fixtures only. Codex assisted with testing and reporting.
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.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.
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,
0x283startup blocks only).AI-assisted.
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:
mainat82749f0f, 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,devpreset. Radeon RX 9070 XT (1002:7550), driver 32.0.31044.16; WARP as the control. The fixture did not report debug-layer status.vm_copy_queueearly mismatches=0 ordered mismatches=0 early vs remapped=16384/16384vm_page_provenance4 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.
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.
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.
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.
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.
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:
mainat1744710c,devpreset (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.vm_copy_queue: early read / ordered read mismatchesvm_copy_queue: early vs remapped differingvm_page_provenance: cross-page upload in mapped ordervm_page_provenance: GPU keeps prior snapshot after CPU writesvm_page_provenance: re-upload observes updated CPU pagesResult: 4/4 passed, no capability skips. The RX 590 ordered-copy failure does not reproduce on this NVIDIA adapter.
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.
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:
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.
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, onmaine94e14ff) withX2W_D3D12_BUDGET=1, plus local DRED.Stop:
E_OUTOFMEMORYbefore it;Live category bytes, in MiB, with object counts in brackets.
retainedmeans released by the application but still held by the shim.What these counts show:
unmeasuredwas 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.
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=1with the same workload and record the first and lastx2w-budgetsummaries plus one intermediate point. Include local usage/budget, live and retained bytes by category, and DRED removal or completion status. Theplacedcolumn describes heap occupancy, so keep it separate from total heap bytes.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:
placedis kept separate from heap bytes, and each heap is counted once.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.
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.pylays 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.
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:
mainbee9c64dwith #3664 on Windows 10 19045, started withrun_preset.py --console x --gpu nvidia, soX2W_D3D12_BUDGET=1andX2W_D3D12_RELEASE_RETIRED=1were on.RELEASE_RETIREDhad dropped 5,000 desktop references by the end.0x887a0005, first seen after a queue execute), during the prologue. The title then stopped itself through its own watchdog about 40 s later (#870).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.
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.
0x887a0005, first seen after a queue executeD3D12: Removing Device., with no error messageGetAutoBreadcrumbsOutput1S_OK, 0 nodes, 0 unfinishedGetPageFaultAllocationOutput1S_OK, VA 0, no existing or recently freed allocationNo command list was in flight on the GPU and nothing faulted. So this is not a GPU hang (that would be
DXGI_ERROR_DEVICE_HUNGwith 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.
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,
mainbee9c64dwith #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.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_RETIREDalready 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.
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:
d3d12_draw.inl, and on the Dispatch read path ind3d12_compute_dispatch.inl, saw 0 reads in 34,541 translated draws.X2W_D3D12_INLINE_DESCRIPTORS=1the title writes its descriptors itself.retire_view_refsis then not maintained, and both uses of it ind3d12_xs_device.cppare guarded by!inline_descriptors_on(). So no live descriptor slot count is kept for a texture either.ALLOW_RENDER_TARGETorALLOW_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:
RELEASE_RETIREDhold rule).X2W_D3D12_INLINE_DESCRIPTORSunset, usingretire_view_refs== 0 plus the list holds. The presets record inline descriptors as a measured gain, so that trades one against the other.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.
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 == 0and 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.