Skip to content

shader: combine mesh f16 mixlo/mixhi halves - #3762

Merged
R0Y00 merged 1 commit into
R0Y00:mainfrom
lambirou:codex/mesh-f16-mix
Dec 1, 2026
Merged

R0Y00 merged 1 commit into
R0Y00:mainfrom
lambirou:codex/mesh-f16-mix

Conversation

@lambirou

@lambirou lambirou commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

A real slot 57 mesh request (req_72e1909e13df6f66, MS 3072, PS 4608, root 5724 bytes) still refused at +0x7c0 with unproven mesh entry register 287. The program writes both halves of v31:

  • v_fma_mixlo_f16 v31, s81, v18, v30 at +0x79c
  • v_fma_mixhi_f16 v31, s82, v18, v15 at +0x7b8

and then reads the whole word. The mesh stage only tracked half-writes when layout.texture_heap_slot_map was set, so each instruction left the value marked partial and the whole-word read refused.

This enables graphics_half_writes for every mesh stage. The existing DirectCompute bookkeeping already merges the two halves when both are written; a lone half still refuses a whole-word read, which the new negative control covers.

Validation (Windows, Release, DXC 10.0.26100):

  • python -B tests/native_direct_mesh_check.py out\build\release\compile_dxil.exe "<DXC dir>" - pass, including mesh-mixed-half-pair (both halves through legacyF32ToF16 and or i32, exported) and mesh-mixed-half-single (refused, register 276 undefined).
  • ctest --preset release --no-tests=error -R '^native_direct' - 2/2 passed (native_direct_container, native_direct_mesh).

Counts only; request bytes stay local.

Refs #3497

@R0Y00
R0Y00 merged commit 158ef79 into R0Y00:main Dec 1, 2026
5 checks passed
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