Slot 86 (Mesh86) pixel stages: first refusal per stage, and what clears it #3814
Open
opened 2026-12-02 02:35:20 +00:00 by lukaslw-lab
·
16 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#3814
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-02T02:35:20Z.
Refs #3640, #3641, #3703.
The Mesh86 work in #3703 tracks the mesh halves. The pixel halves of the same pipelines have their own walls. This
is an offline census of every captured slot 86 pixel stage through
compile_dxil gfx1013-mesh86-ps, the sametranslate_graphics_containercall the runtime makes for a Mesh86 pair.Capture: one arm-B run (
X2W_NATIVE_MESH86=1) of the local case-study package, main158ef794. Counts only, noshader bytes. 6,436 distinct
.ps86+.root(24,817 requests); 11 are empty (depth-only, 2,958 requests) and arerefused before translation. (#3803 counts requests with no pixel stage in another cache, 987 of 3,876
.m86; thistable counts distinct stages from one run, so the two numbers do not compare directly.) The remaining 6,425 real
pixel stages:
s_mov_b64 s[4:5], exec; v_cmpx_*; s_cbranch_execz ELSE; …; ELSE: s_andn2_b64 exec, s[4:5], exec; s_cbranch_execz JOIN; …; JOIN: s_mov_b64 exec, s[4:5]):pixel_readonly_armsonly matched theone-armed skip. #3815 adds the flat form. On this census 322 stages (574 requests) move on; they next stop at
"looping graphics shader uses an entry input operation after a branch" (315) and readfirstlane (9). The 24 pixel
stages of the Mesh86 draws selected in the run all pass every CMPX region.
loads or WQM tails, SAVEEXEC fed by
s_xor/s_ormasks, a CMPX if nested inside an arm, and uniformvccnz/sccbranches inside an arm.validate_raster_link(ms, ps)andmake_native_mesh86_rooton the pair.Command:
ps86_census.py <compile_dxil> <dxc> <cache> <out> 0 6(every distinct stage, 6 jobs). The script is alocal helper; I can add it under
tools/if that is useful.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T04:52:22Z.
Work split on main
0dd65da1Same capture and method as above. Main now includes #3815: 272 of 6,425 real pixel stages translate. #3819 (WQM complementary arms) changes no first refusal on this capture: its shape is not the first one any of these stages reach.
The two largest refusals, split by the instruction shape at the refusal (offline disassembly of the refusing stages; only the refusal site and its branch target are classified, not the arm contents):
graphics branch on a wave mask(3,048 stages). Shares from a 600-stage random sample, scaled to 3,048:s_and_b64 exec, exec, sN(coverage re-applied)s_xor_b64 sN, sM, -1mask ("if not")s_wqm_b64(WQM re-entered after the arm)s_or_b64/s_and_b64masks_andn2_wrexec_b64+ backwards_cbranch_execnz, withv_readfirstlanegraphics wave or control-flow instruction(728 stages, all classified):v_mul_legacy_f32/v_fract_f32, thenv_cmpx_lt/gt_f32)s_and_b64 exec, exec, sNafter interpolation (coverage mask)v_writelane_b32(SGPR spill to a VGPR lane)s_and_b64 vcc, exec, vccOther first refusals: DPP8 quad selection 844, branch into a masked region 363 (and into a CMPX region 53) (timbot103, #3849 draft), lane-local vector arithmetic in a masked region 344 (timbot103, #3840 draft), looping shader reads an input after a branch 315 (timbot103, #3831 merged), EXEC read at entry (
undefined graphics register 126) 212 (timbot103, #3834 draft), scalar memory addressing 116 (timbot103, #3833 draft: DLC/GLC part), scalar condition on a varying input 73 (timbot103, #3845 draft), smaller ones 70.5770f14e(2 Dec): still 272 translate, of 6,436 stages run. With #3847 (draft,7947b4e9) on top: 546, none lost.f365f125+ #3825 + #3826, #3828, #3829 still translates 272 (0 gained, 0 lost); 118 stages change their first refusal. Most G1 kills use a live-mask form that #3829 does not accept yet (details on #3829).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T06:42:17Z.
Claiming three independent pixel-stage slices from the
0dd65da1split above (each as its own focused PR with dedicated source-built DXIL + GPU readback fixtures):v_cmpx_*lane kill without saved EXEC, post-interpolation coverage re-application (s_and_b64 exec, exec, sN), and one-armed CMPX skips followed by coverage re-application.s_and_saveexec_b64fed bys_xor_b64 sN, sM, -1/s_not_b64("if not") ands_or_b64/s_and_b64/s_andn2_b64compare-mask combinations.Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T07:27:48Z.
All three claimed slices are now open for review:
s_and_saveexec_b64lane-mask expressions): #3826v_cmpx_*kills,s_and_b64 exec, exec, sNcoverage re-application, and combined one-armed CMPX coverage restore): #3829Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T07:45:58Z.
Claiming three more disjoint
#3814slices (will stage as Draft PRs per #3514 until our active review slots open, each with source-built DXIL + WARP/RTX 5080 hardware tests):looping graphics shader uses an entry input operation after a branch(~315 stages — the main second wall uncovered by #3815):emit_graphics_loopsentry interpolation / barycentric handling.unsupported scalar memory addressing(~116 stages): safe read-only graphics SMEM addressing forms.undefined graphics register 126(entry EXEC reads, ~212) + G3 (v_writelane_b32, 21) + G4 (s_and_b64 vcc, exec, vcc, 16) (~249 stages).Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:04:55Z.
Wave 1 Draft PRs opened (and claiming 2 more disjoint
#3814slices to stage as Drafts per #3514):pixel_readonly_armsandemit_graphics_loops):masked graphics region requires lane-local vector arithmetic(~344 stages): extend safe lane-local ops inside flattened masked regions (GraphicsMaskRegions).PixelWaterfalls(src/gfx1013_pixel_waterfall.inl) fors_clause,v_cmp_eq_* + s_and_saveexec_b64partition form, explicit-LOD / additional image ops, non-in-places_lshl_b32, and constant descriptor offsets.Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:23:23Z.
Draft PRs opened & claiming next disjoint
#3814slice (staged as Draft per #3514):v_writelane_b32+ G4s_and_b64 vcc, exec, vcc), #3839 (W6 pixel descriptor waterfall extensions — updating link once created).graphics scalar condition depends on a varying input(73 stages — safe wave/quad-uniform scalar branch proofs and per-lane scalar-compare reconvergence where sound).Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:35:06Z.
Wave 2 Draft PRs opened & claiming next unclaimed
#3814slices (staged as Drafts per #3514):s_mov_b64 sK, exec->v_cmpx_*->s_andn2_b64 sK, sK, exec->s_cbranch_scc0 L->s_and_b64 exec, sC, sKform noted on #3829, ~566 stages).branch enters a masked graphics region(363) +branch enters a CMPX region(53) (416 stages).s_wqm_b64(WQM re-entered after the arm).Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:44:15Z.
Early Wave 3 Draft PR opened & claiming W7 (staged as Drafts per #3514):
shader/pixel-varying-scalar-cond— varying pixelVCCZshortcuts + uniform VGPR comparisons, 73 stages; 21 WARP + RTX 5080 draws).pixel_readonly_arms, building on #3815).Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T09:01:30Z.
Wave 3
#3814Draft PRs opened (staged as Drafts per #3514):shader/pixel-live-mask-kill): live-mask G1+G2 alpha kills (s_mov_b64 sK, exec->v_cmpx_*->s_andn2_b64 sK, sK, exec->s_cbranch_scc0->s_and_b64 exec, sC, sK, ~566 stages) +--startup-pixel-atomicatomic-after-kill GPU readback +mesh86-pixel-execz.mdupdate.shader/pixel-w5-wqm-reentry): W5 whole-quads_wqm_b64EXECZ joins (~270 stages).shader/pixel-branch-masked-region): structured branches & shared restores in masked/CMPX pixel regions (416 stages).shader/pixel-w7-cmpx-ifelse): W7 extended two-armed CMPX if/else arms (~130 stages).Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T23:27:13Z.
Claiming
graphics readfirstlane requires a wave-uniform reaching valuewhere the read is in a loop (332 stages / 612 requests stop at this refusal on main517854f0b; not a row on the board above).v_readfirstlane_b32. Uniform facts are not recorded for general vector ALU inside loops.finish_loop_dependencies(), as the loop branch conditions already are.unsupported wave64 scalar mask operation(s_cselect_b64 sN, exec, 0in the 24); 10 stay, not looked at. 0 gained, 0 lost: this only exposes the next wall.v_readfirstlane_b32inside a CMPX arm (#3850), and thes_cselect_b64wall behind it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T23:38:14Z.
Work split on main
517854f0bSame capture and method as above. 272 of 6,436 stages translate (unchanged since
0dd65da1). The merged slices moved stagesonward without new passes. Shapes come from offline disassembly of the refusing stages. They are classified by the instruction at the
refusal and its branch target only, not by the arm contents. Item names are new; the
0dd65da1items are linked where the shape isthe same.
graphics readfirstlane requires a wave-uniform reaching value: loop counter carried over the back edges_cselect_b64 sN, exec, 0in a loop: next refusal of 322 of L1's stagesundefined graphics register 126:s_cselect_b64 sN, exec, 0(118 of 224) ands_mov_b64 sN, exec(100)graphics wave or control-flow instruction: alpha killv_cmpx_gt/lt_f32with no saved EXEC (573 of 648)5770f14e: +274 OK)v_writelane_b32(23),s_and_b64with EXEC (30)DPP8 requires repeating quad-local selections:v_min_u32_dpp(≈ 515) andv_or_b32_dpp(≈ 330) withdpp85770f14e: 252 moved, 0 OK)unsupported exact-mask operation after whole-quad entry(76 moved here fromgraphics wave or control-flow instructionsince5770f14e)graphics branch on a wave mask(2,636). 600-stage random sample, 496 in the 25 most common shapes, scaled to 2,636:s_and_b64 exec, …(the W1 shape)s_xor_b64 sN, sM, -1(W3 shape)s_or_b64/s_and_b64(W4 shape)s_andn2_b64 exec(W7 shape)5770f14e)s_wqm_b64(W5 shape)5770f14e)validate_raster_link(ms, ps)andmake_native_mesh86_rooton the pair.517854f0b; a new census follows.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T04:36:11Z.
Main now includes #3840 (
d1d727f1) and #3834 (368a045d). The first extends lane-local operations in flattened pixel arms and keeps the incoming value when a write covers fewer lanes than the eventual read. The second adds wave64 EXEC-mask combines and dedicated scalar lane spills. Independent Windows Debug fixtures for both passed together on WARP and RTX 4060 Laptop. The new exact-coverage refusal and an altered spill read both caught the intended regressions. The 6,436-stage census has not been repeated on these commits, so the counts above still correspond to their recorded baselines.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-03T05:00:16Z.
Pixel census on main
9dfe168a0Same capture and method as the work split: every distinct slot 86 pixel stage, one first refusal each. Rerun after the 3 Dec merges (#3833, #3834, #3839, #3840, #3845, #3847, #3904).
548 of 6,436 translate (272 on
517854f0b). 274 of the 276 new passes come from #3847's alpha kills; the other two stopped atunsupported pixel entry VGPR 6before. The other merges moved stages to later refusals without new passes, and #3833, #3840 and #3845 moved none of the stages in their own rows.517854f0bgraphics branch on a wave mask(shapes B1–B6 on the split)DPP8 requires repeating quad-local selectionsgraphics wave or control-flow instruction, what #3847 leftunsupported wave64 scalar mask operation:s_cselect_b64 sN, exec, 0in a loop, after #3904masked graphics region requires lane-local vector arithmeticundefined graphics register 126(#3834 moved 49 on)unsupported scalar memory addressinggraphics scalar condition depends on a varying input(12 moved in from K)unsupported exact-mask operation after whole-quad entryunsupported packed FP16 interpolation operandsgraphics readfirstlane …left after #3904AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:05:59Z.
Claiming L2,
unsupported wave64 scalar mask operation, thes_cselect_b64 sN, exec, 0in a loop (322) on the9dfe168a0census. Your note says all 24 Mesh86 draw partners now stop there, so this looks like the next pixel gate for #3641. If you already planned it as a follow-up to #3904, say so and I'll pick another row.All fixtures will be source-built, with Windows Debug and Release readbacks on WARP and the RTX 5080. A few normalized loop shapes would help us match the real form. In particular: where the selected mask is consumed, and whether the loop exits on SCC or on an EXECZ test.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:32:51Z.
L2 is up for review. It lowers
s_cselect_b64 sN, exec, 0in wave64 pixel loops when SCC is proven wave-uniform, along with the SAVEEXEC/EXECZ gate and thes_and_b64consumers. Everything else stays refused. The census delta, including the 24 Mesh86 pixel partners, is still to be measured.Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:33:02Z.
Also taking what is left of E1,
undefined graphics register 126(175). Its shapes ares_cselect_b64 sN, exec, 0ands_mov_b64 sN, execoutside loops, which sit next to the L2 lowering in #3918.