tooling: count slot 57 mesh requests in compile_dxil --refusals #3418
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3418"
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-28T23:58:37Z.
Change
compile_dxil --refusalscounted graphics (req_<key>.a,.rtv) and slot 67 compute (req_<key>.c67) requests only. It now also reads slot 57 mesh requests (req_<key>.m57with its.ps57and.root). It checks the key againstmesh57_request_keyand takes the entry layout from<key>.mslayout, thenreq_<key>.mslayout, then the new--mesh-layout FILE. It then runs the mesh frontend and records the first refusal. Results go to a newMesh requests (device slot 57)section and amesh57JSON object. Like the graphics and compute sections, it prints counts and reasons only, no request keys. As before,--refusalsdoes not invoke DXC and writes nothing.With
--mesh-layout FILE, the JSON gains a leading"mesh_layout"field and the text report a first linecaller-supplied mesh layout: <path>. Missing.ps57/.rootfiles giveunreadable mesh request files;.m57files whose key is not 16 lower-case hex digits are skipped.The
.mslayoutparser and the raw mesh translation moved out ofcompile_oneintoread_mesh_layoutandtranslate_raw_mesh, whichgfx1013-raw-msand--refusalsboth use.Refs #2413, #3416. The next PR in the plan takes the root inputs from the creation root signature.
Verification
Commit
664db4caonmain0614f68c, Windows 11, release build. The checks below ran before a rewording of the doc paragraph; the code and test are identical.ctest -R "^(native_compile_dxil_refusals|native_direct_mesh|native_compile_dxil_watch)$": 3/3 pass.native_compile_dxil_refusalsadds four mesh requests: one that translates, one refused at ans_load_dwordx4with no verified root mapping, one without a layout and one with a wrong key. It runs them without and with--mesh-layout, checks the counts and reasons in JSON and text, and checks that the request directory is unchanged (sizes, mtimes and now file contents)..m57collection disabled (else if (false && path.extension() == L".m57" ...):native_compile_dxil_refusalsfails.if (false && key != expected)):native_compile_dxil_refusalsfails.--refusals DIR --jobs 8: 212 s for the whole directory (graphics and compute requests included); 543 examined, 543mesh request has no entry layout; file count of the directory 47,032 before and after.Evidence and follow-up
Not covered: a real request that translates (that needs layouts), and the
--mesh-layoutpath on real data. Only the synthetic requests written by the test go through it.Checklist