tracking: fixed mesh pipelines (device slot 57) requested at run time, 0 of 298 translated; checklist of claimable items #2405
Open
opened 2026-11-25 15:47:58 +00:00 by NiiRoZz
·
78 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
R0Y00/Xbox2Windows#2405
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 NiiRoZz on 2026-11-25T15:47:58Z.
Refs #1760, #1998, #1759, #2253.
Summary
A run of the startup runtime on a console title requested 298 distinct fixed mesh pipelines through the slot 57 request path added in #2253. None is translated:
inspect_mesh57_requestintools/startup/gfx2hlsl.pyvalidates a request and then always ends withslot 57 mesh code emission is unavailable. In the same 600 s run the shim refused 2,708 indirectDispatchMeshcommands. This is the geometry that is missing from the picture.This issue lists what a slot 57 mesh translation has to handle, measured on that set, as separate items one person can take. Counts only; the programs, the logs and the title stay local.
How the counts were taken
mainat910a2653, Release, Windows 11 build 26300, NVIDIA GeForce RTX 5090, debug layer off, 600 s.decode(strip_header(...))fromtools/startup/gfx2hlsl.pyat7092683aover the 298.m57/.ps57request files (the slot 57 functions are unchanged between the two revisions).v_interp_p2_f16) are only the order of the pre-checks ininspect_mesh57_request. They are not first refusals of a lowerer: removing any of them still translates 0 of 298.Shape of the 298 mesh programs
ds_write_b32, 3ds_read_b32, 5s_barrier, ones_sendmsg(GS_ALLOC_REQ)v_readfirstlane_b32,v_mbcnt_lo/hi_u32_b32,v_cmpx_*pos0and the primitive exportparam12)buffer_load_format_xv_writelane_b32/v_readlane_b32pos1s_setreg_imm32_b32)Size: 223 to 7,296 instructions, median 536. 115 distinct opcode sets.
Paired pixel stage: 202 decode and classify as a pixel stage, 74 requests have no pixel stage (depth only), 18 export only to the null target and are refused by the role check, 4 stop in decode at
v_interp_p2_f16withop_sel.Items (pick one, say so in a comment)
Translator
tools/mesh_dynamic_aot.py(#1913, #2241) or new code ingfx2hlsl.py.mesh_entry_aot/mesh_dynamic_aottake a container with PSV0 limits; a slot 57 request is raw code plus a root signature. Needs an adapter, then counts by #1998 row.param12and their pairing with the pixel stage inputsgfx2hlsl.pyexists; the mesh linkage does not.inspect_mesh57_request.v_writelane_b32/v_readlane_b32pos1(clip and cull distances)v_interp_p2_f16withop_selin the paired pixel stageRuntime
DispatchMeshmesh86_cache.inlloads a.ms.csotoday. Please ask on #1759 before taking.What a contribution needs
Same as #1998: a source-built or hand-assembled program with the construct, read-back with a negative control, the LLVM / Mesa reference for each instruction lowered, and a precise refusal for what is not covered. No bytes from retail software.
Not measured
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T15:48:39Z.
I'll take T2 and then the first slice of T1.
Plan:
I will post the T2 counts here before opening a PR for T1. The other rows are free.
Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T16:05:42Z.
I'll also take T5 (the 18 pixel stages that export only to the null target) and T9 (
v_interp_p2_f16withop_sel), as two separate PRs.op_selform that writes the high half of the destination (the Mesa ACOv_interp_p2_hi_f16reading already noted incheck_encoding), with a fixture against a CPU reference; otherop_selbits stay refused.Neither translates a mesh pipeline on its own; they remove pre-checks ahead of T1.
Imported from R0Y00/Xbox2Windows. Originally posted by R0D4X on 2026-11-25T16:10:36Z.
looking into this
Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T16:12:40Z.
T2 result, at
7092683a. Counts only.Adapter: request header stripped, each instruction printed by LLVM 15
llvm-mc(gfx1013, wave64), branch offsets spelled signed withmesh_loop_census.signed_branches, thenmesh_entry_aot.lower(decoded, [0]*128, (256, 256))andmesh_dynamic_aot.enumerate_variants(decoded, 128, (256, 256)). The limits replace the PSV0 bounds and are the largest the lowerers accept. The adapter is a local script and is not in a PR.298 of 298 programs disassemble. 23 hold at least one encoding LLVM 15 does not print; none of those is reached as a first refusal. Both lowerers give the same first refusal for every program.
Unsupported scalar instruction s_waitcnt_depctrs_waitcnt_depctrass_nopLDS store not waited before the barriers_waitcnt_depctrass_waitcnt lgkmcnt(0)s_bitcmp0_b32unsupporteds_clauseunsupportedUnknown descriptor table or offsetint()on the operandsrc_scc(s_cmp_lg_u32,s_cmp_eq_u32)Scalar pair requires concrete words(s_mov_b64)So no first refusal is a #1998 row A to I, and 0 of 298 lower. I assigned rows by reading these messages against the row definitions;
s_bitcmp0_b32and thes_mov_b64pair refusal are unsupported forms that may sit in front of a row A or C construct, which I did not examine. Withs_clausealso read as a no-op the split becomes 129s_bitcmp0_b32, 87 a read of an entry SGPR the fixed profile (s3, s17, s20, s21) does not define, 64 unknown descriptor table or offset, 15 thesrc_scccrash, 3 concrete words. 78 of the 87 print the row G message, but the register is an entry argument, not an undefined scalar, so I did not count them as G.The what-if rows are assumptions about the model, not lowerings; in particular reading
s_waitcnt_depctras the wait for the LDS store is unverified (compute_store_aottakes it as a no-op,pixel_aotrefuses it as a wait). Not measured: anything after the first refusal, more than two waves, any entry state other than the lowerers' fixed profile, thes_sendmsgspelling (never reached), and no lowerer output was compiled or run.The
src_scccase surfaces as aValueErrorfromint()rather than a stated refusal. The open #1821 handles that operand ingfx2hlsl.py, not in these two lowerers.Imported from R0Y00/Xbox2Windows. Originally posted by R0D4X on 2026-11-25T16:27:33Z.
Claiming item T4 (parameter exports up to
param12and pairing with the pixel stage inputs); opened PR #2427 (https://github.com/R0Y00/Xbox2Windows/pull/2427) with source-built static/dynamicms_6_5+MeshPixelStageps_6_0fixtures verified on WARP and RTX 5080.Imported from R0Y00/Xbox2Windows. Originally posted by R0D4X on 2026-11-25T16:51:43Z.
Claiming the
s_bitcmp0_b32/s_bitcmp1_b32(ands_bitcmp0_b64/s_bitcmp1_b64) scalar bit-compare family in the bounded mesh lowerers (tools/mesh_entry_aot.pyandtools/mesh_dynamic_aot.py) surfaced by the T2 census (129 of 298 programs). Scope: concrete 32/64-bit operands (includingexec/vccand wrapped bit indices), constant-bufferDyn32-bit bit tests feeding descriptor joins (s_cbranch_scc0/s_cbranch_scc1), and strict refusals for unwritten SGPRs, width mismatches, unprovenRuntimeWords, and descriptor words. Verification: dedicated CPU + SOPC decode + WARP/hardware D3D12 draw fixture (tests/mesh_bitcmp_check.py) with negative controls and LLVM 15 binary round-trip wired in CI.Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T16:21:01Z.
I took the concrete
src_sccoperand reported by T2 in the two bounded mesh lowerers. The fix and source-built regression are in #2434.LLVM 15 assembled both wave64 comparisons. The static and runtime lowerers returned the integer parsing error on both pre-fix inputs. On the fix, the two comparisons × two lowerers × triangle/quad produced 16 matching 1,024-pixel draws on RTX 4060 and WARP. Changing one equality immediate made 496 pixels differ on each adapter. The UHD 770 reported no mesh shader tier. The private inputs from the T2 census were not part of this check.
AI-assisted with Codex + GPT-6.2 Astra (xhigh).
Imported from R0Y00/Xbox2Windows. Originally posted by R0D4X on 2026-11-25T16:59:56Z.
PR up for
s_bitcmp0_b32/s_bitcmp1_b32/s_bitcmp0_b64/s_bitcmp1_b64in the bounded mesh lowerers: #2444 (https://github.com/R0Y00/Xbox2Windows/pull/2444, commita60be126, verified onmesh_bitcmp_cpuandmesh_bitcmp_draw_{warp,hardware}with WARP and RTX 5080 D3D12 debug layer enabled).Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-25T19:28:36Z.
I'll take the other half of T5: slot 57 pairs with no pixel stage. They are refused in
translate_mesh57since #2447 (slot 57 mesh without a pixel stage is not covered). In a local first-refusal census of captured start-up requests at main6d2d3be, this is the first refusal for 108 requests (a different capture than the issue's 74; counts only).Scope:
<key>.ps57.hlsl/.ps57.csooutput, with a new manifest line (<key>.ms57.txt) stating there is no pixel stage;pending_keystreats a published no-pixel result as done without.ps57.cso;@NiiRoZz, your T5 slice (the role check for the 18 null-export pixel stages) merged as #2421. Emission for that form is still refused in
translate_mesh57, and I am not touching it. If you are already doing both depth-only forms at emission, say so and I'll drop this.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-25T20:01:57Z.
I'll take forward branches outside the two group-memory exchanges in
translate_mesh57. #2447 lists branches and loops outside the exchanges as not covered and as the next refusal for most requests (slot 57 mesh: a branch outside the group-memory exchanges is not covered). In a local first-refusal census of captured start-up requests at main396e7e2, it is the first refusal for 279 slot 57 requests (counts only).Scope:
mesh_skeletonchecks that assume straight-line code are redone per path, or the program is refused.s_cselect_b64on a wave mask.mesh_vertexhandling of the straight-line case.If someone already has this in progress, say so and I'll step back and review.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T20:23:03Z.
#2520 landed at
5a219a3c. T5’s no-pixel half now publishes the mesh shader alone and keeps a truncated mesh artifact pending. On the final head, nine source-built Windows Release checks passed, including the compiled mesh-only case and #2522’s paired publisher-to-desktop draw on WARP and RTX 4060 Laptop. The null-export pixel half remains separate. R1 still needs the same guest list to load and forward the translated pair, and Leyukaka’s forward-branch claim remains separate from both.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-25T20:33:27Z.
Extending my forward-branch claim (#2548) to one of the next refusals it exposes:
s_cbranch_vccz/s_cbranch_vccnzon a VCC that is provably wave-uniform. In a local census of captured start-up requests (counts only), with #2548 applied, 77 slot 57 requests stop at a VCC branch on a wave-wide condition (76s_cbranch_vccz, 1s_cbranch_vccnz). In every sample I checked, VCC comes from av_cmp_*_e64whose sources are an SGPR and a constant.Scope: accept the branch only when VCC was last written by a compare whose operands are proven wave-uniform, with no other write to VCC before the branch, and EXEC at the branch is the full mask (no narrowed or saved mask in effect). Then VCC is either all ones or all zeros, so
vccz/vccnzequals the per-lane test. A narrowed EXEC, a lane-varying operand, or any later write to VCC stays refused. A fixture with taken and not-taken arms, drawn on WARP and hardware, and negative controls: a VGPR operand, a narrowed EXEC at the branch, and a VCC write between the compare and the branch.The 162 requests refused for a third group-memory exchange between the two modelled ones are not part of this.
If someone is already on this, say so and I'll step back.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T21:04:14Z.
The bounded forward-branch slice of #2548 is on main (
9bef64ee). At the exact head I ran five Release checks withctest --preset release --no-tests=error -j 1 -R '^startup_mesh57_skeleton($|_(draw|exchange)_)' -V; WARP and RTX 4060 Laptop passed the branch draws and published-pair exchange. The source fixtures still refuse branches into or across the exchange and skip paths with wave-wide effects. R1 still needs the same guest-list loader/indirect/readback comparison. The private census in #2548 found zero additional complete translations, so this lands the bounded branch semantics only.Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T21:24:39Z.
I will take a source-built readback for T3's single-component
buffer_load_format_xon the accepted group-memory mesh shape. At main6c7a59a2, inserting the assembled instruction in the existing slot 57 fixture already reaches the common format lowerer and publishesudsrc 3 descword3 0forsrv 0 buf table 1 0.I'll exercise the emitted mesh/pixel pair in the existing mesh renderer, vary the descriptor format and component selection on the same buffer bytes, and compare the image with the CPU rasterizer, including a wrong-format control. This covers the offline translation and draw fixture; R1 owns wiring a captured guest pipeline into the runtime.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-25T21:55:41Z.
Claiming the next slot 57 refusal after #2548/#2566: a count exchange entered under a narrowed EXEC.
On a local capture (counts and instruction shape only, measured at main with #2548 applied, before #2566), the 235 slot 57 requests refused with
a branch enters or crosses a group-memory exchangeall end the region before the count exchange the same way:s_mov_b64(s_mov_b64 exec, -1in the program I inspected), thenv_cmpx_gt_u32_e32(194) orv_cmpx_lt_u32_e32(41), thens_cbranch_execzto the firsts_barrierof the count exchange, over a block that runs on the remaining lanes. In that program the barrier is reached with that narrowed EXEC on both paths, and a branch whose target is the first instruction of an exchange is refused by thelo <= dest < hicheck inmesh_skeleton.Plan: accept exactly that shape, with the conditions it needs proven (the
v_cmpxoperands, what the count exchange does with lanes outside EXEC), and keep every other branch onto an exchange refused. PR with refusal controls and a draw to follow.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T22:13:22Z.
The source-built T3 formatted-load readback landed in #2576 (
168f2477). I rebuiltee748000and ranctest --preset release --no-tests=error -R '^startup_mesh57_formatted_load_' -Von WARP and RTX 4060 Laptop. Both passed, with zero skips. The two intended descriptors matched the CPU image and both wrong-descriptor controls differed at 259 pixels on WARP. This covers the offline slot 57 translation and draw fixture; the existing R1 guest-list check and narrowed-EXEC exchange work remain separate.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-25T22:19:23Z.
Update on my claim above (count exchange entered under a narrowed EXEC), measured on the same local capture at main
fc97ade. Counts and instruction shape only, inputs private.Accepting that entry shape alone translates none of the 279 slot 57 requests. With it, the 279 split as before: 10 stop earlier at
a loop outside the group-memory exchanges is not covered, and of the 269 with the measured entry shape, 227 stop ats_cbranch_execz skips code with effects outside active lanes, on an earliers_cbranch_execzblock in the same region. That block holds scalar instructions whose results are read after its join (checked on the disassembly; the mesh check itself refuses them whether or not the result is live):s_lshl_b32/s_lshl_b64in 190 requests ands_load_dword*in 37. The other 42 still stop ata branch enters or crosses a group-memory exchange; I have not looked at why.The guest runs those scalar instructions once per wave whenever any lane is active, while the per-lane model skips them for a lane outside EXEC. That lane's copy of the SGPR can then differ from the wave's when it is read after EXEC widens again. Covering it needs wave-level handling of that scalar work, for example evaluating it whenever any lane of the guest wave is active (the guest skips it only when the whole wave has EXEC = 0), not just a wider entry check. The compute path refuses the same case (
execz_refusals:definition of ..., live where the block joins), and its one exception, a zeroed mask set fromexec_lo, does not cover a shift or a load.So I am not opening the entry-shape PR on its own, since it has no effect on these programs. I am releasing this claim. The local branch has the entry check with refusal controls and a draw test, and I can push it if someone takes the scalar part.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T22:23:28Z.
Thanks for measuring the next refusal and releasing the claim. The 227 live-scalar cases and the 42 remaining exchange refusals give us two separate follow-ups. The first is available to claim here: use the existing source-built slot 57 mesh draw to prove one scalar shift whose result is consumed after EXEC widens. Compare a partially active guest wave with an all-empty one; preserve the prior scalar value on the all-empty path and verify one wave result after reconvergence in the partial case. A per-lane skip mutant should change pixels. Start with the shift only; keep scalar memory loads and unproved convergence rejected. Run
ctest --preset release --no-tests=error -R '^startup_mesh57_skeleton' -V, then include the new fixture's exact CTest name, adapter and skip status. Please coordinate here before reusing Leyukaka’s entry-check branch. The entry check alone changed none of the 279 measured requests.Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T22:28:57Z.
I’ll take the source-built slot 57 scalar shift from the maintainer’s follow-up. I’ll start with one 32-bit left shift and a single forward EXEC-zero branch. I’ll check the value read after EXEC widens for both a partially active wave and an empty wave, then run the same inputs with the per-lane skip mutation. I’ll report the actual readback differences, adapter and skips alongside the existing skeleton CTests.
I’ll build the fixture on main. @Leyukaka, your census identifies which instruction to isolate; the exchange-entry change can stay independent for this slice.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-25T23:01:40Z.
I'd like to take the remaining half of T5 in
translate_mesh57: emitting a slot 57 pair whose pixel stage exports only to the null target. The role check landed in #2421 and the no-pixel half in #2520; the null-export pixel half is still refused at emission. @NiiRoZz, if this was part of your T5 plan and you have started it, I'll step back and review instead.Scope:
pending_keystreats it as done.tests/startup_mesh57_skeleton.s, drawn with depth only and checked against the CPU rasterizer's depth.Evidence: WARP and an RTX 3070 with the debug layer on,
ctest --preset release --no-tests=error -j 1 -R '^startup_mesh57_skeleton' -Vplus the new fixture's exact CTest name, adapter and skip status. Negative controls: a colour write added next to the null export, a dropped depth write and a mismatched pair must each fail.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T23:12:20Z.
The slot 57 null-only pixel slice fits T5. Keep the pixel stage when it can discard, even if it has no color outputs; reusing the no-pixel path would lose that effect. Please coordinate the shared null-export behavior with the existing #2026 and confirm there is no competing T5 branch with NiiRoZz. For the source-built depth comparison, use distinguishable covered and discarded pixels with depth initialized to a sentinel, and make removing discard fail. Keep the mismatched-pair and mixed color/null refusals for this narrow profile. The valid pair should be recognized as complete by the existing manifest reader.
Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T23:15:46Z.
@roansystemlabs yes, this was part of my T5 plan and I had it started: the translator half is now up as https://github.com/R0Y00/Xbox2Windows/pull/2606.
It removes the refusal and sends the pair through the existing pair path (pixel stage kept, no
SV_Target, emptytargetsline, thevmdiscard preserved), with a source-built pure-Python check. It does not include the depth-only draw with read-back you proposed; if you want to build that fixture on top of it, it is yours, and a review of the PR is welcome either way.🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-25T23:17:44Z.
@NiiRoZz thanks, #2606 is yours, I'm stepping back from the translator half. I'll take the source-built depth-only draw on top of it, following the shape above: depth initialised to a sentinel, covered and discarded pixels told apart, a control where removing the discard fails, and the mismatched-pair and mixed colour/null refusals exercised. I'll run it against the #2606 head and post what it finds as a review there.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-25T23:21:37Z.
Claiming T6 tonight-slice: source-built mesh57 loop refusal fixture (+ mutant) only.
Scope: gfx1013 program in the style of
tests/startup_mesh57_skeleton.swith one deliberate back-edge outside the two modelled group-memory exchanges; focused check that tip refuses it by the existing named reason (slot 57 mesh: a loop outside the group-memory exchanges is not covered); mutant without the back-edge must not stop on that loop refusal. Stubbed comparator that ignores the refusal string must fail the test.No R1, no loop lowering in this first PR (optional constant-trip lowering only as a follow-up if the fixture is green).
PR: https://github.com/R0Y00/Xbox2Windows/pull/2622 (host-only / Linux pe-env for the pure-Python arm; no hardware draw in this slice).
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-25T23:32:08Z.
Claiming T6 lowering follow-up: accept one constant-trip back-edge outside the two modelled group-memory exchanges in
translate_mesh57.Scope:
Stacking on tip
mainonce #2622 merges, or temporarily on the #2622 head (SimSalabimse:cursor/mesh57-t6-loop-refusal-61fa,5366e34d) until then.Tip SHA at claim:
66026a39(forkmain); adapter: agent host (Linux pe-env for host checks; Windows WARP/hw for draw when available).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-25T23:38:26Z.
Claiming a small tooling gap found while re-running start-up translations:
tools/startup/shader_cache_rekey.py(the tool from #2401) re-keys graphics, RTV and slot 67 compute requests, but only counts slot 57 mesh requests ("own key strings").mesh57_keyhashes the request files under a versioned prefix (x2w-startup-mesh-57-2), so after a revision that changes that prefix a kept cache loses every slot 57 mesh request: the runtime asks for the new keys, and a file under its old name is refused by--pendingasslot 57 mesh request key mismatch.Plan: recompute the key with
mesh57_keyand copy the.m57,.ps57and.rootfiles under the new name, with the rules the tool already applies to the other kinds (read everything first, nothing written on a missing or unreadable part, temporary name then rename, an existing target left alone), plus controls instartup_shader_cache_rekey_check.py. Slot 86 (mesh86_cache.py, its own key and a.stream86part) stays as it is. #2592 also edits this tool for the pixel input masks; I will keep this change apart from that part.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-25T23:38:43Z.
T6 lowering PR: https://github.com/R0Y00/Xbox2Windows/pull/2630 (
SimSalabimse:cursor/mesh57-t6-loop-lowering-f5d7,e8adb6b7).Constant-trip unroll in
translate_mesh57; unsupported loops still refuse by the existing named reason. Supersedes the host-only #2622 fixture expectations in this PR (translate + draw + negative refusals).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-25T23:43:04Z.
I'd like to take the third group-memory exchange in
translate_mesh57: the requests refused withslot 57 mesh: ds_* outside the group-memory exchangesbecause they hold one more exchange between the two that #2447 models (the 162 Leyukaka left out of the VCC claim above). @NiiRoZz, if this is part of your T1 plan, and @Leyukaka, if you have started it, say so and I'll step back and review.Scope, first slice:
mesh_skeletonproving the order.tests/startup_mesh57_skeleton.swith three exchanges, drawn withoffscreen_check --mesh-indexedand compared with the CPU rasterizer.Evidence: WARP and an RTX 3070 with the debug layer on,
ctest --preset release --no-tests=error -j 1 -R '^startup_mesh57_skeleton' -V, plus the new test's exact name, adapter and skip status. Negative controls: the read moved before the barrier, a swapped address and a dropped store must each fail. @Leyukaka, if you can share the instruction shape of that third exchange from your census (shape and counts only), I'll build the fixture on it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-25T23:46:35Z.
@roansystemlabs I have not started it, and I have to correct the premise. The "162 requests refused for a third group-memory exchange" line in my VCC claim above was wrong; I corrected it in the #2566 description, but that earlier comment still carries the wrong wording. In the program I inspected there are exactly 3
ds_write_b32, 3ds_read_b32and 5s_barrier, which is the two exchanges #2447 already models and no third one. Over all the requests counted below, every program had 5s_barrier. My census (counts and instruction shape only) has no request refused withds_* outside the group-memory exchanges.What stopped them instead:
a branch enters or crosses a group-memory exchangeall ended the region before the count exchange the same way:s_mov_b64(exec, -1in the program I inspected), thenv_cmpx_gt_u32_e32(194) orv_cmpx_lt_u32_e32(41) of an SGPR against a VGPR, thens_cbranch_execzto the count exchange's firsts_barrier.fc97ade(7176218125), 279 slot 57 requests: 10 stop at the loop refusal, and 269 have that entry shape. Accepting the entry alone, 227 of the 269 then stop at an earliers_cbranch_execzblock whose scalar results are read after its join (s_lshl_b32/s_lshl_b64in 190,s_load_dword*in 37). The other 42 still stop atenters or crosses, and I have not looked at why.#2601 has since accepted a first scalar-shift slice of that second refusal; I have not re-measured on main after it. So a third-exchange fixture would not match these programs as far as I can tell; the 42 are the only place something else could hide.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-25T23:48:27Z.
@Leyukaka thanks for checking and correcting it. The issue body agrees: all 298 programs hold exactly 3
ds_write_b32, 3ds_read_b32and 5s_barrier, which is what the two exchanges #2447 models already use, so a third exchange of that form would match none of them. I'm withdrawing this claim; no branch was pushed and nothing else changes.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-25T23:52:43Z.
Claiming T7: constant-lane
v_writelane_b32/v_readlane_b32spill idiom intranslate_mesh57.Scope:
mesh_entry_aotLANE_SPILL_OPSrules; do not re-litigate the bounded lowerers.Tip SHA at claim:
66026a39(forkmain). Adapter: agent host (Linux pe-env for host checks; Windows WARP/hw for draw when available).No R1, no #2603, no #2492/#2470, no more T6 loop shapes in this PR.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-25T23:58:43Z.
T7 PR opened upstream: https://github.com/R0Y00/Xbox2Windows/pull/2637 (
SimSalabimse:cursor/mesh57-t7-lane-spill-17da). Ignoring the accidental fork-only PR.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T00:12:03Z.
Coordinating here, as asked, before reusing my entry-check branch: I am taking back the item I released in 7176218125 (the count exchange entered under a narrowed EXEC). What is new against the released version: the skipped block may also hold scalar ALU whose results are dead at the exchange, and the compare must use the
v_mbcntthread index (as #2601 does). A PR follows.Measured on a local capture at main
8ecaa8e(counts and instruction shape only), over all 497 slot 57 requests in that cache (my earlier 279 were a subset re-keyed for an older revision): 426 stop ata branch enters or crosses a group-memory exchange. With the change, 324 of them get past the entry and stop at the next refusal, an earliers_cbranch_execzblock whose scalar results are read after its join (the #2601 kind). The other 102 still stop at the entry, all with a different compare shape. No slot 57 request translates fully yet.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T00:20:04Z.
Update to my note above: #2643 now has a second commit that drops the thread-index requirement for the entry compare. The skipped block leaves nothing live that a dropped lane could see, so any
v_cmpx_gt_u32_e32/v_cmpx_lt_u32_e32whose VGPR operands are defined for every lane works. The 102 I listed as "a different compare shape" all usedv_cmpx_lt_u32_e32 vA, vBof two defined VGPRs. On the same capture at main8ecaa8e(counts only), all 426 now get past the entry and stop at the next refusal, ans_cbranch_execzblock before the count exchange whose scalar results, including scalar loads, are read after its join. No slot 57 request translates fully yet.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T00:35:44Z.
With #2643 in, all 426 of the slot 57 requests that stopped at the count-exchange entry on my local capture (counts and instruction shape only) now stop at the same next refusal. I would like to check the scope before starting, since 7176303054 kept scalar memory loads rejected for the first slice.
The shape:
s_mov_b64 exec, -1, and ans_cbranch_execzskips a block. There are two other branches between them, but no EXEC write and no branch target, so EXEC at thes_cbranch_execzis exactly the compare's result.v_cmpx_gt_u32_e32 s<n>, v<t>, withv<t>thev_mbcntthread index. In the other 102 it isv_cmpx_lt_u32_e32 v<t>, v<m>, withv<m>written by av_mul_lo_u32.s_or,s_and,s_mov,s_cselect,s_lshl,s_max,s_pack_ll) and scalar loads, about 985s_buffer_load_dword*and 389s_load_dword*over the 426.The guest runs that block once per wave whenever any lane is active; the one-lane model skips it per lane. #2601 covers one post-count
s_lshl_b32behindv_cmp_gt_u32_e32of a literal against the thread index pluss_and_saveexec_b64. This block differs in position (before the count exchange), compare form (v_cmpx), bound (an SGPR, not a literal), contents (many instructions, loads included), and the two branches between the compare and thes_cbranch_execz. For the 324 the active lanes are then a prefix of the wave. I have not checked thatv<m>is wave-uniform for the other 102; a wave-level condition would apply there only if it is, and the rest would stay refused.Would you accept scalar loads there under such a wave-level condition, with evidence in the style of #2601: refusal controls, a draw where a wave with only some lanes active and a wave with none both match the CPU model, and a per-lane-skip mutant that must change pixels? If you would rather go in smaller steps, which sub-slice would you want first, for example the 324 with the SGPR bound and
s_buffer_load_dword*only?AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T00:35:46Z.
Count-exchange entry #2643 is on
mainatf4f89946. The source-built mesh fixture passed on WARP and RTX 4060 Laptop. The reported 426 rows advanced to a later refusal on one capture; that count does not add any complete translations. The next claimable slice is one scalar load in a pre-exchanges_cbranch_execzblock whose result is live after the join. First supply a source-built fixture that distinguishes zero EXEC (keep the previous scalar) from nonzero EXEC (use the loaded word). Include a mixed mask, a wrong old/new selection mutant, and an out-of-range load that must stay unissued on an empty wave. Use the existing mesh57 fixture andpython -B tests/startup_mesh57_skeleton_check.py draw <dxc> <offscreen_check> <warp|hardware>. Keep unproven wave visibility refused. This follows #2643 and complements #2601’s scalar shifts; keep the existing T5–T7 claims in place.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T00:44:27Z.
Claiming the slice above: one scalar load in a pre-exchange
s_cbranch_execzblock whose result is live after the join, following #2643 and alongside #2601's scalar shifts. T5–T7 claims stay as they are.Plan:
s_buffer_load_dwordin such a block;s_load_dwordand wider loads stay refused in this PR. EXEC there must come from a compare whose wave-level outcome is proven: av_cmpx_gt_u32_e32of an SGPR bound against thev_mbcntthread index (#2601 proves the same prefix for a literal limit), so "this wave has an active lane" is(tid & ~63u) < bound. The load is issued and its word used for the whole wave only when that holds; otherwise every lane keeps the previous scalar value. Anything whose wave visibility is not proven stays refused.python -B tests/startup_mesh57_skeleton_check.py draw <dxc> <offscreen_check> <warp|hardware>: a wave with zero EXEC keeps the previous scalar; a wave with nonzero EXEC, here a mixed mask, uses the loaded word in every lane; a mutant that swaps the old and new selection must change pixels; and an out-of-range load stays unissued on an empty wave.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T01:20:57Z.
#2660 is on main at
f4c6998a. I independently ran its source-built mesh draw with DXC on WARP and RTX 4060 Laptop. The results cover the mixed wave using the loaded scalar and the empty wave keeping its old value. The author’s capture check still has zero additional slot-57 translations. The 426 candidates that now get this far have several scalar loads and scalar ALU in the block. For the next slice, a counts-only breakdown by load count and by whether the scalar ALU updates a later load’s operand would tell us which block to model next. Please add it here under the existing claim if you already have the data.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T01:55:00Z.
The breakdown requested above, under the existing claim. It covers the 426 slot 57 requests that stop at
s_cbranch_execz skips code with effects outside active lanes, on a local capture at main7287979, counts only.The refused block is read at the raise, from
mesh_skeleton'ssource/target:gfx2hlsl.py:1580) and 282 in the per-lane skip check (:1594).a_end <= source < count_at, checked with a second probe at the same raise), and in none does a branch from outside land inside the block.Scalar loads per block (
s_load_dword*ands_buffer_load_dword*):None has fewer than 5. Over the 426 blocks there are 6309
s_buffer_load_dword*and 3784s_load_dword*; these whole-block totals supersede the rough figures in my 00:35Z comment.Does the scalar ALU update a later load's operand? For each load, I looked at what last wrote its base and offset registers inside the block. A plain
s_mov_b32/s_mov_b64is counted as a copy, not an update.s_movcopy, or an earlier load's resultOf the 166, 157 have 5–16 loads and 9 have 17–64. Of the 260, 55 have 5–16, 183 have 17–64 and 22 have more than 64.
Per load:
s_movcopy in blocks_buffer_loadbases_buffer_loadoffsets_loadbases_loadoffsetBy last writer, no
s_buffer_loadbase and 39s_loadbases are written by scalar ALU other than a copy; the other ALU-written operands are offsets (1889 + 153). The ALU writers of those operands ares_add_u32549,s_lshl_b32520,s_mulk_i32313,s_mul_i32271,s_lshl2_add_u32191,s_addk_i32123,s_and_b3275,s_and_b6439.Limits: the last writer is taken in program order, ignoring branches inside the block. The source of an
s_movis not traced, so a copy of an ALU result (or of an immediate) counts as a copy, and 166 is an upper bound for blocks with no ALU update. SGPRs written byv_*instructions are not tracked.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T02:08:47Z.
The null-only half of T5 is on main in #2606 (
d26cbc54). On that translator and the #2680 fixture, WARP and RTX 4060 Laptop matched all 1,024 D32 pixels and kept color cleared. Dropping the discard changes 134 depth values, including pixels that should retain the sentinel. The six mixed-export forms still refuse before publication. The fixture is following separately in #2680. This verifies the source-built depth-only pair. The capture-level slot-57 coverage remains open.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T02:48:08Z.
T6 is on main in #2630 (
7c6cf907). On the reviewed Windows head both WARP and RTX 4060 Laptop matched the source-built constant-trip draw, and the once-through shader failed the target image comparison. The control-flow tests also refuse reversed subtraction, data-dependent trip counts and loops that change EXEC. The tracker remains open for capture coverage and the remaining slot 57 work.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T03:02:52Z.
T7 landed in #2637 (
ed53c1fe). WARP and RTX 4060 Laptop both passed the source-built constant-lane mesh spill draw. The mutant that zeros the spilled value compiled and differed at 259 pixels on each adapter. The same integrated tree also passed T6 and the existing pixel branch/join proof. The mesh slice still refuses raw EXEC operands and VGPRs used by the group exchange.Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-26T08:31:51Z.
CLAIM (slot 57, follow-up to #2660) | @JB2WIN
Scope, as two small PRs:
s_cbranch_execzblock between the group-index and count exchanges that is straight-line code and holds severals_buffer_load_dword*/s_load_dword*plus scalar ALU. EXEC comes fromv_cmpx_gt_u32_e32 s<bound>, v<thread>after a full EXEC reset, with no EXEC write between them and no branch entering that range from outside. The lowering reuses the #2660wave_anypredicate and runs every scalar instruction of the block for the whole wave. Vector writes stay lane-predicated. Scalars read after the join must be wave-uniform and defined before the block. VCC and SCC written in the block must be dead at the join.s_cbranch_execzblock whose results no path reads past the join. The case seen is the post-count primitive-export block, which jumps tos_endpgm.Local census on a local capture (main
96a7b4fb, counts only): 407 slot 57 requests stop ats_cbranch_execz skips code with effects outside active lanes.v_readfirstlane_b32 outside the group-index read is not covered. That is a first-lane read of a formatted buffer load. I am not claiming it.s_cbranch_scc0/s_branch),src_scc, or thev_cmpx_lt_u32 v, vcompare form. Those are not in scope.@Leyukaka your 01:55Z breakdown covers this set. If you have already started on multi-load blocks, say so and I will drop item 1.
Tests planned (source-built only), in
tests/startup_mesh57_skeleton_check.py:s_buffer_load_dword(the second offset from ans_add_u32), a scalar table read and a deadv_cmpVCC;Four #2660 refusal controls would become accepted cases with their own draw checks: ordinary SMEM, wider SMEM, a second live scalar write and a dead scalar result. The other controls stay.
AI-assisted (Claude Code); no capture files, request identifiers or program bytes are posted here.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-26T11:28:49Z.
Claiming a small slot 57 pixel-stage item: the early exit of a kill in the role check of
translate_mesh57.In my local capture (RTX 3090, main
700522ef; counts only), 97 slot 57 requests stop atslot 57 pixel stage mixes the null export with another export. All 95 distinct pixel programs are colour stages (mrt0 up to mrt2..mrt5) whose only null export is the early exit that LLVMSILateBranchLowering/ Mesa ACO place after the mains_endpgm:exp null off, off, off, off done vmthens_endpgm. 89 enter it only bys_cbranch_execz. The other 6 also enter bys_cbranch_scc0directly afters_cselect exec, exec, 0(the demote form), so EXEC is zero on every entry.Scope: accept only that block. Everything else stays refused with the existing message. Source-built fixtures for both forms, CPU checks with ten near-miss controls, and a WARP/hardware draw against a CPU rasteriser with a negative control.
This removes a pre-check only. With it, all 97 move on to the mesh-stage refusals already claimed here (
s_cbranch_execzblocks 71, group-index exchange shape 15, loops 11), so it adds no complete translation by itself. Lowered on their own throughMeshPixelStage, the 95 pixel programs raise no exit-related refusal; their next pixel-side gaps ares_loadwith a register offset through the resource heap (47) andv_fma_mix_f32reading the upper half of av_interp_p2_f16result (39).AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-26T12:25:31Z.
Releasing my claim from 7186705717. #2783 and #2785 are merged. Translation is moving to the native C++ frontend (#870), so I am not taking further Python slices here. Anything left from that claim is free.
These notes come from a local capture (counts and instruction shapes only). They may save time for the C++ mesh path:
s_bitcmp0_b32 sN, 28on s20/s21 tests a packed root-constant field. It is not a hardware system value.(rootconst & 0x3ff) << 5. They are loaded withs_load_dwordx4from the 32-bit heap base with a zero high word.s_cselect_b32 C, 0, B, where B is the bound of the precedingv_cmpx_gt_u32 B, thread+s_cbranch_execzblock. Every exporting thread therefore ran that block, and the VGPRs it wrote are defined for the exports.AI-assisted (Claude Code); no capture files, request identifiers or program bytes are posted here.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-27T21:35:01Z.
Coordination for slot 57 mesh work, before we open anything else here.
I read #3091 and #3094 (native mesh interfaces and fixed mesh pipelines) against what is open and merged. These pieces look covered by #3091 in the C++ frontend, so I will NOT open Python PRs for them:
v5 >> 7as the group id) and the linearDispatchMeshcounts_loadfrom the resource heap with a masked root-constant offsetIf any of these is wrong on #3091, I will report it there as a source-built fixture instead of a competing PR.
These look free and I would like to take them, one small PR each, with a source-built fixture, a negative control and a precise refusal for the rest:
s_cbranch_execzblocks after #2660 / #2783 / #2785: an inners_cbranch_execz/s_cbranch_vcczinside the block, an SCC produced by a mask op, and a scalar load whose address is not wave-uniform.pos1export target and export order per thread (#1998 item F is merged for the bounded lowerers only; #3091 refusespos1).Left to others: typed heap views other than R32_UINT (#2576, #3091) and the runtime side (#1759 R1 fixture, #3094).
Question for @R0Y00: should items 1 to 4 go into
tools/startup/gfx2hlsl.py, or only into the native C++ frontend onmain(#870, 2026-11-27 11:07 note)? I will follow your answer and start with item 1 in whichever path you pick.Tooling: #3198 (draft) ranks the first shader refusals by how many draws and dispatches they block, so each claim above can be ordered by what it unblocks.
Commands executed locally:
gh issue view,gh pr view,gh api(read only), and a read of the #3091 mesh source diff.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-27T23:03:17Z.
Update on my claim above: I'm pausing the four mesh items I took (inner execz/vccz and SCC-of-mask blocks, per-lane definedness after the exchanges, the count exchange without the group-index instruction, and pos1 / export order). We're putting our time on replay fidelity first, so treat them as free: anyone can take them.
What we did get done on our fork, in case it saves someone time: the wave-load block shapes (inner execz/vccz branch, SCC of an exec mask op, a VCC-aliased descriptor read as a mask) have source-built fixtures and lowerings there; happy to share or port them if someone picks those items up in either path.
Still open from before: Python
gfx2hlsl.pyor only the native C++ frontend for new mesh slices?AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T15:56:33Z.
@R0Y00 slot 57 requests cannot be ranked offline on the native path the way compute is in #3224:
compile_dxil --refusalsreads only.a/.rtvand.c67markers (tools/startup/compile_dxil.cpp:545-548), so a directory of slot 57 requests reports 0 examined.gfx1013-raw-msneeds a.mslayoutsidecar (at leastmesh1 threads vertices primitives topology group_stride wave,compile_dxil.cpp:183-189), andgfx1013-raw-mesh-psa reviewed.pslayout. Published requests carry neither..mesh57-staterecord (src/startup_stubs/native_mesh57.inl:245-309,mesh57_profile.h:64-70). The runtime does not derive them when it publishes.m57.Is there a derivation from the fixed descriptor and state blocks that you would accept in a tool that writes
.mslayoutfor captured requests, so--refusals/--requestscould covergfx1013-raw-ms? If those values must stay hand-reviewed, I won't open it.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T23:56:37Z.
Taking, on the native C++ frontend (
src/gfx1013_direct_mesh.inl) rather thangfx2hlsl.py, parts of the items tedin7 released on 11-27 23:03: from item 1, the VCC branch on a wave-uniform compare; item 3, as named refusals for exchange shapes the frontend does not match. Item 2: I take a control only, after (d). The rest of item 1 (inner execz, SCC of a mask op, scalar load with a non-wave-uniform address) and item 4 (pos1, export order) stay free. Plan, one small PR each, in this order:a.
compile_dxil --refusalscountsreq_<key>.m57requests (a.mslayoutsidecar if present, otherwise one fixed reason).b. Mesh entry root inputs from the creation root signature, for
.mslayout, offline only. This is narrower than my 11-28 15:56 question: root inputs only, read from.rootwith the walkread_raw_graphics(src/gfx1013_compute_native.cpp) already uses for VS/PS; thread count, topology, stride and wave stay caller-supplied. With (a) it ranks the requests by C++ refusal.c. Named refusals for unmatched exchange shapes, instead of
unsupported mesh instruction or EXEC state: <op>.d. VCC branch on a wave-uniform compare (
v_cmp_*into VCC followed bys_cbranch_vccz/vccnz, refused today atmesh VCC branch lacks a proven guest whole-wave mask).On main
0614f68c, the shader cache of a start-up run of about 6 minutes (carried over from earlier runs) holds 543 slot 57 requests, all with agfx2hlsl.py.fail; the run refused 1,923,473 indirectDispatchMeshcommands (graphics-pipeline bucket).Overlap: draft #3413 (SimSalabimse) derives Mesh57 state at run time for one allocation shape and touches
native_mesh57.inlanddocs/experiments/native-fixed-mesh57.md; (b) stays offline and does not touch them. #3409, #3063 and #3415 also editcompile_dxil.cpp, in other lines ofcompile_oneand inread_captured_views; my #3403 only in the watch functions. No open PR touchesgfx1013_direct_mesh.inl.@tedin7 if your fork fixtures for the inner execz/vccz and SCC-of-mask shapes are source-built, I can port them as controls and credit you.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T05:03:38Z.
Status of the 11-28 23:56 plan: (a) #3418, (c) #3420, (d) #3423 and the item 2 control #3422 are open, none reviewed yet. (b), mesh root inputs from the creation root signature, is written on top of #3418 and has no PR yet; it waits on #3418.
Correction to the overlap note: (b) adds one paragraph to
docs/experiments/native-fixed-mesh57.md, which draft #3413 also edits. It does not touchnative_mesh57.inl.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T09:19:40Z.
Update to my status above: (a) #3418, (c) #3420, (d) #3423 and the item 2 change #3422 are merged (
main1a0120ba). (b), mesh root inputs from the creation root signature, is committed locally on1a0120baand has no PR yet. The slot 57 mesh work is tracked in #3416.Imported from R0Y00/Xbox2Windows. Originally posted by Kawiu on 2026-11-29T21:38:21Z.
Taking one small item on the native C++ frontend (
src/gfx1013_direct_mesh.inl):v_sub_nc_u32.On
mainff9dcef0the compute ALU table has it, but the mesh frontend's accepted list hasv_add_nc_u32without it, so a mesh program using it is refused asunsupported mesh instruction or EXEC state.Plan: one PR with a source-built positive case, WARP readback and a negative control. Forms I do not cover stay refused. If someone already has this in progress, I'll step back.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T01:56:49Z.
R1 runtime acceptance is now in PR #3531 (branch
fix/mesh57-runtime, based on47c30feb).What it adds:
DispatchMesh(1,1,1), producer fence, 4/12 counts, two root constants and one raw SRV;.ms57.cso/.ps57.csopair when the native frontend still refuses the R1 group-index exchange (0xbefe0481);cbuffer(it shifted both root constants by one word and produced a black target).Local results on the Release build:
dispatchmesh 1dispatchmesh 1startup_mesh57_skeleton_draw,startup_mesh57_skeleton_exchange,native_fixed_mesh57_buffersandnative_fixed_mesh57_constantalso pass on both adapters. The debug layer is unavailable on both local adapters, so I cannot claim zero debug-layer messages; no validation errors were printed. CI on #3531 is green.PR: https://github.com/R0Y00/Xbox2Windows/pull/3531
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T02:10:58Z.
Native refusal census on the cached requests (
compile_dxil --refusals, cacheout/startup/shader_cache):.a/.rtv.c67.m57All 476 mesh57 requests stop at
mesh request has no entry layout. The cache contains no.mslayoutand no.mesh57-stateprofile, so this is a layout gap before the mesh frontend reaches the group-index shape.Weighting needs care. The long UI run
gta6-long-20261130-1has 7,995 compute dispatches, all translated, and its indirect counters are zero includingdispatchmesh. The 2026-11-28 run reachedrefused graphics-pipeline ... dispatchmesh 1449772; I attach that aggregate once to the 476-request layout class, not per key. It cannot distinguish slot57 from slot86.The Python watcher still exposes 422 of the 476 mesh requests: 314
s_cbranch_execz, 69readfirstlane, 20 group-index exchange, 14 loop, 5 count exchange. These are not native first refusals until layouts exist. The cache also has 3,534.failfiles versus 3,028 current native refusals, so stale.failentries must not be counted as current blockers.Proposed next fixture: a source-built 128-thread wave64 triangle with
mesh1 128 3 1 2 128 64+guest_root, two root constants and one root SRV, plus pixel entry0x8002/0x8002/64split as the existing 12-byte.ps57in(PSI1, enable, address) andmeshps1 32770 32770 64in.pslayout. Compile the MS and PS as two explicit outputs; acceptance is that--refusalsmoves pastno entry layoutto a named next refusal or no refusal.The census did not modify tracked files.
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T02:48:56Z.
The title now reaches the mesh phase. Run
gta6-long2-20261130-1(620 s, 12,835 frames at 21 fps, no crash) passes the legal pages, shows the opening credits, and records:dispatchmeshrefused,graphics/no_translationdispatchmeshrefused,graphics/mesh_profile_missing.m57requests in the cache.ms57.cso/.mesh57-stateSo the presentation path is no longer the blocker for this phase: the title submits over a million mesh dispatches, but every request lacks a translated pair/profile. A second run with
X2W_MESH57_CAPTURE_STATE=1and a separate cache is capturing.s57creation archives so the fixed-state profile can be derived.Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T03:03:53Z.
Capture follow-up for the mesh phase:
gta6-meshstate-20261130-1produced 452.s57archives for 449.m57requests, with 0.mesh57-stateand 0.ms57.cso.dispatchmeshrefusals (248,260graphics/no_translation+ 625,911graphics/mesh_profile_missing), 4,864 frames at 7.6 fps.XboxBvhBuilder.dll+0x1cef4, second-chance access violation after 643.94 s. This is a separate BVH-builder crash, not a presentation failure.Compiler progress on the captured requests: the count clamp in PR #3537 moves one real request past
mesh count exchange exceeds declared range or lacks an unsigned bound. It now stops atgraphics register undefined on an incoming path: 265. The next runtime slice is to decode the.s57state A/B into a reviewedMesh57Profile; the BVH crash needs its own investigation.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-30T13:29:38Z.
Claim (#3416): GPU-selected resource-heap slot in the slot 57 mesh frontend. Today the frontend accepts only a heap slot built from a masked root constant, and refuses
mesh heap slot lacks masked root constant provenanceotherwise. In the title, the slot is read from a buffer:s_buffer_load_dword→s_lshl_b32 5→s_load_dwordx4from the resource heap. By refused calls in a 360 s native run, this is the largest C++ refusal among the top slot 57 variants (1.13 M, weighted list on #3416).The plan is to bind the selected slot through a verified view check like #3593 and #3599 on slot 86. A slot that is stale, empty or of the wrong type reads as a typed null. I'll start with a source-built mesh fixture. Two buffer-selected indices give two different pixels. The negative controls are a stale slot and a wrong-type slot, both of which read as null.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T17:07:49Z.
Claim (#3416 row
mesh EXEC write inside a lane-skip block, listed free): scalar work between a lane diamond's join and its EXEC restore.In
f2b3d808and2319d05e, the compiler places EXEC-independent scalar instructions (SMEM loads, SALU,s_waitcnt,s_clause) between the join of a signed-CMPX if/else and thes_mov_b64 exec, <saved>that closes it. The frontend accepts the restore only at the join itself, so it refuses. Those instructions run once per wave whatever EXEC holds, so the restore still closes the diamond. The plan is to accept it when every instruction in the gap leaves EXEC, VCC and control flow alone, no other path arrives in the gap, and the restore still names the open skip's guard. This is the same idea #2900 applied to compute.Local census (
compile_dxil --refusals, 454 cached.m57requests, layout from #3416): this refusal drops from 63 requests to 8. The 55 that move on stop at later refusals, mostly unsupported instructions (v_fma_mixlo_f1615,v_sqrt_f32+8,v_fmamk_f325,v_cvt_f16_f325). Not covered: the 8 left include an else arm that merges lanes after a large then-arm. That needs lane-merge support, not this change.PR with a source-built positive case and negative controls (an EXEC/VCC write, a branch, and a saved-mask overwrite in the gap) to follow tonight.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-30T17:37:27Z.
Scope update for my claim above (GPU-selected heap slot in slot 57 mesh programs): I'm keeping the translator part, #3619, and releasing the runtime binding. Whoever takes the binding should build it on @JB2WIN's stage 3 runtime design on #3023, not on a per-draw heap copy. A local prototype of that per-draw approach shows why it fails:
CreateDescriptorHeap type=0 count=1245184, 38 MB of title memory). JB2WIN measured the same heap: about 15.5 k token slots, and one full scan costs 10–13 ms. The prototype snapshots the bound heap's token words for each draw. It passes a 512-slot source-built fixture but cannot scale to this heap.What #3619's guard needs from the runtime:
b1= base, count and null slot, plus the miss counter atu0.The mesh draw then only binds those. The prototype has a source-built fixture for the binding: a selector read from a table buffer, with R32_FLOAT, empty and out-of-range slots reading the null view and counting misses. I can push it to my fork for whoever takes this.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T18:21:34Z.
PR for the claim above: #3633. This refusal drops from 63 to 8 of 454 cached slot 57 requests. The 8 left need lane-merge support (described in the PR).
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T18:35:54Z.
Claim:
s_movk_i32ands_xor_b32in the C++ mesh frontend (src/gfx1013_direct_mesh.inl). Both are refused asunsupported mesh instruction or EXEC state.Local census (
compile_dxil --refusals, 454 cached slot 57 requests, #3416 layout, with #3633 applied): each is the first refusal for 41 requests, together the third and fourth largest reasons.s_xor_b32joins the existing SOP2s_or_b32/s_and_b32route, with SCC from the result.s_movk_i32writes its sign-extended 16-bit immediate. Writes to EXEC or VCC stay refused.PR with a source-built positive case per instruction, a readback-relevant output check and negative controls (a VCC/EXEC destination) to follow tonight. Re-census numbers in the PR.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T18:53:27Z.
PR for the
s_movk_i32/s_xor_b32claim above: #3635. Neither refusal is left in the 454 cached slot 57 requests; those requests now stop at later refusals (mainlys_and_saveexec_b64andv_bfm_b32).Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T19:24:28Z.
Claim:
s_and_saveexec_b64inside a lane-skip block in the C++ mesh frontend (src/gfx1013_direct_mesh.inl).The handler from #3638 covers
s_and_saveexec_b64outside a lane skip. Inside one, the instruction is still refused asunsupported mesh instruction or EXEC state: s_and_saveexec_b64. On maina0e126c2that is the first refusal for 47 of the 454 cached slot 57 requests.All 47 have the same if/else shape: the saveexec opens a then arm guarded by EXECZ, and
s_andn2_b64 exec, <saved>, execopens the else arm.s_mov_b64 exec, <saved>, the shape the existings_and_b64diamond already handles.Plan: open a lane diamond from the saveexec in both shapes.
s_sendmsgor branches that leave the arm.PR to follow tonight.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T20:37:40Z.
PR for the in-skip
s_and_saveexec_b64claim above: #3645. 41 of the 47 requests now get past the SAVEEXEC and stop ats_xor_b32(#3635). The other 6 are refused by name because their then arm depends on EXEC (a nested CMPX/EXECZ).Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T21:59:22Z.
Claim + PR:
v_bfm_b32andv_bcnt_u32_b32in the C++ mesh frontend, #3655. The shared ALU already lowers both; the mesh vector ALU list now admits them. With #3635/#3645/#3646 applied,v_bfm_b32was the first refusal for 40 of the 454 cached slot 57 requests. All 40 now get past both instructions; 19 stop next atunsupported mesh SAVEEXEC operands.Imported from R0Y00/Xbox2Windows. Originally posted by Kawiu on 2026-11-30T22:27:44Z.
Native mesh frontend census of captured slot 57 requests, with the open mesh PRs stacked
Counts only, from one local capture. No runtime draw is claimed.
Input. The capture holds 392 distinct slot 57 requests (
req_*.m57+.ps57+.root), copied to a separate directory. All of them use a guest root, and none has a reviewed.mesh57-state.Command. Read-only:
The caller layout is generic, not reviewed:
Without
validate_uint_heap_reads, 319 of the 392 requests stop atdirect resource-heap load requires the selected GPU slot and its view type. The runtime sets that option for direct-heap profiles, so the counts below include it.Requests with no recorded refusal
X2W_MESH57_PARTIAL_ZERO=1d5970858Each PR alone moves no request to completion. Together they add 34. With the stacked build and the opt-in,
compile_dxil <sdk> <cache> gfx1013-raw-mswrote a DXIL module for all 127. On the largest one,dxc -dumpbinshows a mesh entry withNumThreads=(128,1,1),MeshOutputTopology,setMeshOutputCounts,storeVertexOutputandemitIndices. I did not run a separate validator pass.First refusals, stacked build +
X2W_MESH57_PARTIAL_ZERO=1(265 refused)unsupported mesh instruction or EXEC state: v_readfirstlane_b32mesh heap slot lacks masked root constant provenanceunsupported mesh heap descriptor addressunsupported mesh SAVEEXEC operandsunsupported mesh instruction or EXEC state: v_cvt_f16_f32mesh EXEC write inside a lane-skip blockunsupported mesh instruction or EXEC state: v_cmpx_eq_i32mesh SAVEEXEC then arm depends on EXECunsupported mesh instruction or EXEC state: v_cmpx_lt_f32mesh SAVEEXEC then arm lacks an EXECZ skipunmapped mesh export target 13s_not_b64, 3v_fmamk_f32, 2mesh signed CMPX requires paired EXECZ arms, smaller entry-register refusalsWithout the opt-in, about 150 requests stop at
graphics register undefined on an incoming path: N.Runtime side, same capture.
native slot57 preparationreportsprofile_absent 10726,ps_absent 1336,ready 0. A split of theunsupported_stage_or_descriptorbucket (13,388 creations) shows that all of them are slot 57 creations with a vertex stage, not mesh pipelines.Caveats.
X2W_MESH57_PARTIAL_ZEROis the documented heuristic, not a reviewed semantic.gfx2hlsl.pytranslate_mesh57census on the same requests is unrelated to the counts above. The runtime prepares slot 57 through the native frontend.AMD Radeon host, Windows 11 build 26300.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T22:51:33Z.
Claim + PR: in-skip
s_and_saveexec_b64with a VCC mask, the if-without-else form, and then-arm VCC writes in the C++ mesh frontend, #3668 (stacked on #3645). This was the first refusal for 19 of the 454 cached slot 57 requests. All 19 now get past it; 18 stop next at a SAVEEXEC nested in the then arm.Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T22:55:27Z.
Claim:
graphics register undefined on an incoming path: Nin the C++ mesh frontend (src/gfx1013_direct_mesh.inl). With the open mesh PRs stacked, this is the first refusal for about 150 of the 454 cached slot 57 requests. It is also the class @Kawiu's census showsX2W_MESH57_PARTIAL_ZERO=1hiding.All of them share one shape:
v_cmpx_gt_u32 sV, v0and EXECZ.s_mov_b64 exec, -1erases those partial VGPRs.v_cmpx_gt_i32 sG, v0.In every case
sG = s_cselect_b32 0, sV, so the export lanes are a subset of the defining lanes. The plan is to replace the erase with a proof rather than the zero fill:select(c, 0, V)with V group-uniform);Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T23:38:51Z.
PR for the
graphics register undefined on an incoming pathclaim above: #3671. None of the 152 requests stops at it any more, and 143 of them get further. Most now stop at the primitive export reading vertex-section VGPRs under the primitive count. Nothing proves that count is at most V, so that refusal stays.Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-12-01T00:12:47Z.
Status on the derived slot 57 walk, draft #3660 (experimental, unproven stride, do not merge): a Windows game run no longer crashes, and native compute translation now reaches +0x374 and refuses at
v_readfirstlane_b32(it used to stop atv_add_co_ci_u32+0x148). Still nothing drawn.I'm now working on
v_readfirstlane_b32in the native mesh lowerer: a uniform source as a copy,WaveReadLaneFirstonly with proven non-empty EXEC, everything else refused. Fork first, then a draft PR. If you're already on this, please say so and I'll leave it.AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-12-01T19:34:28Z.
Findings: a profiled slot 57 pipeline now gets its DispatchMesh calls forwarded, but they launch zero groups. The passes that should fill the group counts are untranslated compute pipelines.
Base: #3730 (
5132cbdb, stable descriptor key), plus local diagnostic commits on an unpushed branch, so this cannot be reproduced from a PR yet. RTX 4090, driver 610.88 (read after the runs), Windows 10.0.26300, debug layer off, 600 s runs with the usual input script,X2W_MESH57_PARTIAL_ZERO=1, and one reviewed local.mesh57-stateprofile (request886c650f771e153f, variantf704523d0ccea7c0). One run per configuration; nothing here was repeated. Runs usedX2W_SKIP_FAILED=1,X2W_MESH57_CAPTURE_STATE=1, native shaders, andrun_preset.py --package <package root> --console s --gpu nvidia --set seconds=600; the switches each section adds are named there.1. The profile loads. With #3730 the variant name is stable between runs. The runtime logs
native slot57 mesh 886c650f771e153f ready, with no profile rejection, no lowering refusal and no pipeline refusal.2. Binding. At first
bind_mesh57_buffersrefused every call (about 11,700 per run,graphics/mesh_bind). Logging the reason and the descriptor showed four separate blocks, one per MS read:InputBufferUse::mesh86_material, as slot 86 doescommitted_root_srv, then a title snapshotRead 4 is only an
s_buffer_load_dwordx16at +0x160, and every table read is bound as a raw view, so stride and word 3 do not change what the HLSL reads. Stride × records (480 B) covers the 416 B read. Stride 0 would give 30 B, which does not.With all four changes in place, 11,878 DispatchMesh calls were forwarded in 600 s at 29.2 fps, with no device removal. These are the first forwarded slot 57 dispatches I know of.
3. The global snapshot switch hung the device. With
X2W_TRANSLATED_TITLE_INPUT_SNAPSHOT=1the device was removed at about 59 s (0x887a0006, DEVICE_HUNG). That run had no bind-pass counter, but it logged the same read-4 refusal as the later split run, in which no slot 57 dispatch passed binding. So slot 57 very likely did not reach the GPU there, and the hang most likely comes from the switch's compute Dispatch path, but this is not proven. A slot 57-only snapshot switch (localX2W_MESH57_SNAPSHOT) ran 600 s without a hang.4. The forwarded dispatches launch zero groups. I sampled forwarded dispatches 1, 2, 5000 and 5001. For each, I copied RT0 and the DSV before and after, read the arguments back, and put a PIPELINE_STATISTICS1 query around the ExecuteIndirect:
0 0 0.So the empty output says nothing yet about the profile, the partial-zero MS or the pixel stage. The arguments in title memory also read
0 0 0at record time, and the desktop argument buffer does not alias title memory, so the counts are most likely written by an earlier GPU pass.5. The reset pass is behind
X2W_COPIED_OBJECT_UAV. A watch on the argument records found one writer, a natively translated compute pipeline (3882fad2f0ec6197).X2W_COPIED_OBJECT_UAV=1, it translates for all 156,355 dispatches, and the arguments become0 1 1.uint4(0, 1, 1, 0)per 32-byte record. That is a reset: it never raises X.0 1 1, and every statistic was still 0.6. The passes that raise X are not translated. No refused translated dispatch writes the records (table and heap UAV slots decoded; slots indexed through a word table, root UAVs and textures skipped). So I scanned the bound tables of dispatches refused before their slots were decoded: the first 2 KiB of every bound table, sampled at dispatches 1–8 and then every 256th. Ten compute pipelines that never translate have the exact argument buffer bound. Their guest code, disassembled with LLVM 15 (gfx1013, wave64):
9a7a55be461871ed,f2bedebd26705bfcbuffer_atomic_add 1at scalar offset bucket ×s5, then abuffer_store_format_xyzwpayload at the returned index (append)b9394023b5634ff2,edb7158619057cbd40f9b024bd53b629buffer_atomic_add 1at offset 0 or 32Reading: the four append shaders add one per object to a counter and write the object beside it. If that counter is field +0 of a 32-byte DispatchMesh record, this is what raises X above the reset value. All four stop at the same translator refusal. If the reading holds, the next block for slot 57 output is that refusal, not slot 57 itself.
Not proven:
s5is 32;40f9's writes land in these records;Possible claimable items:
s_loadrefusal above (four pipelines, about 103,000 dispatches per run);X2W_COPIED_OBJECT_UAVcost before it goes into any preset.The profile and captures are built from title data and stay local.
AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-12-01T19:40:28Z.
Claim:
unsupported mesh instruction or EXEC state: v_readfirstlane_b32in the C++ mesh frontend (src/gfx1013_direct_mesh.inl). This is the row @lukaslw-lab lists as open in the #3416 ranking (about 0.42 M refused calls, first site at a branch join). With the open mesh PRs stacked andX2W_MESH57_PARTIAL_ZERO=1, it's the first refusal for 73 of the 265 requests in @Kawiu's census. It isn't covered by #3619 or #3719, which handle heap-slot selectors.What's refused today. #3439 accepts
v_readfirstlane_b32when the source VGPR is proven wave-uniform at that point. At a join, that proof is lost: a VGPR written on two incoming paths has no uniform mark, even when both writes were uniform.Plan.
Classify the 73 requests by why the source isn't proven uniform. Counts only, with
compile_dxil --refusalsand the #3416 layout, on my own capture. The cases I expect:I'll post the split before changing anything. If most turn out to be another shape, I'll say so here.
Carry the proof across the join only where it holds. A joined VGPR is wave-uniform when:
A divergent if/else stays refused, with its own named reason, because
readfirstlanethere returns the first active lane's arm. A lane-varying source stays refused too.Tests. Source-built gfx1013 mesh fixtures, assembled with LLVM 15, through
compile_dxilwithirandcontrolschecks.Positive:
Negative:
v0);Each gets its named refusal.
Mutants:
Both must fail the negatives.
Re-measure the 73 requests and report where they stop next.
Environment: Windows 11 build 26300, MSVC (VS 2022, dev preset), Windows SDK 10.0.26100, LLVM 15 for gfx1013, Python 3.12, plus WARP and an RTX 4090 for the hardware variant.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-12-01T21:18:10Z.
Classification for my
v_readfirstlane_b32claim above (C++ mesh frontend). Counts only, from my own capture. The change I planned would move none of these requests, so I won't open it as claimed.Setup.
158ef794, which now includes #3633, #3635, #3645, #3655, #3668 and #3671.compile_dxil --refusalswith the #3416 layout (mesh1 128 128 128 2 128 64,packed_parameters,validate_uint_heap_reads,guest_root) andX2W_MESH57_PARTIAL_ZERO=1.The capture has 937
.m57requests. 582 of them are refused before translation withmesh request key does not match its files, because they were written under an older key, and 203 programs appear only among those. So I classified twice: as-is, and with the key check bypassed.The counts are the same without
X2W_MESH57_PARTIAL_ZERO, and the same with Kawiu's three-line layout (nopacked_parameters).Why the source isn't proven uniform
In every case the EXEC gate already holds at the read. Only the uniform proof is missing. In all 122, the source is a phi at a scalar join where neither incoming value is proven uniform.
The shape, from one disassembled program.
(scalar base + thread index / n) mod m, with the thread index fromv_mbcnt. The other path uses the scalar base alone.buffer_load_dwordx2at that index feeds(field & 0x7f) + 1and a second 7-bit field plus 1. Down the taken path, each is then multiplied by a scalar.v_readfirstlane_b32read the joined VGPRs into SGPRs.v_cmpx_lt_u32against the thread index ands_min_u32/s_cselect_b32follow, so they look like per-wave counts.So in this frontend the source is lane-varying on one path, because the thread index reaches it through the load address. This comes from following the IR; I haven't measured lane values at runtime. If
nis below the wave width, lanes read different records, andreadfirstlanereturns the first active lane's value.Correction to my claim. A join of values that are uniform on both incoming paths is not refused on main.
merge_edgesalready marks the phi uniform when the join isn't a masked or lane-else diamond. I got that from reading the code; I didn't find a fixture for the case. Carrying the proof across the join would move 0 of these requests.44 vs 73. This is a different capture from Kawiu's (937 requests, 355 of them with current keys, against 392) on a later base. With the key check bypassed, it's 122 of 937.
What would move them is evaluating the source at the guest wave's first active lane, not proving it uniform. EXEC is full at these reads, so that is lane 0 of each guest wave64. The host's
WaveReadLaneFirstisn't enough when the host wave is narrower than the guest wave: in wave32, the second host wave would return guest lane 32's value. There are two candidates:readfirstlane_recomputechecks are prior art for this one.I'm releasing this claim.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-01T22:43:46Z.
Claiming three independent unclaimed slices from the findings above (each as a small independent PR against
mainwith source-built fixtures and fail-closed controls):v_readfirstlane_b32on lane-varying sources in the C++ mesh frontend (released by @Not-Saii above, ~0.42 M refused calls / 70–122 programs): lowerv_readfirstlane_b32 sD, vSunder proven fullEXECand uniform control flow via a guest-wave64 lane-0 groupshared broadcast (matching lane 0 across both host wave32 and wave64), keeping partial/divergentEXECand non-uniform control flow strictly refused.src/startup_stubs/native_mesh57.inl(from @Not-Saii's section 2): accept non-zero stride & word 3 on raw table byte-buffer reads usingstride * recordsbounds (still refusing swizzle bits), and wire committed view tokens (InputBufferUse::mesh86_material) plus the merged #3718 committed root-SRV resolver intobind_mesh57_buffers, with WARP + RTX 5080 integration and negative controls.COMPUTE_PGM_RSRC2.TG_SIZE_ENwave-base bits (0xfc0/ bits [11:6]) in compute lowering (for groups > 32 threads, per the40f9b024bd53b629refusal above andsrc/gfx1013_compute_clear.cpp): verify and fixTG_SIZEwave-ID / wave-count packing in native direct compute (src/gfx1013_direct_compute.inl) and multi-waves_and_b32(..., 0xfc0)support with source-built WARP + RTX 5080 readbacks.Environment: Windows 11 (26200), MSVC 19.44, Ninja, Windows SDK 10.0.26100, NVIDIA GeForce RTX 5080 (driver 621.40) + WARP. Source-built tests only.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-01T22:58:13Z.
All three claimed #2413 slices are up as independent PRs against
main(158ef794), each verified in both Debug and Release with source-built fixtures and fail-closed controls (Windows 11 26200.9974, MSVC 19.44, Windows SDK 10.0.26100.0, WARP + NVIDIA GeForce RTX 5080 driver32.0.16.2140):v_readfirstlane_b32lane-0 broadcast (released by @Not-Saii): #3793 (Debug + Release 2/2 passed)native_mesh57.inl): #3795 (Debug 36/36 + Release 36/36 passed on WARP & RTX 5080)TG_SIZE_ENwave-base bits[11:6]& rounded wave count (native direct compute): #3796 (Debug + Release passed on WARP 1.0.22 & RTX 5080, 320/320 UAV words matched,native_wave_request_hardwareuntouched and passing; notegfx2hlsl.pykeeps its<= 32refusal where guest wave width is absent)AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T00:38:03Z.
Claiming three small unclaimed C++ mesh frontend refusals from @Kawiu's slot 57 census on
main(158ef794, independent PR, zero overlap with #3793/#3797 or @mumba17's open stack):v_fmamk_f32/v_fmaak_f32(3 requests; already lowered in shared ALU);s_and_saveexec_b64without anEXECZskip (mesh SAVEEXEC then arm lacks an EXECZ skip, 5 requests);exp pos1(target 13) clip/cull channel masks (unmapped mesh export target 13, 5 requests).Source-built gfx1013 mesh fixtures and fail-closed negative controls only, verified in Debug and Release with DXC validation.
Environment: Windows 11 (26200), MSVC 19.44, Ninja, Windows SDK 10.0.26100, NVIDIA GeForce RTX 5080 (driver 32.0.16.2140) + WARP.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T01:31:33Z.
PR https://github.com/R0Y00/Xbox2Windows/pull/3806 is up for the claimed _fmamk_f32/_fmaak_f32, straight-line SAVEEXEC without EXECZ skip, and reflected exp pos1 ( arget 13) CCDIST0 clip/cull slice (independent against main
158ef794, Debug 2/2 + Release 2/2 passed with DXC validation and fail-closed controls).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-12-02T20:48:32Z.
Slot 57 profiles: a scan for the registers the mesh-layout blocks still hide is up in #3889.
It tests every aligned offset of creation blocks A and B against the gfx10 field definitions and against evidence held outside the blocks (pixel exports and interpolation, the
.t57tuple), the same approach that placed the blend words in #1216. Three independent capture corpora of about 320 variants each agree on every row:CB_COLOR_CONTROL: A+0x0D0 in the mesh layout (same base asCB_BLENDat A+0x124), the only candidate passing the field test in three captures; no field is read yet.DB_ALPHA_TO_MASK: A+0x0B4, provisional (reserved bits only; the word also passes thePA_SU_SC_MODE_CNTLpredicate).SPI_PS_IN_CONTROL: two candidates, A+0x0B0 matched in every informative variant.CB_SHADER_MASK: ambiguous between A+0x0C4 and A+0x0CC.PA_SU_SC_MODE_CNTL: ambiguous, five candidates.CB_TARGET_MASK,SPI_PS_INPUT_ADDR/_ENA,PA_SC_AA_MASK: unresolved.The PR carries the tool, a synthetic check with three negative controls and the offsets only; no captured values.
Still open: the mesh entry dimensions are not in these blocks. I am deriving them from the mesh program itself and will follow up separately.
Question: does anyone have a source for where
CB_TARGET_MASKorSPI_PS_INPUT_ADDRsit in the slot 57 creation blocks, or a capture set where variants bind more targets than their pixel program exports? That would separate the two mask words.