gpu: test descriptor paging across two logical heaps #1067

Merged
Jess-Doit merged 3 commits from upstream-pr/1074 into main 2026-11-24 00:58:44 +00:00
Jess-Doit commented 2026-11-24 00:21:29 +00:00 (Migrated from github.com)

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


Change

Refs #874. Copy slots 255 and 256 in each of two logical descriptor heaps. Allocate their pages in interleaved order in one shared shader-visible heap, so each logical copy must split across nonadjacent physical pages. Reuse #1054’s shader to read all four descriptors. A swapped-heap run must exchange both pairs of sentinel words.

Verification

Tested 232103a0 on Windows 10 22H2 19045.6456, MSVC 19.44 x64 and SDK 10.0.26100.0. GTX 1060 6 GB (32.0.15.6094) and in-box WARP (10.0.19041.5794) both returned S_OK for the 1,024-slot shared heap. Each copy split into two chunks. Normal and swapped readbacks matched all four expected words. Debug and Release each passed 13 tests, with zero skips and zero D3D12 warnings or errors.

cmake --preset dev
cmake --build --preset dev --target offscreen_check --parallel 4
$env:XBOX2WINDOWS_ADAPTER='1060'
ctest --preset dev --no-tests=error -R '^(descriptor_(heap_paging|window)_.*|(dual_uav|offscreen)_(hardware|warp)|offscreen_capability_table_self_test)$' -V

Repeat with release. git diff --check, python -I -B tests/docs_links_check.py and python -I -B tests/bidi_controls_check.py passed.

Evidence and follow-up

The MIT-licensed fixture uses four generated DWORDs. Its 256-slot page size and allocation order are fixture policy, informed by the on-demand approach in XCL. Maintainer request · XCL paging reference

Checklist

  • This pull request covers one reviewable behavior.
  • I included the verification commands and results.
  • I added a swapped-heap control.
  • I updated the experiments documentation.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6571698669 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1074). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-24T00:21:29Z. --- ## Change Refs #874. Copy slots 255 and 256 in each of two logical descriptor heaps. Allocate their pages in interleaved order in one shared shader-visible heap, so each logical copy must split across nonadjacent physical pages. Reuse #1054’s shader to read all four descriptors. A swapped-heap run must exchange both pairs of sentinel words. ## Verification Tested `232103a0` on Windows 10 22H2 `19045.6456`, MSVC 19.44 x64 and SDK `10.0.26100.0`. GTX 1060 6 GB (`32.0.15.6094`) and in-box WARP (`10.0.19041.5794`) both returned `S_OK` for the 1,024-slot shared heap. Each copy split into two chunks. Normal and swapped readbacks matched all four expected words. Debug and Release each passed 13 tests, with zero skips and zero D3D12 warnings or errors. ```powershell cmake --preset dev cmake --build --preset dev --target offscreen_check --parallel 4 $env:XBOX2WINDOWS_ADAPTER='1060' ctest --preset dev --no-tests=error -R '^(descriptor_(heap_paging|window)_.*|(dual_uav|offscreen)_(hardware|warp)|offscreen_capability_table_self_test)$' -V ``` Repeat with `release`. `git diff --check`, `python -I -B tests/docs_links_check.py` and `python -I -B tests/bidi_controls_check.py` passed. ## Evidence and follow-up The MIT-licensed fixture uses four generated DWORDs. Its 256-slot page size and allocation order are fixture policy, informed by the on-demand approach in XCL. [Maintainer request](https://github.com/R0Y00/Xbox2Windows/issues/874#issuecomment-7117289535) · [XCL paging reference](https://github.com/ivall/xcl/pull/84) ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the verification commands and results. - [x] I added a swapped-heap control. - [x] I updated the experiments documentation. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted (Codex).
upstream-sync closed this pull request 2026-11-24 06:46:09 +00:00
R0Y00 commented 2026-11-24 06:49:57 +00:00 (Migrated from github.com)

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


I reproduced debug warning 1328 on Windows 11 build 26200.9974. The paging output now starts in COMMON and transitions explicitly to UAV. I also tested d246daf4 after integrating main with #1060. Windows Release passed 19/19, including normal and swapped paging, descriptor-window live/stale/unknown records, dual UAV and offscreen controls on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818). The debug layer reported zero errors and warnings. The physical slots and all four sentinel words matched both paging expectations.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118166765 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1074#issuecomment-7118166765). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T00:32:00Z. --- I reproduced debug warning 1328 on Windows 11 build 26200.9974. The paging output now starts in COMMON and transitions explicitly to UAV. I also tested d246daf4 after integrating main with #1060. Windows Release passed 19/19, including normal and swapped paging, descriptor-window live/stale/unknown records, dual UAV and offscreen controls on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818). The debug layer reported zero errors and warnings. The physical slots and all four sentinel words matched both paging expectations.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1067
No description provided.