compute: translate divergent multi-wave wave64 groups as lane pairs #3352
Closed
Not-Saii wants to merge 2 commits from
upstream-pr/3352 into main
pull from: upstream-pr/3352
merge into: R0Y00:main
R0Y00:main
R0Y00:codex/indirect-large-backed-views
R0Y00:codex/word3-preflight-check
R0Y00:codex/vertex-table-two-records
R0Y00:codex/live-index-alias
R0Y00:codex/copied-vertex-buffer-srv
R0Y00:codex/windows-stage-test-output
R0Y00:codex/preserve-live-srv-retirement
R0Y00:codex/share-render-target-tracking
R0Y00:codex/sgd5-negative-offset-fixture
R0Y00:coverage-dashboard
R0Y00:codex/mesh-loose-root
R0Y00:codex/mesh86-cache-padding
R0Y00:codex/xmem-scatter-preflight
R0Y00:codex/mesh-depth-ps
R0Y00:codex/indirect-dispatch-refresh
R0Y00:codex/compute-container-index
R0Y00:codex/startup-compute-formatted-load
R0Y00:codex/compute-indirect-producer
R0Y00:codex/compute-atomic-soffset
R0Y00:codex/mesh-dual-handoff
R0Y00:codex/startup-run-sh-watcher-control
R0Y00:codex/queue31-page-alias
R0Y00:codex/indexed-indirect-compute-root
R0Y00:codex/typed-buffer-view-metadata
R0Y00:codex/translated-indexed-address-alias
R0Y00:codex/fixed-mesh-create-result
R0Y00:codex/xmem-section-lease
R0Y00:codex/startup-slot86-mesh-cache
R0Y00:codex/restore-mesh-barrier-iteration
R0Y00:codex/translated-indirect-upload-index
R0Y00:codex/xapu-completion-opt-in
R0Y00:codex/translated-indexed-rect
R0Y00:codex/translated-indexed-indirect
R0Y00:codex/startup-mesh-lds-integration
R0Y00:codex/startup-console-ms24
R0Y00:codex/startup-slot57-mesh-request
R0Y00:codex/indirect-copy-provenance
R0Y00:codex/present-color-producer-trace
R0Y00:codex/compute-dispatch-binding-trace
R0Y00:codex/translated-indirect-table-buffers
R0Y00:codex/indirect-copy-provenance-base
R0Y00:codex/mix-half-literal-source
R0Y00:codex/translated-indirect-draw
R0Y00:codex/xmem-scatter-diagnostics
R0Y00:codex/slot148-recording-upload
R0Y00:codex/slot70-loading-art-verified
R0Y00:codex/command-list-upload-arena
R0Y00:codex/recover-failed-command-list
R0Y00:codex/startup-heap-timing-notes
R0Y00:codex/align-audio-input-timeline
R0Y00:codex/synthetic-depth-export-control
R0Y00:codex/startup-texture1d-on-windows
R0Y00:codex/1629-packed-position-fixture
R0Y00:codex/cpu-srv-refresh
R0Y00:codex/stream-root-srv-draw
R0Y00:codex/audio-mixer-timer
R0Y00:codex/startup-reload-published-shader
R0Y00:codex/priority-integrate-1284
R0Y00:codex/guest-sixteen-page-record
R0Y00:codex/aot-placed-dxr-batch
R0Y00:codex/guest-directory-selection
R0Y00:codex/gamesave-enumerate-read
R0Y00:codex/readme-archive-to-pixels
R0Y00:codex/pe-placed-view-draw
R0Y00:codex/archive-directory-gpu
R0Y00:codex/slot133-dxr-build
R0Y00:codex/materialize-placed-vertex-view
R0Y00:codex/dstorage-directory-offsets
R0Y00:codex/xg-nine-bc-copy
R0Y00:codex/xg-slot10-bc64-arrays
R0Y00:codex/dxr-guest-address-readback
R0Y00:codex/gpu-va-high-bits
R0Y00:codex/clarify-diagnostic-startup-scope
R0Y00:codex/xg-six-levels
R0Y00:codex/typed-derived-blend
R0Y00:codex/english-legal-text-progress
R0Y00:codex/address-bc-4ks
R0Y00:codex/dstorage-bounded-file-read
R0Y00:codex/wide-srv-offsets-menu
R0Y00:codex/startup-memory-srv
R0Y00:codex/bound-view-tail
R0Y00:codex/language-selector-readback
R0Y00:codex/setup-menu-progress
R0Y00:codex/cpu-plane-refresh
R0Y00:codex/startup-ubyte-vertex
R0Y00:codex/presenter-window-selection
R0Y00:codex/startup-uniform-buffer-lane
R0Y00:codex/intro-loop-timing
R0Y00:codex/static-clzero-loops
R0Y00:codex/document-rtx-intro
R0Y00:codex/startup-insertq
R0Y00:codex/nv12-startup-texture
R0Y00:codex/stream-stage-draw
R0Y00:codex/startup-null-uav-format
R0Y00:codex/startup-draw-capture
R0Y00:codex/shorten-windows-checks
R0Y00:codex/dstorage-rfc1950
R0Y00:codex/startup-dump-fence
R0Y00:codex/pr1135-review-base
R0Y00:codex/startup-stream-requests
R0Y00:codex/startup-chroma-view
R0Y00:codex/readme-graphics-pipeline-streams
R0Y00:codex/static-crt-free-tls
R0Y00:codex/arc-140t-rtx-5080-laptop-gpu-reports
R0Y00:codex/main-startup-progress-entry
R0Y00:codex/signed-dxil-catalogue
R0Y00:codex/reloc-free-preferred-base
R0Y00:codex/quad-dpp-bit-mask
R0Y00:codex/raw-srv-bounds
R0Y00:codex/rx9070-31044-hardware-report
R0Y00:codex/gpu-page-source-provenance
R0Y00:codex/runtime-placeholder-interior
R0Y00:codex/gpu-copy-queue-tile-order
R0Y00:codex/pe-pin-external-providers
R0Y00:codex/xmem-placeholder-reservations
R0Y00:codex/xmem-shared-physical-pages
R0Y00:codex/pe-package-startup
R0Y00:codex/xmem-tools-memory-query
R0Y00:codex/cpu-stack-output-import
R0Y00:codex/pe-load-security-cookie
R0Y00:codex/record-three-bvh-retests
R0Y00:codex/cpu-rbp-frame-anchor
R0Y00:codex/xmem-default-startup
R0Y00:codex/record-rtx-3050-ti-9597
R0Y00:codex/docs-readme-start-here
R0Y00:codex/check-compute-mad24-truncation
R0Y00:codex/docs-discord-community
R0Y00:codex/bound-rcx-branch-mutants
R0Y00:codex/rtx5060ti-bvh-62114
R0Y00:codex/837-neutral-readme-disclaimer
R0Y00:codex/record-rtx-3070-ti
R0Y00:codex/title-neutral-public-wording
R0Y00:codex/exe-shadow-frame-submissions
R0Y00:codex/exe-shadow-runtime-chain
R0Y00:codex/readme-polish
R0Y00:codex/gpu-coverage-nov23
R0Y00:codex/spirv-minlod
R0Y00:codex/shadow-shim-device
R0Y00:codex/exe-two-shadow-frames
R0Y00:codex/shim-dispatch-cleanup
R0Y00:codex/fix-spirv-cache-probe
R0Y00:codex/sampler-use
R0Y00:codex/ballot-bit-extract
R0Y00:codex/packed-fma-release
R0Y00:codex/cpu-packed-fma-o2
R0Y00:codex/publish-coverage-dashboard
R0Y00:codex/mesh-cbv-binding-order
R0Y00:codex/spirv-window-fixture
R0Y00:codex/ps-e32-float-uint
R0Y00:codex/ps-cbuffer-reads
R0Y00:codex/fixed-profile-rescan
R0Y00:codex/shim-compute-integration
R0Y00:codex/readme-visible-coverage
R0Y00:codex/readme-research-navigation
R0Y00:codex/integrate-pr-256
R0Y00:codex/indexed-mesh
R0Y00:codex/sampled-coverage
R0Y00:codex/first-ms
R0Y00:codex/dual-ps
R0Y00:codex/ps-attribute
R0Y00:codex/compute-first
R0Y00:codex/ps-export
R0Y00:codex/readme-research-status
R0Y00:codex/ps-layout
R0Y00:codex/blast-window
R0Y00:codex/chart-caption
R0Y00:codex/reviewer-roles
R0Y00:codex/blast-aot
R0Y00:codex/archive-program
R0Y00:codex/crc-stream-program
R0Y00:codex/exe-image-data-chain
R0Y00:codex/local-cpu-fixture-coverage
R0Y00:codex/exe-bound-frame-chain
R0Y00:codex/exe-mapped-comparison
R0Y00:codex/contribution-dependencies
R0Y00:codex/exe-entry-aot
R0Y00:codex/bink-frame-heap-integration
R0Y00:docs/hardware-seven-reports
R0Y00:codex/bink-custom-heap
R0Y00:codex/bink-heap-callers
R0Y00:codex/discussions-entry-points
R0Y00:codex/gpu-community-batch-64
R0Y00:codex/ffx-scratch-writers
R0Y00:codex/generic-project-documentation
R0Y00:codex/ffx-dispatch-rcas
R0Y00:codex/four-windows-gpu-reports
R0Y00:codex/title-neutral-project-wording
R0Y00:codex/community-coverage-provenance
R0Y00:codex/rcas-packed-texels
R0Y00:codex/community-gpu-retests
R0Y00:codex/community-build-and-gpu-reports
R0Y00:codex/ffx-provider-loop
R0Y00:codex/ffx-recurrent-views
R0Y00:codex/ffx-recurrent-resource
R0Y00:codex/amd-wave64-reports
R0Y00:codex/ffx-backend-slots
R0Y00:codex/upscaler-device-init
R0Y00:codex/ffx-context-lifecycle
R0Y00:codex/ffx-version-query
R0Y00:codex/ffx-provider-contract
R0Y00:codex/typed-object-callback
R0Y00:codex/cpu-ordinal-import
R0Y00:codex/chained-cpu-ranges
R0Y00:codex/cpu-import-call
R0Y00:codex/cpu-direct-call
R0Y00:codex/cpu-leaf-aot
R0Y00:codex/community-project-status
R0Y00:codex/script-state-path-replay
R0Y00:codex/script-state-evidence
R0Y00:codex/bc7-resident-tail
R0Y00:codex/bcpack-mip-tail
R0Y00:codex/bc7-texture-draw
R0Y00:codex/asset-ranges
R0Y00:codex/pixel-constants
R0Y00:codex/pixel-aot
R0Y00:codex/pre-exe-workloads
R0Y00:codex/root-signature-device-coverage
R0Y00:engineering/packed-bvh-leaves
R0Y00:engineering/bvh-build-and-update
R0Y00:engineering/intake-root-roundtrip
R0Y00:community/gpu-check-release
R0Y00:community/english-contributor-entry
No reviewers
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!3352
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3352"
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 Not-Saii on 2026-11-28T12:12:53Z.
Change
Refs #3237 (stage 2).
Direct compute runs a guest wave64 as two host wave32s that exchange mask words at group barriers (split halves). D3D12 defines a group barrier only when every thread of the group reaches it. Guest waves that branch apart reach a different number of those barriers, so
translate_programrefused a group of more than one guest wave that has a conditional branch together with a mask-writing compare, a carry-out, a lane read, an LDS access or ans_barrier:On
main, a request with the packed state block already avoids that refusal through virtual waves (94d2803f). Every other such group now compiles as lane pairs. One host wave32 runs one guest wave64, host lane j carries guest lanes j and j + 32, and the module declaresnumthreads(guest threads / 2, 1, 1)with wave size 32. Virtual waves and requests that did not hit that refusal compile to the same bytes as before.In the emitter (
src/gfx1013_direct_compute.inl):upper_half), and each emission uses it as a constant.v_readlane_b32,v_readfirstlane_b32and the thread ids.2c8a38be(3167ecb0before the rebase), added after the WARP result in the comments.s_endpgmwithout passing ans_barrier, a wave could end or skip the barrier while the others wait at it. Such a program gets one barrier site in a loop. A wave runs to its nexts_barrieror tos_endpgm, stores where to resume and goes to the site, where lane 0 publishes whether the wave has ended and the group meets. A wave that has ended keeps returning until all of them have, so every thread passes the same barrier the same number of times. A barrier that every wave passes stays a plain barrier.Two new refusals:
lane-pair layout: s_barrier inside a guest looplane-pair layout: one scalar register written for both lane sets. No handler does this today. The check turns a wrong assumption about a handler into a refusal, where it would otherwise lose one of the two writes.The prototype's layout switch (an environment variable) and its timing pass in
native_store_replayare not in this change. The layout depends on the request alone.Layout, fixture and limits are written up in
docs/experiments/native-wave64-lane-pairs.md.Verification
Build under test:
2c8a38be(two commits onmaineeb52277), Debug. Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088, 32-lane waves), DXC from Windows SDK 10.0.26100. The debug layer was not enabled. Every result in this section was taken again after the rebase ontoeeb52277, unless it says otherwise.Result: 2 of 2 passed, no skips.
native_wave64_lane_pairs_controls(no GPU): the nine 128-thread programs declare 64 host threads and no exchange memory,lds_same_addresshas a ballot per lane set before each LDS access,mask_readlanewith 64 threads keeps its exchange memory, onlyexit_before_barrierhas the barrier loop, and the barrier inside a loop is refused.native_wave64_lane_pairs_hardware: 17 runs matched their CPU model over all 2,064 output words, guards included. Nine programs ran as lane pairs (128 threads),exit_before_barrierwith 256 threads, and seven of the nine as split halves (64 threads). The other two are not asserted for split halves, see below. All 16 negative controls reported a mismatch. Three of them:mask_readlanewith the two lane sets exchanged: word 264, got0xffffffff, expected0x00001fff;atomic_countwithout the high lane set: word 8, got0x69696999, expected0x69696979;exit_before_barrierwith wave 0 not ended: word 8, got0x69696969, expected0x0000c005.tests/native_direct_container_check.pyhad two cases that expected the old refusal,multi-wave64-exchange-branchandwave64-divergent-carry. They now expect a module with 64 host threads and no exchange memory, and the convergedtwo-wave64case must keep 128 threads and its exchange memory.Result: 1 of 1 passed. Run against an unmodified compiler built from
eeb52277, the same test file fails at the first of the two cases with the old refusal.Of the 91 CPU-only tests that use
compile_dxil, 90 pass, with no skips. They are the registered tests whose command runscompile_dxil, that are not_warpor_hardwaretests, and that need no executable beyondcompile_dxilandnative_store_replay. The one failure,startup_compute_half_buffer_uav_controls("unsupported startup runtime manifest bindings: UAV kind unknown"), fails the same way on the unmodifiedeeb52277build.Before and after, with that unmodified compiler and a local script that is not in the branch. The 68 requests are the fixture programs with 64 and 128 threads, the slot 67 wave-size program, three straight-line programs of 441, 296 and 625 instructions with 64, 128 and 256 threads, and the 24 fixture requests again with the packed state block.
maineeb52277mainproduces are byte-identical in this branch. They include the 24 packed-state requests, whichmaincompiles as virtual waves.mainall carry the old message. This branch compiles 12 of them and refuses the barrier inside a loop.App-local WARP 1.0.22 (
d3d10warp.dll1.0.22.0.20261027.1 beside the replay executable, in-box D3D12 runtime), with the fixture's requests replayed by a local script that passes--direct-warp: all 17 asserted readbacks matched in 12 of 12 runs. Before the second commitlds_divergentas lane pairs differed in every run, in the LDS read before thes_barrier, which is what the second commit fixes. The comments have the details and an independent run of the first commit on an RTX 4070 and on WARP 1.0.22.python -B tests/docs_links_check.pypasses (156 files, 680 links).Not run:
_warpand_hardwaretests of the rest of the suite. The fixture has no--direct-warpmode, and the in-box WARP has 4-lane waves (docs/experiments/native-compute-warp.md).The pull request check uses the
prpreset, which does not buildcompile_dxilor select anynative_*test, so a green check there does not exercise this change. The full suite runs onmainand on a manual run of the workflow. A manual run of the first commit on my fork was cut off by the 30-minute job limit; the comments have its partial results.Evidence and follow-up
The fixture programs are original. They were assembled with LLVM 15.0.7 (
clang -cc1as, gfx1013,+wavefrontsize64) and are embedded as words with the assembly in comments, like the othertests/native_*_check.pyfiles.Assumptions and gaps:
v_cmpx, DPP row operations,v_permlanex16_b32, both lane reads, LDS reads and writes, raw buffer stores and one buffer atomic. Buffer loads, typed stores, image operations (implicit derivatives included), 16-bit and packed operations go through the same per-lane handlers, each emitted in its lower-half and its upper-half form, but were not run in a lane-pair module.main's wave32 path has no such ballot. A wave32 program in which a lane reads the LDS word another lane wrote one instruction earlier differs on WARP 1.0.22, with a module that is byte-identical to the unmodified compiler's. That path is not changed here.lds_same_addressfixes the host order: lane j + 32 wins. Which lane the guest hardware keeps is not established, so the result is asserted for lane pairs only.readfirstlane_emptyis not asserted for split halves. That lowering returns lane 32, not lane 0, for an empty EXEC. It is a separate defect onmain, fixed in #3354, which is stacked on this branch.s_barrier.exit_before_barriershows that the loop works on this driver. It does not show that an earlyretwould have failed.Work someone else can pick up: a run of the second commit on another adapter, the same ballot for the wave32 path, and a lane-pair fixture for buffer loads or image operations.
Maintainers can push to this branch.
Checklist
AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T12:35:40Z.
Independent run of
c754ab997d6c1b5c388ba02e372f7000f46267b2on052abe6f.RTX 4070: Debug and Release each passed all three selected tests with no skips. The full replay matched all 17 expected readbacks (2,064 words each), including
exit_before_barrier, and all 16 negative controls found a mismatch. Windows 26300.10075, RTX 407010de:2786driver32.0.16.2124, DXC 1.9.2602.17. The replay did not instrument the debug layer.App-local WARP 1.0.22: I used the same requests and CPU models, with the replay command's
--directchanged to--direct-warpin a scratch runner. In each configuration, 14 of 17 expected readbacks matched and three differed.lds_divergent0x00000000instead of0x00007f05.dpp_permlane_divergentdpp_permlane_divergentI repeated just the 128-thread LDS request 12 times per configuration with the same cached shader. Every run differed in column 0, the reversed-lane LDS read before the join barrier. Column 1, the read after that barrier, matched in all 24 runs. The 64-thread split-halves LDS case and the 256-thread early-exit/barrier case both matched. This isolates the failing output to the pre-barrier LDS read on WARP. The cause of the backend difference is still unverified.
WARP used
d3d10warp.dll1.0.22.0.20261027.1 beside the replay executable. These were standalone native replay tests. I used Codex for the scratch runner and ran the verification locally.Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T13:20:45Z.
@RonLogic thanks for the independent run. The WARP result on
lds_divergentis a real gap, and I have pushed a second commit for it:3167ecb0, on top ofc754ab99, with no force push, so your run still describes the first commit.What was wrong. A guest lane may read an LDS word that another lane of its wave wrote one instruction earlier. Split halves order the two with the group barrier before each LDS access. A lane-pair module has no barrier there, and nothing else made the host bring all lanes of the wave to the same point before the read. Both GPUs matched anyway. WARP 1.0.22 did not, and my reading is that it runs a wave's lanes in smaller batches between wave operations.
The change. Each LDS access of a lane-pair module now takes its lane predicate from a
WaveActiveBallotof its own, because a wave operation needs every lane of the wave at that point. D3D12 does not promise that this orders memory accesses. It is what WARP 1.0.22 did in the runs below.WARP 1.0.22 here.
d3d10warp.dll1.0.22.0.20261027.1 beside the replay executable, in-box D3D12 runtime, the fixture's requests replayed by a local script with--direct-warp.c754ab993167ecb0lds_divergent, 128 threads, lane pairss_barrier(word 264, got0x00000000, expected0x00007f05)That is your LDS result, reproduced and then gone.
The same gap exists on
main's wave32 path. A wave32 program with 32 threads, in which each lane reads the word that lane 31 − l wrote one instruction earlier, differed on WARP 1.0.22 in every one of 27 runs (word 8, got0x00000000, expected0x00001f05). Its module is byte-identical to the one an unmodified compiler built from052abe6fproduces. With one compare placed between the write and the read, the same program matched in 12 of 12 runs. So this is not specific to lane pairs. That path is not changed here, and it needs a change of its own, because it alters modules that compile today.dpp_permlane_divergent. I could not reproduce it: it matched here on WARP 1.0.22 under both layouts in every run. In your data it also fails under split halves, so it does not come from this change. I don't know the cause.3167ecb0on this machine. Windows 11 build 26300, RTX 4090 (driver 32.0.16.1088), Debug, debug layer not enabled.native_wave64_lane_pairs_controlsandnative_wave64_lane_pairs_hardwarepass: 17 readbacks match and all 16 negative controls report a mismatch.lds_same_addressmust have a ballot per lane set before each of its two LDS instructions, five in all. A build without the change has one and fails the check.compile_dxilpass, with no skips. They are the registered tests whose command runscompile_dxil, that are not_warpor_hardwaretests, and that need no executable beyondcompile_dxilandnative_store_replay.native_direct_containeris one of them.052abe6f, all 31 modules it produces over the 44 requests are still byte-identical.Your RTX 4070 run covers the first commit. The second commit has run on the RTX 4090 and on WARP 1.0.22 only.
The full workflow on my fork, first commit. A manual run of "Windows checks" on
c754ab99, next to a run onmainat052abe6f. The branch run is incomplete: both of its Windows jobs were cut off by the 30-minute job limit.main052abe6fc754ab99pixel_aot_warphit its 60-second limit in the branch's /O2 job. It passed in the branch's Debug job at 57 seconds and takes 32 seconds on the baseline's runners. The tests common to both runs took about 1.7 times longer on the branch's runners, so I read the timeout as runner speed. One run does not prove that.mainisshader_compile_lds_request_cli_check, which comparesrunneradminwithRUNNER~1in a temporary path.compile_dxil, which is why I ran the 91 locally.Runs: branch,
mainbaseline.Still open. The wave32 gap above, the cause of your
dpp_permlane_divergentdifference, a second adapter for3167ecb0, the debug layer and a dispatch through the stand-in. I have updated the description anddocs/experiments/native-wave64-lane-pairs.mdto match.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T14:22:31Z.
@R0Y00 this branch now conflicts with
main(f5a6f6ba), and I'd like your call before I rebase, because the conflict is between two designs and not a mechanical one.94d2803fadded virtual waves at the gate this pull request replaces. As I readtranslate_programonmain:virtual_wavesand no longer hits "multi-wave64 exchange requires converged group control flow";The conflicts are one region at the gate in
src/gfx1013_compute_native.cppand seven insrc/gfx1013_direct_compute.inl(register storage,initializeand the main loop). I have read those regions, not the whole virtual-wave mechanism.Which of these do you want?
mainstill refuses, with virtual waves left exactly as they are for packed-state requests.With option 1 I would rebase this branch and then the two stacked on it, #3354 and #3356, and rerun the fixture on the RTX 4090 and on WARP 1.0.22. Until you answer I will leave all three as they are.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T20:05:18Z.
@R0Y00 I went ahead with option 1 from my question above. If you prefer another way, say so and I'll redo it.
Rebased onto
maineeb52277(force push): this branch is now0864239e,2c8a38be; #3354 is71627ab2and #3356 is55d0b448,1d03b1fe, both on top of it.The gate in
src/gfx1013_compute_native.cpp:The two never apply to the same request. In the emitter the per-set loop now carries the virtual-wave yields at branches,
s_endpgmands_barrier, andinitializeruns wheremainnow calls it.Taken again on
2c8a38be(RTX 4090, Debug, debug layer off):native_wave64_lane_pairs_controls,native_wave64_lane_pairs_hardwareandnative_direct_containerpass. 17 readbacks match and all 16 negative controls report a mismatch.eeb52277, 68 requests, including the 24 fixture requests again with the packed state block: all 55 modulesmainproduces are byte-identical here, the packed-state ones (virtual waves) included.compile_dxiltests pass.startup_compute_half_buffer_uav_controlsfails here and on the unmodifiedeeb52277build alike ("UAV kind unknown").The description is updated. The stacked pull requests were re-run as well; their descriptions have the results.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-28T20:59:03Z.
Review: APPROVED
LGTM — clean lane-pair layout for divergent multi-wave wave64 groups.
Replaces the "converged group control flow" refusal with the lane-pair layout: one host wave32 per guest wave64, host lane j carrying guest lanes j and j+32. Vector instructions emit once per lane set with VGPR duplication; scalar writes are held until both sets read operands. The WaveActiveBallot before LDS accesses ensures in-order semantics on WARP. The barrier loop handles s_barrier when waves can branch apart (waveDone shared memory + switch dispatch). Empty EXEC returns lane 0 (handled by #3354).
Test fixture exercises 9 programs across 128/64-thread groups with full negative controls.
Ready to land.
Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-28T21:57:36Z.
Review: APPROVED
LGTM — clean lane-pair layout for divergent multi-wave wave64 groups.
Replaces the "converged group control flow" refusal with the lane-pair layout: one host wave32 per guest wave64, host lane j carrying guest lanes j and j+32. Vector instructions emit once per lane set with VGPR duplication; scalar writes are held until both sets read operands. The WaveActiveBallot before LDS accesses ensures in-order semantics on WARP. The barrier loop handles s_barrier when waves can branch apart (waveDone shared memory + switch dispatch). Empty EXEC returns lane 0 (handled by #3354).
Test fixture exercises 9 programs across 128/64-thread groups with full negative controls.
Ready to land.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-29T01:43:48Z.
Closing.
main's virtual waves (94d2803f) already run every divergent multi-wave64 request that has the packed state block, and a census at0614f68cfound none left without it, so the lane-pair layout is not needed. Option 1 is withdrawn. The split-halvesv_readfirstlane_b32fix in #3354 will move tomainon its own. The lane-pair version stays reachable as2c8a38be.AI-assisted.
Pull request closed