experimental: shader: accept a proven second vertex EXECZ into a scalar-tail join (draft, do not merge) #3880

Open
SimSalabimse wants to merge 3 commits from upstream-pr/3880 into main
SimSalabimse commented 2026-12-02 18:30:24 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-12-02T18:30:24Z.


Draft, do not merge. Experimental piece of the native graphics path work (getting the native shader path to draw real frames). Based directly on current main; it does not stack on another PR.

What it changes

Vertex EXEC regions in the native graphics lowering (src/gfx1013_direct_graphics.inl):

  • A second proven EXECZ is accepted when it enters a scalar-tail join, not only the first one after the region's skip.
  • Both vertex EXEC-region refusals now name the opcode and the clause that refused.
  • image_gather4_l and image_gather4_c_lz are allowed inside a masked vertex arm.
  • Other entries, stores, exports and branches that leave the arm stay refused.
  • The existing native_direct_container fixtures are aligned with the lowered refusals (a prefix s_branch into the join is still refused).

New test family: tests/cmake/native_graphics_vertex_exec_region.cmake (native_graphics_vertex_exec_region_warp and _hardware, synthetic fixtures built from this repository).

Tests

Run on the Windows test PC, Debug build of main plus these two commits, GPU tests one at a time:

  • native_graphics_vertex_exec_region_warp and native_graphics_vertex_exec_region_hardware: pass.
  • native_direct_container: passes.
  • Wider native family ^(native_graphics_|native_direct_|native_fixed_)|native_.*_(ir|dxil|controls)$: 217 of 217 pass.

Not measured: whether any title shader reaches the newly accepted shape. The change is synthetic-fixture coverage only, hence experimental.

AI-assisted (Cursor)

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5612431267 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3880). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-12-02T18:30:24Z. --- Draft, do not merge. Experimental piece of the native graphics path work (getting the native shader path to draw real frames). Based directly on current `main`; it does not stack on another PR. ## What it changes Vertex EXEC regions in the native graphics lowering (`src/gfx1013_direct_graphics.inl`): - A second proven `EXECZ` is accepted when it enters a scalar-tail join, not only the first one after the region's skip. - Both vertex EXEC-region refusals now name the opcode and the clause that refused. - `image_gather4_l` and `image_gather4_c_lz` are allowed inside a masked vertex arm. - Other entries, stores, exports and branches that leave the arm stay refused. - The existing `native_direct_container` fixtures are aligned with the lowered refusals (a prefix `s_branch` into the join is still refused). New test family: `tests/cmake/native_graphics_vertex_exec_region.cmake` (`native_graphics_vertex_exec_region_warp` and `_hardware`, synthetic fixtures built from this repository). ## Tests Run on the Windows test PC, Debug build of `main` plus these two commits, GPU tests one at a time: - `native_graphics_vertex_exec_region_warp` and `native_graphics_vertex_exec_region_hardware`: pass. - `native_direct_container`: passes. - Wider native family `^(native_graphics_|native_direct_|native_fixed_)|native_.*_(ir|dxil|controls)$`: 217 of 217 pass. Not measured: whether any title shader reaches the newly accepted shape. The change is synthetic-fixture coverage only, hence experimental. AI-assisted (Cursor)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3880:upstream-pr/3880'
git switch 'upstream-pr/3880'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3880'
git switch 'upstream-pr/3880'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3880'
git switch 'upstream-pr/3880'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3880'
git switch 'main'
git merge --squash 'upstream-pr/3880'
git switch 'main'
git merge --ff-only 'upstream-pr/3880'
git switch 'main'
git merge 'upstream-pr/3880'
git push origin 'main'
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!3880
No description provided.