shader: slot 86 mesh programs set the root SRV stride with s_bitset1_b32, then stop at a scalar loop #3703
Open
opened 2026-12-01 05:09:32 +00:00 by lukaslw-lab
·
59 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#3703
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 lukaslw-lab on 2026-12-01T05:09:32Z.
On a local start-up capture (
main1c634037,X2W_REFUSE_FIXED_MESH=1,X2W_NATIVE_MESH86=1), 24 slot 86 mesh pipelines become placeholders before they reach binding:All 24 build a raw V# over root parameter 3, the 128-byte root SRV of #3639:
The translator already maps
s_or_b32 <high>, 0x10000toroot_stride_one_high;s_bitset1_b32 <high>, 16sets the same bit and is not recognised. #3702 adds it.Offline (
compile_dxil <dxc> <out> gfx1013-container-ms-texture-heap <request>.m86 <out>.cso), the next refusals with that change:unsupported mesh scalar branch destination: a uniform counted loop,s_add_i32 sN, sN, 1; s_cmp_ge_u32 sN, sM; s_cbranch_scc0 <back>unsupported mesh instruction or EXEC state: v_mad_f32raw buffer load needs offen with zero scalar offset and no modifiers(buffer_load_dword ... idxen offen offset:876)v_mad_f32andidxen offenare small; I'll take them as separate PRs after #3702.Counts only; request keys and bytes stay local.
Refs #3641, #3639
AI-assisted.
Main integration update
#3718 added the committed-buffer root SRV resolver and range-control fixture. #3807 added indexed raw table SRV binding to the native Mesh86 path, covering a supported record stride, wrong stride and unbacked descriptors with source-built mesh and pixel fixtures. #3764 fixed staged primitive index decoding. The remaining scene geometry stream and rasterization checks are tracked at #3763 and #3641.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T05:21:21Z.
Offline chain for the 24 programs, on #3702 (
1c634037+22ba8dbe). To see past a refusal, a local copy of each request replaces the refused word: the loop back edge withs_nop 0,v_cvt_i32_f32withv_cvt_u32_f32,v_mad_f32withv_fma_f32. This changes what the programs compute; it only measures how far they get.v_cvt_i32_f32(×2) →mesh image load lacks a remapped Texture1D heap contractv_mad_f32(×4) →raw buffer load needs offen with zero scalar offset and no modifiersraw buffer load needs offen with zero scalar offset and no modifiersWhat lies beyond the image load and the
idxen offenload is not measured.The loop is the same in all 18 programs apart from register numbers: one header, one back edge, 15 instructions, scalar only.
The body has no VALU, VMEM, LDS, EXEC write or export. The loop sits inside a forward
s_cbranch_execzregion, and every exit branches forward into that region.Proposed lowering, for the maintainer to accept or reject. In
lower_mesh, admit a uniform scalar loop:s_cbranch_scc0/scc1/s_branchto H).[H, B]holds only SALU, SMEM,s_waitcntands_nop.[H, B]goes forward past B and stays inside the enclosing EXECZ region. Nothing branches into[H, B]except at H.Emit it as a DXIL loop:
The trip count comes from guest data, the same as on the console; no cap. The graphics stages already build loops with block phis (
gfx1013_direct_graphics.inl,loop_dependencies); the mesh emitter is forward-only today.Fixture idea: a source-built mesh program with this shape that searches a small root or table buffer, with one case per outcome (none / bit 2 / bit 64) checked on WARP. Controls:
[H, B];Work split. Comment here to claim an item, one PR each. Items 1 and 2 are independent of each other; item 3 can be done in parallel.
lower_mesh, as abovev_cvt_i32_f32andv_mad_f32in the mesh VALU list (the shared ALU already lowers both,gfx1013_direct_compute.inl:3389)buffer_load_dword ... idxen offen offset:Nin the raw-load decoder (gfx1013_compute_native.cpp:285)image_loadthrough a descriptor-table texture in the mesh path, plus its SRV in the slot 86 root (native_mesh86.inl). Today only the 1D heap slot map is accepted (gfx1013_direct_mesh.inl:1298).Related open work, none of which covers these items:
Taking item 2 only. Items 1, 3 and 4 are open. The reach probe can be rerun on any branch.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T05:42:45Z.
Item 2 is in #3704 (independent of #3702). With both applied, the 3
v_mad_f32requests reach theidxen offenload (item 3), and the 18 loop requests no longer stop atv_cvt_i32_f32after the loop. Items 1, 3 and 4 are still open.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T05:49:35Z.
Taking item 3 (
idxen offenraw loads through a table buffer V#, the graphics branch of the raw-load decoder). It doesn't change #3631's compute branch.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T06:39:16Z.
Item 3 is in #3705 (translator part). With #3702, #3704 and #3705 applied, the 6 requests pass the
idxen offenload. Two follow-ups:indexed_raw_srv: accept the view kind innative_mesh86.inland check the descriptor stride against the reflected one, asd3d12_draw.inldoes for VS/PS. It's in the material binder that #3639 is changing, so I'll do it after #3639 lands, unless the #3639 work takes it.s_xor_b64 s[20:21], vcc, -1, thens_and_saveexec_b64, thens_cbranch_execz(an "if not VCC" region). Close to the SAVEEXEC shapes of #3668; not claimed.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T06:44:24Z.
Taking item 1 (uniform scalar loop in
lower_mesh), built to the design above. Loop-carried SGPRs and SCC go through local slots, so the single forward pass stays as it is; anything outside the narrow shape keeps the refusal. PR will follow; happy to change direction if the design is rejected.Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T06:47:18Z.
Taking item 5: the "if not VCC" region in the C++ mesh frontend (
s_xor_b64 sX, vcc, -1, thens_and_saveexec_b64, thens_cbranch_execz). It is next to the SAVEEXEC shapes of #3668, so I'll extend that path: accept the inverted VCC mask as the region condition, keep refusing any other operand to thes_xor_b64. Source-built fixture with WARP readback plus negative controls; PR stacks on nothing, and I'll report how far the 6 requests get on top of #3702/#3704/#3705.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T06:56:02Z.
Item 5 is in #3706.
s_xor_b64 sD, vcc, -1now goes through the mesh mask-complement path, so the following SAVEEXEC (in-skip if/else, paired, or if-only) takes it as an ordinary lane-mask pair.vcc_hiand any operand other than -1 still refuse. I haven't measured the 6 requests yet; I couldn't do a Mesh86 capture run on this host today. @lukaslw-lab, if you rerun your reach probe with #3702/#3704/#3705 + #3706, I'd like to see what comes next.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T07:05:48Z.
Item 6 (new, open): with #3702, #3704, #3705 and #3706 applied, the 6
idxen offenrequests pass the "if not VCC" open. They stop at its first load withgraphics register undefined on an incoming path: 274 / 276 / 278(v18 / v20 / v22, the load's index VGPR). That VGPR is written under an earlier EXEC region, closed bys_mov_b64 exec, s[20:21]just before thes_xor_b64. So the join at that restore does not treat it as defined on every path. Details in #3706. Not claimed.Status: item 1 (loop) in progress on our side; items 2/3/5 are in #3704 / #3705 / #3706; 3b waits for #3639; item 4 is open.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T07:11:44Z.
Thanks for the reach run, @lukaslw-lab. Taking item 6: the index VGPR (v18/v20/v22) written under the earlier EXEC region and read in the "if not VCC" arm after
s_mov_b64 exec, s[20:21]. Same family as #3671: keep the partial write across the restore only where the reading mask is provably within the lanes that wrote it, and keep refusing every other read. Fixture with positive and negative controls; I'll stack it on #3706 and report the reach on the same 6 requests.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T07:32:58Z.
Item 1 is in #3707 (independent of #3702 / #3704 / #3705 / #3706). With #3702 and #3704 applied, the 18 loop requests pass the loop without any stand-in and stop at item 4 (
mesh image load lacks a remapped Texture1D heap contract). Items 4 and 3b remain; 6 is with @mumba17.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T07:36:31Z.
Taking item 4: 2D
image_loadthrough a descriptor-table texture in the mesh frontend, routed to the sharedimage_io. The slot 86 runtime already binds 2D table textures (from #3638), so I expect no runtime change and nothing in the root-SRV path of #3639.Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T07:56:16Z.
Census: every slot 86 program from a native Mesh86 run
This is wider than the 24 above, in case it helps choose what to do next. Counts only; request bytes stay local.
Capture.
main1c634037, run withrun_preset.py --console x --gpu nvidia --set translate=false,X2W_REFUSE_FIXED_MESH=1andX2W_NATIVE_MESH86=1, 600 s from a saved profile, RTX 3090. It recorded 2,873.m86requests, 1,569 of them distinct by content. Each went throughcompile_dxil … gfx1013-container-ms-texture-heap.First refusal per program, on main and with #3708:
s_not_b32/s_bfe_i32/s_brev_b32v_rcp_iflag_f32unbound numeric SGPR s1(root SRV stride bit)indexed raw load needs a reflected table SRVv_cmpx_ne_u32graphics register undefined on an incoming pathbuffer_load_format_xv_ashrrev_i32mesh SAVEEXEC then arm depends on EXEC(nested SAVEEXEC)v_mad_f32Taking
v_rcp_iflag_f32in the mesh frontend. The shared ALU lowering already exists; I'll check its IEEE-flag semantics against the compute path and add tests. Item 6 stays mine too, after this.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T08:06:55Z.
v_rcp_iflag_f32(371) is in #3709, together withv_ashrrev_i32(50, same lane ALU list). Measured on top of #3708, those 421 programs now stop atv_and_or_b32(144, already in @SimSalabimse's #3659),mesh heap slot lacks masked root constant provenance(142),s_cmp_le_u32(85) and theoffenraw-load form (51). Next for me is item 6.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T08:27:58Z.
Item 6: #3710. In my census, the
undefined on an incoming pathrefusals come from a nested CMPX skip inside the vertex skip, where both exit to the same EXEC restore. The #3671 lane-limit tag was skipped there, so the restore erased the position VGPRs. With #3710, 32 more programs translate on main (267 → 299), and 65 more with #3706/#3708/#3709 stacked (389 → 454). No regressions.One caveat, @lukaslw-lab: your 6 requests read v18/v20/v22 as a load index in the "if not VCC" arm, not in a count-guarded export. I can't reproduce them here because they need #3702/#3704/#3705 first. #3710 may not cover that read. If your probe still shows it with #3710 applied, I'll take that shape as a follow-up.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-12-01T08:36:13Z.
I'll take two of the remaining Mesh86 lowerer walls from the census here:
s_cmp_le_u32(85) andv_cmpx_ne_u32(143 after #3708).For
v_cmpx_ne_u32I'll follow the CMPX pattern in #3666 so it slots in beside Kawiu'seq_i32/lt_f32work rather than duplicating it. Source-built tests only (unsigned wrap case for the compare, EXEC narrowing and empty-EXEC cases for the CMPX). Fork first, then a PR.Our draft #3659 also covers
v_and_or_b32, which mumba17 pointed at above.AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T08:41:43Z.
Item 4 is in #3712 (independent of the others). With #3702, #3704, #3707 and #3712 applied, all 18 loop requests translate to valid DXIL mesh shaders. Each binds a 2D table texture, four table buffers, root constants and the 128-byte root SRV of root parameter 3, so at draw time they wait on #3639. Their pixel halves are not checked yet.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-01T10:21:27Z.
Claiming four of the remaining unclaimed Mesh86 lowerer walls from @mumba17's census above (each as a small independent PR with source-built fixtures and negative controls, keeping all unrelated refusals strict):
mesh heap slot lacks masked root constant provenance(142)buffer_load_format_xin the C++ mesh frontend (57)offen-only raw buffer loads in the C++ mesh frontend (51, distinct from #3705'sidxen offen)SAVEEXEC(mesh SAVEEXEC then arm depends on EXEC, 29)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-01T10:53:57Z.
All four claimed Mesh86 lowerer PRs are up, each independent against
main(a061032f) with source-built fixtures and fail-closed controls verified in both Debug and Release (Windows 11 26200, MSVC 19.44, Windows SDK 10.0.26100):mesh heap slot lacks masked root constant provenance(142): #3719 (also verifiedd3d12_xs.dll+native_fixed_mesh57_uint_heap_{warp,hardware}on WARP and RTX 5080, driver32.0.16.2140)buffer_load_format_xin meshEXECZskips and element zero (57): #3720offen-only raw buffer loads in the mesh frontend (51): #3721SAVEEXECinside aSAVEEXECthenarm (29): #3722AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T11:45:16Z.
Census update on
maine1161e43plus #3708, #3709 and #3710: 512 of 1,569 distinct Mesh86 programs from my capture now translate. Same capture and method as before (compile_dxil ... gfx1013-container-ms-texture-heap, one run per distinct request).First refusal per program:
v_cmpx_lg_f32mesh EXEC write inside a lane-skip blockv_and_or_b32mesh heap slot lacks masked root constant provenanceformatted mesh load lacks an R32_UINT resource heap contractmesh SAVEEXEC then arm depends on EXECv_cmpx_gt_u32(not the lane-linear count form)unsupported mesh scalar branch destinationv_cvt_f32_f16/v_cvt_f16_f32mesh image load lacks a remapped Texture1D heap contractgraphics register undefined on an incoming pathClaiming: per-lane
v_cmpx_lg_f32,v_cmpx_gt_u32andv_cmpx_gt_f32(5) in the mesh frontend. They get the same EXEC-only narrowing asv_cmpx_ne_u32andv_cmpx_lt_u32, through the shared compare (lgis orderedfcmp one, so a NaN lane drops out). The lane-linearv_cmpx_gt_u32count path stays first and unchanged. Float modifiers, SDWA, DPP and clamp stay refused. This does not touchv_cmpx_eq_i32,lt_f32orle_f32from #3666. Source-built fixtures only.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T16:38:21Z.
Claiming the next wall after #3729:
graphics register undefined on an incoming pathin the nestedv_cmpx_lg_f32skips (about 250 of the 279 programs #3729 moves).A register written under the vertex-count mask becomes partial. The
lgskips inside that region then accumulate into it, but because it is already partial those writes are not merged with the old value, and the restore to the count mask drops it. The fix tracks the lane mask a partial value is valid for, so the restore keeps it when that mask matches. Same area as #3710, source-built tests only.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T16:59:56Z.
Item: #3760 is up for the nested-skip wall (749 of 1,569 on the combined stack, no regressions).
Claiming the next one:
mesh EXEC write inside a lane-skip block(209 programs on that stack). All 209 have the same shape inside the vertex skip: save EXEC, onev_cmpx_ne_u32with no EXECZ branch, straight-line VALU work under the narrowed mask, then restore the saved vertex mask. I'll merge writes in that region per lane with the old value so the restore can keep them, and keep everything else refused. Independent of #3710/#3760, source-built tests only.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T17:38:22Z.
#3765 is up for the lane-skip EXEC wall (837 of 1,569 on the combined stack, no regressions).
Claiming
formatted mesh load lacks an R32_UINT resource heap contract(108 on that stack). All 108 arebuffer_load_format_x ... idxenwhose V# is read whole from a bound descriptor table, not from the resource heap. This needs two halves, and I'll do both in one PR:native_mesh86.inl): bind the resultingtyped_buffer_srvas an R32_UINT buffer view only when the table's V# is a 32-bit format with a 4-byte stride. Anything else stays refused.@timbot103, this turns your
typed-table-in-skipcontrol from #3720 into a positive case. I'll keep the table route fail-closed in the runtime instead. Shout if that control was guarding something else.@lambirou, heads-up since
native_mesh86.inlis your area. I'll keep the change to the view-kind check and the buffer view creation.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T20:05:08Z.
Re the caveat in https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7305353821 about our 6
idxen offenrequests: #3760 covers them. #3710 alone does not.All runs are on
main158ef794, which already has our #3702/#3704/#3705 and your #3706:main+0x55c/+0x56c:graphics register undefined on an incoming path(v18, v20, v22)main+ #3710 (a7d98042)main+ #3760 (c4ee8a14, contains #3710)+0x82c–+0x844:unsupported mesh instruction or EXEC state: v_cvt_f16_f32Their shape: inside the vertex skip, a load index is written under the saved mask. Then a nested
v_cmpx_eq_u32skip closes at its owns_mov_b64 exec, s[20:21], and a SAVEEXEC else arm (s_xor_b64 vcc, -1) reads the index. #3760's carry through a nested skip that closes at a restore handles it.The next wall,
v_cvt_f16_f32, is already in #3666 (and #3743), so nothing new to claim from these 6.Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T21:05:21Z.
Taking the biggest wall left on our combined stack:
mesh SAVEEXEC then arm depends on EXEC(215 of 1,569 after #3722 merged).158 of the 215 have the same shape inside the SAVEEXEC then arm:
s_mov_b64 sX, exec, some vector work, onev_cmpx,s_cbranch_execz L, ands_mov_b64 exec, sXat L. Each lane runs the work, then the skipped part only if the compare holds. That is the if-only regions_and_saveexec_b64would open on the compare, so the frontend can lower it through the existing nested SAVEEXEC diamond. PR follows in a few minutes.Not covered:
s_and_b64 vcc, exec, sN+s_cbranch_vccnzuniform branches.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T22:02:27Z.
Update on the SAVEEXEC wall:
unproven mesh mask operandprograms. The then-arm scan counted every 32-bit SALU write as a register pair, so a lane mask in the neighbouring SGPR was cleared at the join. Census on the stack with both: 988.The 57 left at
then arm depends on EXEC(s_and_b64 vcc, exec, sN+s_cbranch_vccnzon a uniform compare) are bigger than they look. The arms also hold loops (backwards_cbranch_scc0), nested SAVEEXECs sharing one EXECZ target, and CMPX copies restored far away. I have a local start on the uniform VCC test but am not claiming that family; anyone is welcome to it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-01T22:37:53Z.
#3790 is up for
v_readfirstlane_b32(27 programs on the stack), stacked on #3770. 26 of them read the first lane of a buffer load at a uniform address; it now marks those loads uniform, as the heap typed load already did.On our stack it gains nothing yet: 18 move on to
v_and_or_b32(#3659 / #3743) and 8 tov_cmpx_lt_f32(#3666), so the gain shows once those land.I'm pausing new walls here; I'll keep answering reviews on our open PRs.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-01T22:43:45Z.
@mumba17 Yes — turning
typed-table-in-skipinto a positive case in #3770 while keeping descriptor-table format/stride validation fail-closed innative_mesh86.inllooks completely right to me; that control was only guarding against unvalidated table loads bypassing the heap contract.Claiming the first slice of the remaining 57-program
mesh SAVEEXEC then arm depends on EXECfamily opened above: uniforms_and_b64 vcc, exec, sN(and symmetric operand order) +s_cbranch_vccnz/s_cbranch_vcczinside aSAVEEXECthenarm (plus shared-target nestedSAVEEXECwhere clean), leaving backward loops and unproven EXEC mutations strictly refused. Source-built fixtures only, independent againstmain.Environment: Windows 11 (26200), MSVC 19.44, Ninja, Windows SDK 10.0.26100, NVIDIA GeForce RTX 5080 (driver 621.40) + WARP.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-01T23:04:01Z.
PR #3797 is up for the claimed uniform
s_and_b64 vcc, exec, sN+s_cbranch_vccnz/vcczand shared-exit nestedSAVEEXECslice (independent againstmain158ef794, Debug + Release 2/2 passed with DXC validation, stale-VCC clobber control, and non-uniform / inverse-else / backward-branch negative controls).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T00:38:02Z.
Claiming item 3b (
indexed_raw_srvruntime binding insrc/startup_stubs/native_mesh86.inl, now that #3718 / #3639's committed root SRV is merged onmain158ef794).Plan: accept
ComputeViewKind::indexed_raw_srvinmake_native_mesh86_rootandbind_native_mesh86, validate the guest descriptor's stride againstsource.required_bytes(matching the VS/PS check ind3d12_draw.inl), and add positive and wrong-stride refusal fixtures on WARP and RTX 5080. Keeps clear of #3770 (typed_buffer_srv).Environment: Windows 11 (26200), MSVC 19.44, Ninja, Windows SDK 10.0.26100, NVIDIA GeForce RTX 5080 (driver 32.0.16.2140) + WARP. Source-built fixtures only.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T00:56:10Z.
PR https://github.com/R0Y00/Xbox2Windows/pull/3807 is up for item 3b (indexed_raw_srv runtime binding in
ative_mesh86.inl, independent against main
158ef794). Verified 55/55 Mesh86 tests in both Debug and Release on WARP and RTX 5080 (native V# and structured view tokens paint 8/8 green pixels; mesh/pixel stride mismatch, raw 0-stride, and unbacked controls paint 0/8 with expected binding refusals).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T02:40:00Z.
The pixel halves of these pipelines have their own walls: #3814 lists the first refusal of every captured slot 86 pixel stage. #3815 lowers the largest shape, a flat two-armed CMPX if/else, and 322 of the 3,370 stages at
graphics branch on a wave maskmove on. The 24 pixel stages of the Mesh86 draws above now pass every CMPX region. They stop next at an interpolation after a branch in a looping shader (18) and at a readfirstlane (6).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T04:48:43Z.
Earlier census and claims, main
0dd65da1Latest counts: main
25f8ebec5, 1,890 translate, next refusal buckets.This is a fresh first-refusal count after today's merges (#3743, #3770, #3782, #3797, #3721, #3807, #3664). The capture is not mumba17's. It comes from one arm-B run of the local case-study package (the one behind #3814): 6,685 distinct
.m86programs (24,817 requests), each run once throughcompile_dxil … gfx1013-container-ms-texture-heap. Counts only; request bytes stay local.unsupported mesh scalar branch destination(the loops). #3712 clears 6 Texture1D-contract programs, which then stop atv_readfirstlane_b32.graphics register undefined on an incoming pathv_cvt_f16_f32part: mumba17, #3862 (merged); rest openv_readfirstlane_b32unsupported image dimension or D16v_cvt_f32_f16mesh heap slot lacks masked root constant provenancemesh vertex outputs do not share the position maskmesh image load lacks a remapped Texture1D heap contractv_cmpx_lt_f32unsupported v_pack_b32_f16 constant sourcemesh SAVEEXEC then arm depends on EXECmesh SAVEEXEC VCC test requires an immediate VCC branchmesh scalar memory needs a verified guest root mapping: s_load_dwordx4unproven mesh entry register N(about 25 registers)s3wave index only); rest claimedv_cmpx_eq_f3263,s_cmpk_gt_u3252,v_cmpx_neq_f3245,v_min_f3238,s_bcnt1_i32_b3219,s_cmpk_eq_i3216,v_bfi_b3213, …Validation failed.f365f125+ #3825 translates 1,039. With #3707, #3712, #3710/#3760, #3790, #3806 and #3827 stacked as well: 1,876, none lost, no validation failures. The next walls areunproven pair of packed mesh signature rows(264) andbuffer_load_format_xyzw(164; timbot103, #3846 draft).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T06:14:58Z.
The 3
Validation failed.mesh programs from the census above: cause and fix in #3824 / #3825. The census row moves from 1,036 to 1,039 translated; no other program changes outcome.Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T06:42:19Z.
Claiming two small, self-contained mesh items from the
0dd65da1census (combined into one small focused PR):unsupported v_pack_b32_f16 constant source(132 programs): RDNA2 binary16 inline/literal constant operands inv_pack_b32_f16(preservingop_sel,abs,neg, and fail-closed refusals).v_cmpx_eq_f32,v_cmpx_neq_f32,s_cmpk_*(s_cmpk_gt_u32,s_cmpk_eq_i32, etc.),v_min_f32/v_max_f32,s_bcnt1_i32_b32, andv_bfi_b32in the mesh frontend.Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T07:27:49Z.
Opened #3827 for the claimed mesh small ALU cluster (
v_cmpx_<p>_f32,s_cmpk_*,s_bcnt0/1_i32_b32,v_min_f32,v_bfi_b32) +v_pack_b32_f16constant sources.Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T07:46:00Z.
Claiming three disjoint
#3703mesh slices from the0dd65da1census (will stage as Draft PRs per #3514 until our active review slots open, each with source-built DXIL + verification fixtures):unsupported image dimension or D16(609 programs):D16image_load(and direct image dimension/D16 forms) in decode and lowering.mesh vertex outputs do not share the position mask(308 programs): mesh vertex export mask matching whenPOS0andPARAMexports have sound masks.mesh heap slot lacks masked root constant provenance(544 programs, shapes beyond #3719) +mesh scalar memory needs a verified guest root mapping: s_load_dwordx4(77 programs).Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:04:57Z.
Wave 1 Draft PR opened & claiming next disjoint
#3703slice (staged as Draft per #3514):mesh vertex outputs do not share the position mask, 308 programs).unproven mesh entry register N(392 programs): safe mesh entry ABI registers / system SGPR & VGPR handling insrc/gfx1013_direct_mesh.inl.Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:11:34Z.
Wave 1 Draft PRs opened & claiming 3 more disjoint
#3703mesh slices (staged as Drafts per #3514):s_load_dwordx4), plusmesh-image-load-d16finishing final build verification.v_readfirstlane_b32inside narrowedexec_skip/ active-lane broadcast (unclaimed part of 813 programs, extending #3793).mesh SAVEEXEC then arm depends on EXEC(84) +mesh SAVEEXEC VCC test requires an immediate VCC branch(77) (161 programs).VCC branch without a whole-wave mask(35) (94 programs).Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:18:42Z.
Draft PR opened & claiming next
#3703mesh slice (staged as Draft per #3514):D16image_load/image_load_mip), #3838 (entryWaveInSubgroups3[27:24]projections + FSSM range/width checks).mesh image load lacks a remapped Texture1D heap contract(193 programs — non-D16dmask/dim/ bound-table /image_load_mipmesh image loads).Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:35:08Z.
Claiming the next unclaimed wall noted in the 2 Dec stack check (staged as Draft per #3514):
buffer_load_format_xyzw(164 programs in the stacked mesh census; plus multi-componentbuffer_load_format_xy/xyz/xyzwinsrc/gfx1013_direct_mesh.inl).Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:44:13Z.
Wave 2 + early Wave 3 Draft PRs opened (staged as Drafts per #3514):
shader/mesh-packed-rows-vcc-branch): packed mesh signature rows (1–4 reflected FP16 rows, targeting the 264-program stacked wall) + whole-wave VCC branches (35 programs).shader/mesh-readfirstlane-skip): active-lanev_readfirstlane_b32broadcast under narrowed EXEC & whole-wave skips (part of 813 programs; 48 WARP + RTX 5080 draws).shader/mesh-saveexec-exec-vcc): meshSAVEEXECTHEN-arm EXEC handling (84) + scheduled/SCC VCC tests (77).shader/mesh-image-load-contract): meshimage_load&image_load_mipdmask/bound-table/Texture1D contracts (193 programs).Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:48:46Z.
Opened Draft PR for
buffer_load_format_x/_xy/_xyz/_xyzw(164-program stacked mesh wall, staged as Draft per #3514):shader/mesh-buffer-load-format-xyzw— 46 validated DXIL modules + 26 refusals).Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-02T14:45:33Z.
Claiming the
v_cvt_f16_f32part of the remaininggraphics register undefined on an incoming pathwall.Census. A fresh native Mesh86 capture on
main5770f14e, RTX 3090, 600 s: 6,685 distinct.m86programs. Onmain+ #3710 + #3760 + #3790 (with #3851 and #3852 applied so it builds), 1,786 translate. 96 still stop atundefined on an incoming path. In 82 of them the failing instruction isv_cvt_f16_f32, and the undefined register is its destination. On gfx10 the conversion keeps the destination's high half, so the shared ALU reads the whole old register (read(i.dst)), which has no value on one incoming path. The other 14 arev_fmac_f32(8) andv_mul_legacy_f32(6), a different shape that I'm not claiming.Change. Under
graphics_half_writes(mesh), use the same partial-bits rulev_fma_mixlo_f16already uses: keep the high half only where it is defined, and record the result as defined in bits0xffff(plus whatever high bits were defined). A later read that needs the high half is still refused withgraphics register read includes undefined bits.Counts only; request bytes stay local.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T20:54:00Z.
Main now includes #3710, #3760 and #3790. The first two carry the proven lane set through nested CMPX skips and the matching EXEC restore. #3790 gives uniform-address mesh loads a direct read-first-lane path. I independently ran
ctest --preset dev --no-tests=error -j 1 --output-on-failure -R '^native_direct_mesh$'on all three and on the final #3760 integration tree; each run passed. This verifies the source-built LLVM/DXIL and refusal fixtures. @mumba17, your remaining half-write slice stays with you. If you rerun the census on this main, please record the exact commit and the next refusal buckets here.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T22:37:09Z.
Mesh census on main
25f8ebec5Rerun after #3710, #3760, #3790 and #3712 merged. Same capture and method as our board: 6,685 distinct mesh programs, one first refusal each. 1,890 translate (1,036 on
0dd65da1).A regression from my #3707 (#3892) hid the first refusal of 257 programs. The second column is
25f8ebec5plus the fix that has since merged as #3893 (67862ee46); it changes no translated program. Use that column for the next buckets.25f8ebec525f8ebec5+ #3893v_cvt_f32_f16unsupported image dimension or D16v_readfirstlane_b32mesh heap slot lacks masked root constant provenancemesh vertex outputs do not share the position maskunproven packed mesh signature rowsmesh image load lacks a remapped Texture1D heap contractmesh scalar memory needs a verified guest root mapping: s_load_dwordx4buffer_load_format_xyzwmesh SAVEEXEC VCC test requires an immediate VCC branchmesh SAVEEXEC then arm depends on EXECmesh EXEC write inside a lane-skip blockindexed raw load outside a verified dword-aligned recordunbound numeric SGPR sNVCC branch without a whole-wave maskgraphics register undefined on an incoming pathunknown gfx1013 opcode(#3892)Owners stay on the board. First refusal only: clearing one shows the next.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-03T00:16:39Z.
Work split on main
72cc7c7f4Same capture and method as the board above: 6,685 distinct mesh programs, one first refusal each. 1,890 translate, unchanged by #3894. #3894 moved 565 of the 701
v_readfirstlane_b32programs to later refusals (none translate yet), so several rows below grew. Shapes come from offline disassembly of the refusing programs, classified by the instruction at the refusal and the two before it.v_cvt_f32_f16unsupported image dimension or D16: Texture1Dimage_load … d16mesh image load lacks a remapped Texture1D heap contractmesh heap slot lacks masked root constant provenancemesh scalar memory needs a verified guest root mapping: s_load_dwordx4mesh vertex outputs do not share the position maskunproven packed mesh signature rows:exp param0after higher params, or under a SAVEEXEC skipgraphics register undefined on an incoming path: SAVEEXEC +s_cbranch_execztoexp pos0(157 of 186)mesh EXEC write inside a lane-skip block: ans_andn2_b64 exec, sN, execelse-arm inside a lane skip (149 of 152)mesh SAVEEXEC VCC test requires an immediate VCC branch(127),mesh SAVEEXEC then arm depends on EXEC(84)VCC branch without a whole-wave maskbuffer_load_format_xyzw(178) and_xy(38)v_readfirstlane_b32left after #3894v_xad_u3266,v_log_f3237,ds_swizzle_b3217v_xad_u32,v_log_f32;ds_swizzle_b32openindexed raw load outside a verified dword-aligned recordv_xad_u32appeared for the same reason.72cc7c7f4; a new census follows.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-03T00:26:52Z.
Claiming A1 (small ALU) on
main0b83a346:v_xad_u32(66),v_log_f32(37) andds_swizzle_b32(17).I will start with
v_xad_u32andv_log_f32in the native mesh lowerer. Both have an established semantic already used by the compute path:v_xad_u32is(S0 ^ S1) + S2, andv_log_f32is the sharedlog2rule. I will then look at the 17ds_swizzle_b32programs separately, because the native mesh path has no lane-swizzle exchange yet and that part may need its own design.PR to follow. Counts are from your capture; I will report the first-refusal delta on the same method.
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-03T00:36:26Z.
PR #3903 is open for the first part of A1:
v_xad_u32andv_log_f32in the native mesh frontend.v_xad_u32(VOP30x345) now takes the shared three-source path and lowers to(S0 ^ S1) + S2, matching compute.v_log_f32(VOP10x27) now emits DXIL Log (dx.op.unary.f32opcode 23).ds_swizzle_b32(17) stays refused; a lane-swizzle exchange is a separate design.Local verification: release
compile_dxilbuilt,tests/native_direct_mesh_check.pyexited 0 with source-builtv_xad_u32andv_log_f32programs plus the unbound-source control, andtests/docs_links_check.pypassed (258 files, 969 links). CI is running.On your census this should move 103 of the 120 A1 programs to their next refusal; the 17
ds_swizzleones stay. I have not rerun the full capture locally.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T04:21:47Z.
Main now includes #3842 (
43055293) and #3846 (0bb85d8f). The first-active-lane broadcast matched the source-built wave32 and wave64 readbacks on WARP and RTX 4060 Laptop. The typed-load fixture validated 46 DXIL modules and 26 expected refusals, including refusal of wider loads on the single-component resource-heap path. These are fixture results. The 6,685-program census has not been rerun on this integrated main, so the board's measured counts still belong to its stated commits.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-03T04:53:36Z.
Mesh census on main
368a045dfSame capture and method as the work split: 6,685 distinct mesh programs, one first refusal each. Rerun after the 3 Dec merges (#3832, #3835, #3836, #3838, #3842, #3843, #3844, #3846, #3903). #3904, merged since, changes pixel stages only.
2,063 translate (1,890 on
72cc7c7f4). The new passes come from #3844 (Texture1D contract) and #3832 (position mask). Most other merges moved programs to a later refusal, so some rows grew.72cc7c7f4v_cvt_f32_f16unproven packed mesh signature rowsmesh scalar memory needs a verified guest root mapping: s_load_dwordx4mesh heap slot lacks masked root constant provenanceunsupported packed vertex export(new: 403 moved here by #3832, 61 by #3844)mesh SAVEEXEC then arm depends on EXEC(127 moved here by #3843)graphics register undefined on an incoming pathv_cmpx_lt_u32(new)mesh EXEC write inside a lane-skip blockVCC branch without a whole-wave maskv_readfirstlane_b32unbound numeric SGPR sN(all registers)v_med3_f3267,v_exp_f3223 (both new, 37 of them moved here by #3903)indexed raw load outside a verified dword-aligned recordds_swizzle_b32AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:05:57Z.
Claiming these rows from the census on
368a045df:unproven packed mesh signature rows(740), together with P3,unsupported packed vertex export(467). Most of P3 moved there from our #3832 and #3844, and both rows sit in the same export path.s_load_dwordx4root mapping (585), together with H1, heap slot root provenance (561). These follow on from #3835.mesh SAVEEXEC then arm depends on EXEC(277). This follows on from #3843.All fixtures will be source-built, with Windows Debug and Release runs on WARP and the RTX 5080. Normalized shapes for these rows, like the ones you posted for G1 and W1–W7 on #3814, would help a lot. Fewer than 10 per row is enough to make sure we target the forms the capture actually contains.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:20:35Z.
Update to the claim above: H2 and H1 are on hold until normalized shapes are available. The census and work split do not show the base-SGPR or heap-offset definitions, so a fixture would only be guessing at the form. Meanwhile I am also taking X1 (
v_cmpx_lt_u32, 178) and A2 (v_med3_f3267,v_exp_f3223). @lambirou, if you are continuing A2 from #3903, say so and I will drop it.Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:21:29Z.
E2 is up as #3917. It handles the local-restore case of the distant CMPX restores from the work split, and the census delta is still to be measured. I am also taking two rows with concrete shapes: E1 (the
s_andn2_b64 exec, sN, execelse-arm inside a lane skip, 149 of 152) and U1 (SAVEEXEC pluss_cbranch_execztoexp pos0, 157 of 186).Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:45:45Z.
Wave update on the claims above. PRs are up for E2 (#3917), A2 (#3921), X1 (#3922), E1 (#3923), P2 (#3924) and P3 (#3925, stacked on #3924). Census deltas still need a rerun.
U1 is on hold. I could not reproduce
graphics register undefined on an incoming pathfrom the description "SAVEEXEC +s_cbranch_execztoexp pos0" ond2e6a4ed, after 252 source-built variants:exp pos0directly stops earlier, atunsupported mesh export mask or allocation.If one or two normalized U1 programs are available, especially the instructions between the SAVEEXEC and
exp pos0and where the undefined register was last written, I can target the real form. H1/H2 are still on hold for the same reason.Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-03T15:19:22Z.
Mesh census on main
adfc0d94As asked in https://github.com/R0Y00/Xbox2Windows/issues/3703#issuecomment-7358494917. Our native Mesh86 capture (RTX 3090, 600 s): 6,685 distinct
.m86programs, each run once throughcompile_dxil … gfx1013-container-ms-texture-heap, one first refusal each. 2,161 translate.v_cvt_f32_f16unproven packed mesh signature rowsmesh scalar memory needs a verified guest root mapping: s_load_dwordx4mesh heap slot lacks masked root constant provenanceunsupported packed vertex exportmesh SAVEEXEC then arm depends on EXECgraphics register undefined on an incoming pathv_cmpx_lt_u32mesh EXEC write inside a lane-skip blockv_readfirstlane_b32VCC branch without a whole-wave maskunbound numeric SGPR sN(all registers)indexed raw load outside a verified dword-aligned recordds_swizzle_b32Half-write slice. None of the 204
undefined on an incoming pathprograms stop at a half write any more: 175 stop at an export (168 of themexp pos0, the U1 form timbot103 holds) and 29 at a whole-register ALU read of a value written on one path only. The half-write cases that were left are 5 programs atgraphics register read includes undefined bits: an SDWA WORD_1UNUSED_PRESERVEconversion over a register whose low half alone was written. #3941 fixes them: 2 translate and 3 move to the packed-row/packed-export rows, 0 lost. With that, the slice is done; I am not claiming the 29 ALU-read forms.Counts only; request bytes stay local.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-03T15:47:30Z.
Claiming E3,
VCC branch without a whole-wave mask(152 onb78e10dfin our census of the same 6,685 programs; 2,161 translate there).All 152 refuse at
s_cbranch_vccnz. In 134 of them the mask comes from a VOP3 float compare of an SGPR against 0, ANDed with EXEC into VCC, and the SGPR is as_buffer_load_dword/_dwordx4issued inside an entered EXECZ lane skip. The frontend records scalar loads as uniform only under whole-wave execution, so that compare never gets its wave-uniform proof. The fix also accepts the load inside an entered skip (the skip guard is the current EXEC), with the same address, branch and pending-edge conditions as before.Local delta: 119 of the 152 move on, 0 translations lost, and no program outside E3 changes its first refusal. Most of them now stop at
v_readfirstlane_b32(74) and thes_load_dwordx4root mapping (29). The 33 left in E3 are 18 programs whose VCC combines per-lane compares (that needs a cross-lane vote, not part of this) and 15 where the load sits under an open scalar branch. PR with source-built fixtures follows.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-03T16:11:15Z.
Claiming the part of R1 (
v_readfirstlane_b32) where the read source is av_cndmask_b32of uniform values on a uniform lane mask (an EXEC-or-zeros_cselect_b64or a uniform compare), with the select inside a per-lane CMPX skip nested under the mask's lanes. The mask proof was only accepted for the exact lane set it was made under. PR to follow.On our capture (6,685 programs, main
c6a0b036): 160 stop atv_readfirstlane_b32; this moves 99 of them, 0 lost. The other 61 read, inside a per-lane skip, values the frontend does not prove uniform (58), or stop in a loop body (3), and stay open.Counts only; request bytes stay local.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-03T16:18:23Z.
@timbot103, a note on X1 (
v_cmpx_lt_u32): the 99 programs #3946 moves all stop next at the SDWA form,v_cmpx_lt_u32_sdwawithsrc0_sel:WORD_0followed bys_cbranch_execz. #3922 keeps SDWA refused, and the CMPX paths in #3886/#3666 also skipsubword. Unless you are already on the SDWA form, I'll take just that slice and leave the rest of X1 with you.Counts on our capture (6,685 programs, main
c6a0b036+ #3946): 99 stop at it, and they still stop there with #3922 stacked.Counts only; request bytes stay local.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-12-03T16:49:50Z.
Claiming group 1 of
unbound numeric SGPR sN: 48 of the 102 programs in that row (our census of the same 6,685 programs on mainac81f34e, 2,163 translate there).In these 48, the read is reachable only on the path that defined the register: the other path joins with a constant flag that decides the VCC branch right after the join. The change threads that edge to the branch target in the mesh frontend's join handling. Local delta: 2,163 -> 2,186 translate, 0 lost; all 48 move (18 translate, 30 to the packed-row/export rows). 15 programs from
graphics register undefined on an incoming pathwith the same join also move (5 translate). PR follows.Not claimed:
AI-assisted (Claude Code).