tooling: draft reviewed slot 57 profiles from captures #3724
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3724"
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 lambirou on 2026-12-01T10:55:40Z.
Refs #3505 #3493 #3502 #870
Why
A reviewed slot 57 profile still has to be written by hand. A long local run left 437
.s57captures but no.mesh57-statefor the color pipelines, so the first color key cannot be reviewed. The capture holds the mesh-layout depth-stencil and blend words; the.t57sidecar (#3502) holds the ordered RTV formats, DSV and sample description. The tool should prefill exactly those and leave the rest to a reviewer.What
tools/startup/mesh57_profile_draft.py(new):--draft,--check,--census.DB_DEPTH_CONTROL,DB_STENCIL_CONTROLandDB_STENCILREFMASK(_BF)atA+0x10Cwith the rules ofpipeline_state_decode.h.CB_BLENDn_CONTROLwords atA+0x124withcb_blend.h/state_block_blend.h, including the dual-source,BOTH_SRC_ALPHA, alpha-factor and MIN/MAX refusals..t57tuple; refuses conflicting tuples, an overflow line and malformed lines.mrt0..mrt7= color,mrtz,null, none) and refuses a stage/attachment pair that cannot describe the same pipeline.review_requiredand a byte-free capture summary.mesh57_profile.py:--draft,--checkand--censusdispatch.profile is incomplete: ...), refuses the review metadata, and refuses a reviewed state that disagrees with a decoded capture value..ps57, zero RTV/blend, enabled depth writes, typed DSV, zeroed pixel for versions 2–5, version 6 refused.Evidence
Commands from the worktree, Release preset, MSVC 19.44 and Windows SDK DXC 10.0.26100.0:
The fixture is source-built:
triangle()fromnative_direct_mesh_check.py, the four-wordexp mrt0pixel fromstartup_mesh57_real_shape_check.py, the null-export pixel fromstartup_mesh57_depth_only_check.py, andVALID_ROOTfromstartup_gfx2hlsl_root_check.py. The optional CTest arguments runcompile_dxil gfx1013-raw-mesh-pson the reviewedmeshps1 0 0 64entry and assert a DXBC output.Local capture census (read-only cache; no bytes copied or committed):
A drafted color capture preserves its color-target indices and decoded depth words, but leaves
rt_formats,depth_format,samples,blend,mesh,rasterizer,pixelandversionnull.--checkexits 1 and names all of them; no profile is written.Mutation: with
capture != revieweddisabled incapture_mismatches, the mismatch case accepts an editeddepth_stencil.depth_funcand the test fails (profile completeinstead of the refusal); restored.Limits / blocker
.t57sidecars, so the ordered RTV formats, DSV and sample description of the 239 color-capable captures are unknown. A profile would require inventing those values. This needs #3502 (or equivalent capture evidence) in the run.count 1,quality 0); a captured multisample tuple is drafted but cannot be written.No game files, game bytes, GDK files or borrowed GPL code are included.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-01T11:22:47Z.
Review: APPROVED
Reviewed the capture-derived draft, preservation of unresolved fields, duplicate-key refusal and the explicit reviewed-profile check. The local mesh57_profile_draft_check.py passed with compile_dxil and Windows SDK DXC, including the depth-only profile and refusal controls.