runtime: add title buffer window fixture #1177
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1184"
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 lambirou on 2026-11-24T02:56:37Z.
Change
Add a title-buffer window fixture for console/UMA aliasing.
era_heap, opens it withera_gpu_alias::openand covers it with anera_title_va::Tablerange.0x1e000-byte range at unaligned offset0x11234, which spanspages 1 and 2. For every address, the low 16 CPU/GPU bits and the window-relative offset match,
and the GPU address returns to the same CPU address. Absolute bases differ, so this is the
desktop alias policy rather than numeric VA identity or a console MMU claim.
the window → title-pointer read. All bytes and 64 guard bytes on each side are compared.
E_BOUNDS,misaligned page
E_INVALIDARG, reserve-only pageERROR_INVALID_ADDRESS, and opening areserve-only page returns
E_INVALIDARGwith an empty alias.Verification
cmake --build --preset dev --target offscreen_checkpassed.ctest --preset dev --no-tests=error -R '^gpu_alias_window_' -Vrelative_identity=yes roundtrip=yes negative_readback=unchanged mismatches=0.gpu_alias|era_|xmem_|vm_translationrun passed 60/60 with five hardware skips.docs_links_check.py:Self-test passed.,Checked 15 Markdown files and 263 links..git diff --check origin/main...HEAD: clean.Evidence and follow-up
d3d12x/console-buffers, head9b6d9da, based on0ec94d5b(contains XCL-08/09).era_heap/era_gpu_alias/era_title_vapolicy;TitleWindowis source-owned test validation, not a new runtime API. No console MMU orproduction interface is claimed.
OpenExistingHeapFromAddress, D3D12 buffers/copies and theWindows SDK
d3d12.h; resources are synthetic and source-built.docs/experiments.mdrecords the window shape and negative controls; the capability matrixrow is updated.
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:03:57Z.
Review: COMMENTED
Technical review on Linux (Windows build and D3D12/WARP/hardware tests were not executed locally).
Checks run (Linux, commit
9b6d9dad)python3 -B tests/docs_links_check.py: passed (Checked 15 Markdown files and 263 links.).python3 -B tests/bidi_controls_check.py: passed (Checked 967 tracked source, script and build/CI files: no bidirectional controls.).python3 -B tests/gpu_report_format_check.py:Ran 10 tests in 0.004s — OK.python3 -B tests/hardware_reports_check.py:Ran 11 tests in 0.037s — OK.python3 tests/rdna2_tools_check.py:Ran 111 tests ... — OK (skipped=11)(withoutLLVM_LIB).Audit
docs/experiments.mdanddocs/xcl-capability-matrix.mdare updated with the window shape, negative controls, and desktop-alias boundary.tests/gpu_alias_window.cpp,tests/offscreen_check.cpp):TitleAllocationandReservedRangeRAII wrappers releaseera_heapandVirtualAllocmemory;ComPtrandD3D12_RANGEMap/Unmapcalls are balanced.0x1e000bytes at unaligned offset0x11234(spanning pages 1 and 2) plus 64 guard bytes on each side.E_BOUNDS(outside window),E_INVALIDARG(unaligned page run),ERROR_INVALID_ADDRESS(uncommitted page viaVirtualQuery),E_INVALIDARG+ empty alias onera_gpu_alias::openof a reserve-only page, and an unchanged 64-byte sentinel readback.E_NOTIMPLmaps to capability skip (77).No blocking issues found in static inspection.