Repository navigation
shader: combine mesh f16 mixlo/mixhi halves - #3762
Merged
Merged
Conversation
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A real slot 57 mesh request (
req_72e1909e13df6f66, MS 3072, PS 4608, root 5724 bytes) still refused at+0x7c0withunproven mesh entry register 287. The program writes both halves ofv31:v_fma_mixlo_f16 v31, s81, v18, v30at+0x79cv_fma_mixhi_f16 v31, s82, v18, v15at+0x7b8and then reads the whole word. The mesh stage only tracked half-writes when
layout.texture_heap_slot_mapwas set, so each instruction left the value marked partial and the whole-word read refused.This enables
graphics_half_writesfor every mesh stage. The existingDirectComputebookkeeping 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, includingmesh-mixed-half-pair(both halves throughlegacyF32ToF16andor i32, exported) andmesh-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