test: verify GPU-written indirect dispatch arguments #1798

Merged
SuperCraft3M merged 2 commits from upstream-pr/1805 into main 2026-11-24 19:18:21 +00:00
SuperCraft3M commented 2026-11-24 18:58:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by SuperCraft3M on 2026-11-24T18:58:05Z.


Refs #1412

Record a source-built compute writer and an indirect compute consumer on the desktop device returned by D3D12XboxCreateDevice. A UAV-to-indirect transition orders the record write before ExecuteIndirect. Read back the argument buffer, both guard words and the consumer result after the fence. The omitted-writer control starts with zero X groups and checks that the result remains unchanged.

Tested d4fb8113 using:

cmake --build C:/Xbox2Windows-build/indirect-pr --target startup_indirect_dispatch
ctest --test-dir C:/Xbox2Windows-build/indirect-pr --no-tests=error --output-on-failure -R '^startup_indirect_dispatch_(warp|hardware)$' -V

Two passed, none skipped, on Windows 11 build 26300.9711. WARP (Microsoft Basic Render Driver 10.0.26100.9711) and NVIDIA GeForce RTX 4070 (32.0.16.2114) both read back (4,3,2) and 0x31415f02. Without the writer, they both read (0,3,2) and 0x31415926. The D3D12 debug layer was unavailable. This measures the desktop command signature and synchronization; console-list forwarding and argument-buffer aliasing remain open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6589169390 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1805). Originally posted by [SuperCraft3M](https://github.com/SuperCraft3M) on 2026-11-24T18:58:05Z. --- Refs #1412 Record a source-built compute writer and an indirect compute consumer on the desktop device returned by D3D12XboxCreateDevice. A UAV-to-indirect transition orders the record write before ExecuteIndirect. Read back the argument buffer, both guard words and the consumer result after the fence. The omitted-writer control starts with zero X groups and checks that the result remains unchanged. Tested d4fb8113 using: ```powershell cmake --build C:/Xbox2Windows-build/indirect-pr --target startup_indirect_dispatch ctest --test-dir C:/Xbox2Windows-build/indirect-pr --no-tests=error --output-on-failure -R '^startup_indirect_dispatch_(warp|hardware)$' -V ``` Two passed, none skipped, on Windows 11 build 26300.9711. WARP (Microsoft Basic Render Driver 10.0.26100.9711) and NVIDIA GeForce RTX 4070 (32.0.16.2114) both read back (4,3,2) and 0x31415f02. Without the writer, they both read (0,3,2) and 0x31415926. The D3D12 debug layer was unavailable. This measures the desktop command signature and synchronization; console-list forwarding and argument-buffer aliasing remain open.
upstream-sync closed this pull request 2026-11-24 20:00:41 +00:00
R0Y00 commented 2026-11-24 20:01:16 +00:00 (Migrated from github.com)

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


I resolved the adjacent CMake registration conflict and retained both tests. Windows Release passed 4/4 across indirect dispatch and upload arena on WARP and RTX 4060 Laptop, no skips. This establishes the desktop GPU-writer baseline. The guest command-list wrapper, unmapped-address and placeholder-signature controls remain open in #1759.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7141815412 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1805#issuecomment-7141815412). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T19:14:46Z. --- I resolved the adjacent CMake registration conflict and retained both tests. Windows Release passed 4/4 across indirect dispatch and upload arena on WARP and RTX 4060 Laptop, no skips. This establishes the desktop GPU-writer baseline. The guest command-list wrapper, unmapped-address and placeholder-signature controls remain open in #1759.
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!1798
No description provided.