shader: test six untested mesh frontend refusal paths #3438
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3438"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T09:04:14Z.
Part of #3416
Branch
tests-mesh-refusal-coverage(cdd62741,0feac9c2), based on main41babe6e.git merge-treewith main184b15dbis clean. Test-only change totests/native_direct_mesh_check.py(+24).What changes
Six refused runs for checks in
src/gfx1013_direct_mesh.inlthat no case reached (line numbers at the branch head):split-branch-targetmesh branch target splits instruction(SCC/VCC branch)split-unconditional-branch-targets_branchpathunproven-vcc-branchmesh VCC branch lacks a proven guest whole-wave maskscalar-memory-base-out-of-rangeunsupported mesh scalar memory addressoverlapping-execz-exitsoverlapping mesh EXECZ exitsindexed-root-tableindexed mesh descriptor table lacks a binding contractEach case asserts the refusal string. A check for any refusal would miss five of the six source mutations below, because a later check refuses the same input with another message.
Evidence
On this head, release build:
Result:
native_direct_meshPassed.src/gfx1013_direct_mesh.inlandtests/native_direct_mesh_check.pyare identical on41babe6eand184b15db.Control on this head: with the expected string of
overlapping-execz-exitsaltered, the test fails and prints the actual refusal,native compute +0x10: overlapping mesh EXECZ exits. Restored, it passes.Source mutations were run on the previous revision (f528ce28 on main
212d4b5f, same added lines), one at a time, each reverted and rebuilt. They were not repeated on this head. Line numbers are those of the same statements at this head:false &&split-branch-targetunproven mesh entry register 128false &&(:631 untouched)split-unconditional-branch-targetunsupported opcode 0x00001003uunproven-vcc-branchfalse &&scalar-memory-base-out-of-rangemesh scalar memory needs a verified guest root mappingfalse &&overlapping-execz-exitsmesh scalar branch crosses allocation, EXEC or exportfalse &&indexed-root-tabledirect descriptor address outside bound tableNot covered
src/gfx1013_direct_mesh.inl:649for thes_branchcheck. At this head that statement is at :656.CI
On main
184b15dbtheprCTest preset filter does not matchnative_direct_mesh, soBuild and test on Windowsdoes not exercise this change. The command above does.Interactions with other open mesh branches
By
git merge-treeat the current heads: a textual conflict withshader-mesh-udiv-uniform(f74eacc8), because both append cases at the same spot at the end ofmain()intests/native_direct_mesh_check.py. Resolution: keep both blocks; each writes its own layout before its cases. No conflict withshader-mesh-udiv-ops,shader-mesh-exec-widen,shader-mesh-exchange-nosaveormesh57-profile-mismatch-part.