experimental: derived slot 57 mesh walk with multiple/zero render targets and an opt-in group stride (draft, do not merge) #3662
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3662
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3660"
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?
@SimSalabimse on GitHub · 2026-11-30 22:10 UTC · original
SimSalabimse:local/mesh57-bounds→main· +7304 −69 · 38 files · 31 commits · draftDRAFT, not for merge. This is here so others can see what is being worked on in the derived slot 57 mesh path and avoid duplicating it. Pieces will be split into small, proven PRs.
Related: #3543, #2413, #3415, #3661.
Current status (1 December 2026)
Still experimental and unproven. Do not merge. The group stride is opt-in and unproven (
X2W_MESH57_EXPERIMENT_STRIDE=128).The branch now also has:
mainatd5970858state_block_blendgets the whole block A and reads tag-6 blend words at +0x124 like #3505DispatchMeshroot constant, the mesh root mapping/lowerer parameter index, and the empty SCC liveness vector, with Linux testsmesh57_block_aandmesh57_root_boundsWindows game run on this branch: no crash. The derived walk now reaches native compute +0x374 and refuses at
v_readfirstlane_b32. Before this, it stopped atv_add_co_ci_u32+0x148. Still nothing drawn.What this branch contains
It builds on #3415. The first 12 commits on this branch, from
runtime: opt-in immediate slot 57 mesh for indirect DispatchMeshthroughMerge origin/main into derived-mesh slice (slot 57), are an earlier state of #3415. #3415 has moved on since, and this branch has not been updated to its latest head or to current main yet, so GitHub shows conflicts. Review #3415 for those commits.The 10 commits on top:
startup: copy measured slot 57 spans when shader dump is enabledstartup: opt-in slot 57 mesh bounds from the record allocationstartup: carry decoded depth and stencil for derived slot 57 meshesstartup: accept the derived mesh record multiply chainstartup: record a raw buffer load as the derived mesh record wordstartup: include the mesh exchange header at file scopestartup: accept one to eight color targets on a derived mesh: multiple render targets (1..8) in the derived Mesh57 path.startup: accept a depth-only derived mesh when depth or stencil is used: depth-only passes (0 color targets).startup: add an opt-in unproven stride for the derived record group: see below.mesh: lower v_sub_nc_u32 and sibling integer ALU ops: the integer op change, now proposed on its own against current main in #3661. The no-carry subtracts were already accepted on main by #3539.The experimental group stride
Opt-in only:
X2W_MESH57_EXPERIMENT_STRIDE=N. When it is set, the derived record path uses N as the group stride and logsexperimental stride, unproven stride=N. When it is unset, behaviour is unchanged and the path still refuses with "group stride is zero".The stride value is not measured or proven. 128 is used only because the exchange shift (
>>7) yields groupId at a stride of 128, per the discussion in #2413 and #3543. This waits on a capture or a confirmation from R0Y00 before any of it is proposed for real.Current Windows test PC status
v_sub_nc_u32. On current main that op is accepted (#3539), and #3661 adds the remaining siblings.AI-assisted (Cursor)
@SimSalabimse on GitHub · 2026-12-01 09:35 UTC · original
I'm pausing slot 57 (Deserialize pipeline) work. The next derived-walk wall is
v_cmpx_lt_u32, which is now covered in draft #3715.A game run shows the title also creating mesh pipelines through slot 86
CreatePipelineState, which currently goes to the placeholder path. Mesh effort is moving to that route (#3641/#3640 belong to others; the shared lowering work lands in #3661/#3713). I'm leaving #3662 open as experimental.AI-Assisted
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.