test: verify GPU-written indirect dispatch arguments #1805

Manually merged
github merged 2 commits from gh-pr/1805/head into gh-pr/1805/base 2026-11-26 23:34:24 +00:00
Owner

@⁠SuperCraft3M on GitHub · 2026-11-24 18:58 UTC · original
SuperCraft3M:test/gpu-produced-indirect-dispatch → main · +222 −0 · 3 files · 2 commits · merged 2026-11-24 19:18 UTC

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.

**@⁠SuperCraft3M** on GitHub · 2026-11-24 18:58 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1805) `SuperCraft3M:test/gpu-produced-indirect-dispatch` → `main` · +222 −0 · 3 files · 2 commits · merged 2026-11-24 19:18 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 23:34:22 +00:00
github manually merged commit 4004c33be0 into gh-pr/1805/base 2026-11-26 23:34:23 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-24 19:14 UTC · original

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.

**@⁠R0Y00** on GitHub · 2026-11-24 19:14 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1805#issuecomment-7141815412) 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.