runtime: forward one GPU-written indirect Draw #1902

Merged
avt0m4t48 merged 3 commits from upstream-pr/1909 into main 2026-11-24 21:04:23 +00:00
avt0m4t48 commented 2026-11-24 20:53:01 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by avt0m4t48 on 2026-11-24T20:53:01Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6591182574 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1909). Originally posted by [avt0m4t48](https://github.com/avt0m4t48) on 2026-11-24T20:53:01Z. --- 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.
upstream-sync closed this pull request 2026-11-24 21:27:32 +00:00
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!1902
No description provided.