runtime: forward one GPU-written indirect Draw #1909

Manually merged
github merged 3 commits from gh-pr/1909/head into gh-pr/1909/base 2026-11-26 23:41:58 +00:00
Owner

@⁠avt0m4t48 on GitHub · 2026-11-24 20:53 UTC · original
avt0m4t48:fix/startup-indirect-draw → main · +127 −64 · 6 files · 3 commits · merged 2026-11-24 21:04 UTC

Refs #1759. Follows #1891 and the single-record command census in #1412.

Forward one rootless desktop Draw record on guest list slot 61 using the existing indirect graphics pipeline and placed-buffer checks. Use the exact D3D12_DRAW_ARGUMENTS stride. Bind the matching desktop root and graphics pipeline and transition the argument resource to INDIRECT_ARGUMENT. A Draw consumes no index view.

The fixture GPU writes three or six vertices to a record at byte offset four. The resulting draw covers four or eight pixels respectively, with every pixel and argument word checked. The omitted writer, short argument range, and missing viewport keep the target clear. The existing Dispatch and DrawIndexed cases run from the same Windows verification job.

  • Candidate ba21b680: Windows build 26100, Microsoft Basic Render Driver 10.0.26100.33648, D3D12 debug layer enabled. cmake --build --preset release --target startup_indirect_draw_indexed startup_indirect_dispatch and ctest --preset release --no-tests=error -R '^startup_indirect_(dispatch|draw(_indexed)?)_warp$' -V passed three of three. Candidate run
  • With the upstream runtime at 94dbdbf0, the Draw case left pixel (0,0) clear (0xff000000 instead of 0xff0000ff). Dispatch and DrawIndexed still passed. Negative control
  • Linux MinGW compiled the fixture in syntax-only mode with warnings denied. Documentation link, source bidirectional-control, and startup translator checks passed.

Physical adapter execution and the application graphics pipeline path remain open. Everything used in the fixture was built from source.

**@⁠avt0m4t48** on GitHub · 2026-11-24 20:53 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1909) `avt0m4t48:fix/startup-indirect-draw` → `main` · +127 −64 · 6 files · 3 commits · merged 2026-11-24 21:04 UTC Refs #1759. Follows #1891 and the single-record command census in #1412. Forward one rootless desktop `Draw` record on guest list slot 61 using the existing indirect graphics pipeline and placed-buffer checks. Use the exact `D3D12_DRAW_ARGUMENTS` stride. Bind the matching desktop root and graphics pipeline and transition the argument resource to `INDIRECT_ARGUMENT`. A Draw consumes no index view. The fixture GPU writes three or six vertices to a record at byte offset four. The resulting draw covers four or eight pixels respectively, with every pixel and argument word checked. The omitted writer, short argument range, and missing viewport keep the target clear. The existing Dispatch and DrawIndexed cases run from the same Windows verification job. - Candidate `ba21b680`: Windows build 26100, Microsoft Basic Render Driver 10.0.26100.33648, D3D12 debug layer enabled. `cmake --build --preset release --target startup_indirect_draw_indexed startup_indirect_dispatch` and `ctest --preset release --no-tests=error -R '^startup_indirect_(dispatch|draw(_indexed)?)_warp$' -V` passed three of three. [Candidate run](https://github.com/avt0m4t48/Xbox2Windows/actions/runs/45484934665) - With the upstream runtime at `94dbdbf0`, the Draw case left pixel `(0,0)` clear (`0xff000000` instead of `0xff0000ff`). Dispatch and DrawIndexed still passed. [Negative control](https://github.com/avt0m4t48/Xbox2Windows/actions/runs/45484385924) - Linux MinGW compiled the fixture in syntax-only mode with warnings denied. Documentation link, source bidirectional-control, and startup translator checks passed. Physical adapter execution and the application graphics pipeline path remain open. Everything used in the fixture was built from source.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 23:41:56 +00:00
github manually merged commit c3c6ce0294 into gh-pr/1909/base 2026-11-26 23:41:58 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.