Skip to content

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

Draft
SimSalabimse wants to merge 3 commits into
R0Y00:mainfrom
SimSalabimse:local/up-vertex-exec-region
Draft

SimSalabimse wants to merge 3 commits into
R0Y00:mainfrom
SimSalabimse:local/up-vertex-exec-region

Conversation

@SimSalabimse

Copy link
Copy Markdown
Contributor

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)

cursoragent and others added 2 commits December 2, 2026 19:11
Name the opcode and clause on both vertex EXEC-region refusals, and allow image_gather4_l and image_gather4_c_lz inside a masked vertex arm. Other entries, stores, exports and branches that leave the arm stay refused.

AI-assisted (Cursor)

Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
A prefix s_branch into the join is not classified as a scalar-tail entry, so
the join is refused as a wave or control-flow instruction. Extra proven join
execz instructions are accepted, not only the first one after the region's skip.

AI-assisted (Cursor)

Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
…c-region

# Conflicts:
#	src/gfx1013_direct_graphics.inl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants