Repository navigation
Conversation
The shared scalar ALU already lowers all three, SCC included. The mesh frontend refused them with "unsupported mesh instruction or EXEC state". They now join s_bfe_u32 and s_min_u32 on the shared path, with the same EXEC and VCC destination refusals. On a native Mesh86 capture (1,569 distinct slot 86 programs), these were the first refusal for 555 of them, and 122 more now translate fully. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up on R0Y00#3708. After s_cmp_eq_u32 s20, 0, an s_cselect_b32 behind s_brev_b32 still selects on the compare's SCC, and behind s_not_b32 on (result != 0). Both selects reach the exported X. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adopt the existing committed desktop backing for a placed material view, refresh it from title memory at submit, and copy only changed runs. Keep the existing backing and its fences; a submitted GPU write stops refreshes. Add a source-built two-SRV fixture with range, token, stale, budget and mutant controls. Refs R0Y00#3640, R0Y00#3638, R0Y00#3545.
Both are already lowered by the shared ALU (the reciprocal as v_rcp_f32, the shift as an arithmetic right shift by src0 & 31). The mesh lane ALU list now admits them, so the full_exec || exec_skip rule and the partial-write merge apply unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up on R0Y00#3709: v-rcp-iflag-f32 now checks that the reciprocal's bits reach the exported X, as v-ashrrev-i32 already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… in the mesh frontend The mesh frontend narrowed EXEC only for v_cmpx_eq_u32, ne_u32 and lt_u32, and for v_cmpx_gt_u32 only in the lane-linear count form. Mesh86 programs also use v_cmpx_lg_f32, v_cmpx_gt_f32 and a per-lane v_cmpx_gt_u32. They now get the same EXEC-only narrowing through the shared compare: lg is an ordered fcmp one and gt_f32 an ordered ogt, so a NaN lane leaves EXEC, and gt_u32 is icmp ugt. The count form of v_cmpx_gt_u32 is still matched first. Float abs/neg, SDWA, DPP, clamp and omod stay refused. Part of R0Y00#3703. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…re the guard Inside the vertex skip, skinned mesh programs save EXEC, narrow it with one v_cmpx_ne_u32 and no EXECZ, run straight-line VALU work and restore the saved vertex mask. The restore was refused as "mesh EXEC write inside a lane-skip block". When the CMPX runs, every register is exact for the skip's guard lanes. A write under the narrowed mask whose old value is still that exact value (unchanged since the CMPX, or itself merged) is now merged per lane with it, so it stays exact for the guard. A restore of the guard's saved mask keeps every register that is unchanged since the CMPX or merged, and clears the rest, such as a register first written under the narrowed mask. A second narrowing, or a restore of a mask saved under the narrowed EXEC, stays refused. Part of R0Y00#3703. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at the same restore The R0Y00#3671 lane-limit proof tags partial VGPRs with the vertex skip's lane count when the skip closes, so an export under the same count may read them after full EXEC returns. It required the closing skip's guard to be the current lane mask. When a nested CMPX skip inside the vertex skip exits to the same EXEC restore, the nested mask is still current at the outer close, so the proof was skipped and the restore erased the position VGPRs ("graphics register undefined on an incoming path"). A nested per-lane skip now records the parent guard when it opens directly after a single CMPX that narrowed it. Nothing ran under the narrowed mask outside that skip, and the skip branches per thread, so after it closes every register is exact for each of the parent's lanes. If the parent then closes at the same instruction, its lane limit applies as before. Any other narrowing, a write between the CMPX and the EXECZ, or another path arriving at the restore keeps the previous behavior. Part of R0Y00#3703 (item 6). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…estore A chain of per-lane skips, each opened straight after a CMPX that narrows the skip around it, merges every register per lane when it closes. R0Y00#3710 carried that fact from one nested skip to its parent only, and only when the parent closed at the same instruction. Skinned mesh programs nest three such skips inside the vertex skip and close all of them at a restore of the vertex mask, after which the vertex skip goes on. The restore then treated every register written since the mask was saved as stale and cleared it, so the next read refused with "graphics register undefined on an incoming path". The carried lane set now passes through any depth of skips closing at one pc, and an EXEC restore at that pc keeps the register file when the restored mask is the carried guard of the enclosing skip. The set is tied to its pc so it never describes a later instruction. A write between the innermost CMPX and its EXECZ, or a narrowing that is not a CMPX, still breaks the chain. Part of R0Y00#3703. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…able V# The mesh frontend accepted buffer_load_format_x only from a resource heap slot. Skinned slot 86 programs read the V# whole from a bound descriptor table instead and were refused with "formatted mesh load lacks an R32_UINT resource heap contract". Translator: a format load whose V# comes from a bound table goes through the shared typed-buffer SRV path, as in vertex and pixel shaders, which checks the table binding and all four descriptor words. The R0Y00#3720 control that kept this route refused under heap tokens now checks that it compiles without a token view. Runtime: slot 86 accepts a one-dword typed_buffer_srv from a descriptor table and binds it as an R32_UINT buffer view through the same checks as a typed heap slot (R32_UINT token view, or a raw V# with the identity component map and a 4-byte stride). A raw table V# must also name a 32-bit format (32_UINT, 32_SINT or 32_FLOAT), so the view returns the dword the guest load would. Those word 3 checks live in mesh86_typed_vsharp.h with unit tests and two mutation controls. Part of R0Y00#3703. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A merged value is exact for the guard's lanes only in the register it was merged into. Keying the merges by value let a copy of a merged value into another register pass the restore as exact. Record the merged value per register instead, and add the copy fixture from review plus a second merge into the same register. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A raw V# with SWIZZLE_ENABLE (word 1 bit 31) or ADD_TID_ENABLE (word 3 bit 23) set addresses elements differently from the linear R32_UINT view slot 86 binds, so refuse it on both the heap and the table route. Add a linear_addressing unit case with two header mutation controls, and run the mesh86_typed_vsharp tests in the pr preset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pr test filter runs mesh86_typed_vsharp_*, but the pr build preset only builds its listed targets, so CI reported the tests as not run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Inside a SAVEEXEC then arm the compiler often copies EXEC, runs some vector work, narrows EXEC with one CMPX, skips with EXECZ and restores the copy. Each lane runs the work and then the skipped instructions only if the compare holds: the same if-only region s_and_saveexec_b64 would open on the compare. The then-arm scan now registers it as a child region and the mesh frontend lowers it as a nested diamond on the shared compare, through the existing nested SAVEEXEC join and restore. The region needs its own restore of the copied register inside the arm; anything else stays an EXEC read of the then arm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The compiler also narrows the rest of an if-only SAVEEXEC then arm with a CMPX whose EXECZ skips to the arm's end, leaving the EXEC copy unrestored. The rest of the arm is then the region, and the SAVEEXEC restore ends both. Accept that form when the enclosing arm has no else arm (its inverse would read the narrowed EXEC), and visit the join address again after the region closes so the enclosing arm ends there too. Regions chain the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The then-arm scan recorded every scalar destination as a register pair, so a 32-bit write such as s_lshl_b32 s7 also marked s8 as written. At the join s8 was clobbered, and a lane mask kept there was lost; the else arm also could not read the neighbour. Record the pair only for 64-bit SALU forms and for non-SALU writes (compare masks, readlane), as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A buffer_load_dword, or a buffer_load_format_x from a descriptor-table V#, without OFFEN, with a uniform IDXEN index if any and a constant or uniform SOFFSET, reads the same address in every lane. Until the shader stores to memory it returns the same dwords in every lane, so mark them uniform under the same conditions as the heap typed load and let a following v_readfirstlane read them. The address is checked before the load, whose destination may be its own index register. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…codex/m1-slot86-evidence
…of' into codex/m1-slot86-evidence # Conflicts: # CMakePresets.json # docs/experiments/mesh86-pixel-execz.md
… codex/m1-slot86-evidence # Conflicts: # CMakePresets.json
# Conflicts: # CMakePresets.json
# Conflicts: # src/gfx1013_direct_mesh.inl # tests/native_direct_mesh_check.py
This was referenced Dec 2, 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.
Problem
Slot 86 DispatchMesh requests can arrive with no pixel stage. The translator compiled the mesh stage, but every published profile refused the request:
--prove-root-srvand--prove-texture1d-maprequire a pixel stage;--heap-bufferrequires at least onecreateHandleFromHeapread;--prove-root-constantsrefuses the mesh stage's SRVs.The cache at
_wt/agent-b-86-evidence/out/startup/shader_cachecurrently holds 3,876req_*.m86files: 987 have an empty.ps86, 2,889 have a pixel stage. Of the 987 PS-less requests, 614 reached the heap proof and now translate when the mesh stage has no direct heap read, 357 stop earlier in mesh translation, 10 index only the sampler heap, and 6 stop at the root-constants proof.Design
Adds profile 6, a PS-less mesh SRV table marker. The publisher dumps only the mesh stage and accepts the profile only when:
texture byte r/oSRV,t0..tN-1;createHandleFromBindingfor onetNin space 0, or the single legacycreateHandle(rangeId=0)form of a version-1 root SRV;createHandleFromHeapread.The marker stores
constant <root> <count>andsrv <t> <root> <offset> <bytes> <kind> <dim>lines. The runtime builds a synthetic root with the plan's constants and flat SRV table and reusesbind_native_mesh86to resolve each record; an unusable record refuses the draw. Existing profile 1/2/3/4/5 output is unchanged, and PS-full requests still use the old paths.Validation
08dc8a7b1c8fd5datranslated to profile 6 withconstant 4 2and seven SRV lines (t0..t6), including a root SRV and descriptor-table records. Request bytes were not committed.startup_mesh86_psless_hardwarepasses: the source-built mesh-only root SRV reads0x12345678and writes D16 depth 0.5; negative controls cover a missing proof, an unproven/missing SRV, a bad table offset and a pixel-stage attempt.startup_mesh86_translate_hardwarepasses (PS-full profile 4 unchanged).startup_mesh86_srv_proofpasses (PS-full profile 2 unchanged).startup_mesh86_psless_warpfails after the recorded DispatchMesh with device removal,map argument readback failed (HRESULT 0x887a0005). The same fixture and marker pass on the RX 9060 XT. This is the one test intentionally left red in this draft.Stack: Windows 11 build 26300, AMD Radeon RX 9060 XT driver 32.0.32029.2010; WARP 10.0.26100.10068. DXC 10.0.26100.0.
Refs #3641, #3703. AI-assisted.