gpu: test CPU-copied descriptor records across submissions #1053

Merged
Jess-Doit merged 2 commits from upstream-pr/1060 into main 2026-11-24 00:29:41 +00:00
Jess-Doit commented 2026-11-23 23:55:18 +00:00 (Migrated from github.com)

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


Change

Refs #870. Extend #1054’s two-submission fixture with a generated CPU binding record. Copy the record after fence 1, resolve its ID before recording submission two, and populate the matching SRV from a CPU-only heap with CopyDescriptorsSimple.

  • The live path and stale-mirror control bind the same second GPU slot. Their second words are 2468ace0 and 13579bdf respectively.
  • An unknown ID preserves descriptor publication count, submitted list count, completed fence and the first readback. A retry with the known ID produces the live result.

Verification

Tested 24cadd4 on Windows 10 22H2 19045.6456, MSVC 19.44 x64 and SDK 10.0.26100. GTX 1060 6 GB (32.0.15.6094) and in-box WARP (10.0.19041.5794). Debug and Release each passed 15 focused checks 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_(window|record_copy)_.*|(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 also passed.

Evidence and follow-up

MIT-licensed generated DWORDs and synthetic binding records. The experiments documentation records the two snapshots. Startup observation on #870

Checklist

  • This pull request covers one reviewable behavior.
  • I included the verification commands and results.
  • I added stale-mirror and bad-ID controls.
  • I updated the experiments documentation.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6571356529 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1060). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T23:55:18Z. --- ## Change Refs #870. Extend #1054’s two-submission fixture with a generated CPU binding record. Copy the record after fence 1, resolve its ID before recording submission two, and populate the matching SRV from a CPU-only heap with `CopyDescriptorsSimple`. - The live path and stale-mirror control bind the same second GPU slot. Their second words are `2468ace0` and `13579bdf` respectively. - An unknown ID preserves descriptor publication count, submitted list count, completed fence and the first readback. A retry with the known ID produces the live result. ## Verification Tested `24cadd4` on Windows 10 22H2 `19045.6456`, MSVC 19.44 x64 and SDK 10.0.26100. GTX 1060 6 GB (`32.0.15.6094`) and in-box WARP (`10.0.19041.5794`). Debug and Release each passed 15 focused checks 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_(window|record_copy)_.*|(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` also passed. ## Evidence and follow-up MIT-licensed generated DWORDs and synthetic binding records. The experiments documentation records the two snapshots. [Startup observation on #870](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7116272710) ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the verification commands and results. - [x] I added stale-mirror and bad-ID controls. - [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:04 +00:00
R0Y00 commented 2026-11-24 06:49:54 +00:00 (Migrated from github.com)

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


I pushed 8531dd26 to create the default-heap output in COMMON and explicitly transition it before the first copy. That removes warning 1328 on Windows 11 build 26200.9974. Windows Release passed 10/10 descriptor-window cases on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), with zero debug errors and warnings. The unknown-ID case still verifies unchanged descriptor write, submission, fence and readback state, then a successful retry.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117788843 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1060#issuecomment-7117788843). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T00:10:45Z. --- I pushed 8531dd26 to create the default-heap output in COMMON and explicitly transition it before the first copy. That removes warning 1328 on Windows 11 build 26200.9974. Windows Release passed 10/10 descriptor-window cases on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), with zero debug errors and warnings. The unknown-ID case still verifies unchanged descriptor write, submission, fence and readback state, then a successful retry.
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!1053
No description provided.