Repository navigation
tooling: draft reviewed slot 57 profiles from captures - #3724
Merged
Merged
Conversation
R0Y00
approved these changes
Dec 1, 2026
R0Y00
left a comment
Owner
There was a problem hiding this comment.
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.
This was referenced Dec 1, 2026
8 of 9 tasks
lambirou
added a commit
to lambirou/Xbox2Windows
that referenced
this pull request
Dec 1, 2026
lambirou
added a commit
to lambirou/Xbox2Windows
that referenced
this pull request
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.
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 startup: record bound slot 57 targets with the creation capture #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.