gpu_alias_lookup_writes_hardware: array atomics probe reads 256 per buffer on RX 9070 XT #363
Open
opened 2026-11-21 23:37:51 +00:00 by denn0x
·
35 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#363
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 denn0x on 2026-11-21T23:37:51Z.
Observed
At
9bdbb20(main, after #332),gpu_alias_lookup_writes_hardwarefails on an AMD Radeon RX 9070 XT. The array-atomics probe reads 256 in every buffer instead of 64. This is the same signaturedocs/experiments.mdrecords for the Windows 10 in-box WARP 10.0.19041. The fixture itself is exact on this adapter.gpu_alias_lookup_writes_warp(WARP 10.0.26100.9818) passes.The result is the same in 3 of 3 runs. Environment: Windows 11 build 26200, MSVC 19.50.35720, Windows SDK 10.0.26100.0, DXC 1.8.2502.11 (
cs_6_0), D3D12 debug layer enabled.Probe variants (local only, not committed)
I replaced only the probe line in
ProbeArrayAtomics(tests/gpu_alias_writes.hlsl) and rebuiltoffscreen_check. The harness, the 4 committed 4-byte buffers and the expected 64 per buffer are unchanged.Aliases[NonUniformResourceIndex(id % rangeCount)].InterlockedAdd(0, 1, previous)(current)NonUniformResourceIndex((id / 2) % rangeCount)(lane pairs share an index)NonUniformResourceIndex((id / 64) % rangeCount)(one index per wave)Aliases[0]for every threadStore(0, id + 1)toAliases[NonUniformResourceIndex(id)]forid < 4first = WaveReadLaneFirst(want), the atomic onAliases[first]whenfirst == want, loopThe buffers are distinct and their descriptors resolve correctly: the store and index-0 rows are exact. The error appears only when the atomic's resource index varies within a wave. Each buffer then gains the whole wave's lane count (64 lanes × 4 waves = 256), and the manual waterfall is exact. One interpretation: this driver applies the wave-level atomic for every lane in each iteration of its non-uniform waterfall, not only for the lanes whose index matches. That is a hypothesis; I have not inspected the ISA.
Question
The probe already names this as an adapter defect. Should the RX 9070 XT measurement be added next to the WARP 10.0.19041 note in
docs/experiments.md, with the test still failing here by design? Or would you rather have the title-address write path use an explicitWaveReadLaneFirstwaterfall, which is exact on both adapters above? I can open either PR.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-21T23:46:42Z.
Second RDNA 4 adapter data point: the RX 9060 XT shows the same array-atomics signature as the RX 9070 XT report, on a newer driver.
9bdbb20(main)1002, device7590), driver32.0.32029.2010; NVIDIA GeForce RTX 5060 Ti (vendor10de, device2d04), driver32.0.16.2124; in-box WARP10.0.26100.9711. MSVC 14.44.35207, Windows SDK 10.0.26100.0, CMake 4.4.3. Debug layer unavailable on this machine (Graphics Tools not installed): every run reportsdebug_layer=unavailable, so no debug diagnostics are claimed.array_atomicsactual (expected 64)256,256,256,25664,64,64,6464,64,64,64On the RX 9060 XT the rest of the fixture is exact, matching the 9070 XT report:
add_sub … mismatches=0,other results=1047 words=147454 mismatches=0,ranges=4 records=1047 stores=14 contenders=256 sum=128416 min=-1250 max=1241.62 misses=9 words_checked=147456 mismatches=0.This covers a second RDNA 4 SKU (device
7590) and a second driver (32.0.32029.2010vs the report's32.0.32015.7029): the inexact per-lane atomic throughNonUniformResourceIndexis not specific to the 9070 XT or that driver version. It does not inspect the ISA, so the report's waterfall hypothesis remains a hypothesis; the manual-waterfall and per-wave-index variants in the report were not rerun here. The docs-note vs explicit-waterfall decision is the maintainer's; this is only the additional adapter measurement.AI-assisted; runs executed locally on the configuration above.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T23:57:40Z.
@denn0x @abilliontokens, please go ahead with a measurement note in
docs/experiments.mdlinking the RX 9070 XT report and the RX 9060 XT report. At9bdbb20, each adapter returned256,256,256,256on all three direct-probe runs, against64,64,64,64expected. On both adapters the original title-address fixture recorded zero mismatches in both groups (add/sub and all other checks). The direct probe should continue to fail the test under #332.The explicit waterfall returned
64,64,64,64on the RX 9070 XT. @abilliontokens, if you run the same variant on the RX 9060 XT, the direct and waterfall readbacks, shader revision and driver version would make a useful independent comparison here. The documentation can proceed now. The cause remains open. Please keep the existing write path and CI coverage for this change.Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-22T00:00:26Z.
Opened #383 with the measurement note (documentation only; the probe, write path and CI coverage are unchanged).
Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-22T00:46:27Z.
I ran the same source-built probe on a GTX 1060 6 GB and the in-box Windows 10 WARP using commit
65492448c51361dc81a667d34ccf3d103d938801. The host was Windows 10 22H2 build19045.6456, with MSVC19.44.35230.0and Windows SDK10.0.26100.0DXC. The D3D12 debug layer was enabled on both backends.32.0.15.609464,64,64,64in 3/3 runs10.0.19041.5794256,256,256,256in 3/3 runsBoth backends matched all 1,047 per-record results and the other 147,454 words, with zero debug errors or warnings. The GTX 1060 adds a Pascal hardware control. The WARP run reproduces the Windows 10 behavior already documented in
docs/experiments.md.Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-22T01:36:41Z.
Folding the GTX 1060 / in-box Win10 WARP measurements (@Jess-Doit) into the merged measurement note, per the measurement-only direction above — docs only, no probe or write-path change. @denn0x @Jess-Doit shout if you'd rather fold these in yourselves. AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-22T01:37:25Z.
PR with the folded-in measurements: R0Y00/Xbox2Windows#427. AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-22T01:56:12Z.
I disassembled the array-atomics probe to check the compiler side of this report. No GPU is needed for this. The DXIL is the same on two DXC releases: the atomic's handle is created with
nonUniformIndex = true.Source:
ProbeArrayAtomicsintests/gpu_alias_writes.hlslatac48a50(main), with the same arguments CMake uses (-T cs_6_0 -E ProbeArrayAtomics -I src). I also compiledcs_6_6to cover thecreateHandleFromBindingpath.Compilers:
dxc.exe:dxcompiler.dll 1.9.2602.17 (21d28f727)v1.8.2502(dxc_2025_02_20.zip, SHA-25670b1913a1bfce4a3e1a5311d16246f4ecdf3a3e613abec8aa529e57668426f85, Microsoft Authenticode signature valid):dxcompiler.dll 1.8.2502.8 (b4711839e). The report lists 1.8.2502.11. I could not find that build among the GitHub releases, so this is the nearest published one.cs_6_0, identical on 1.8.2502.8 and 1.9.2602.17:cs_6_6, identical on both:A full diff of the two
cs_6_0disassemblies differs only in the compiler identification (dxcoob 1.8.2502.8vs1.9.2602.17) and the validator version metadata (1.8vs1.9). As a control, the same source withNonUniformResourceIndex(...)removed compiles toi1 falseon both compilers. That shows the flag comes from the intrinsic.Conclusion (cautious): DXC marks the index non-uniform in both versions, so the problem is likely downstream of DXIL, in the driver's shader compiler. That fits the variants in the report: the bad result appears only when the index varies within a wave, and the explicit
WaveReadLaneFirstwaterfall is exact. It also fits the existing Windows 10 WARP 10.0.19041 note: a different consumer of the same kind of DXIL shows the same signature, while current WARP and the NVIDIA adapters are exact. I have not looked at the RDNA 4 ISA, so I can't confirm where the driver loses the per-lane loop. Someone with an RX 9070 XT or 9060 XT could capture the ISA of this shader, for example with Radeon GPU Analyzer, and check whether a non-uniform resource loop is emitted around thebuffer_atomic_add.Separately, I've prepared a small CTest check,
array_atomics_dxil+array_atomics_dxil_controls. It needs DXC only, so it runs in the Windows CI. It disassembles the builtProbeArrayAtomics.csoand freshcs_6_0/cs_6_6compiles, and fails if the flag disappears. It would not fix or detect the RDNA 4 failure itself; it only keeps a compiler or probe change from confounding future measurements. I'll open it as a PR only if that is wanted. It leaves the probe, the write path and the existing tests unchanged.AI-assisted: run and prepared with the support of Roan System; reviewed before posting.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T02:27:40Z.
@roansystemlabs, please open a focused PR for the DXC regression. In the existing Windows job, inspect the actual
cs_6_0ProbeArrayAtomics.csoused by the device test. Trace the atomic’s resource handle back to its creation and verify that it uses the probe’s dynamic UAV index withnonUniformIndex=true. Compile a synthetic control with the source intrinsic removed and show that the same check detectsfalse. Both cases can share a CTest. Follow the handle and index through the instructions so that SSA renumbering or unrelated disassembly changes do not break the check.Please record the DXC version used for each measurement, distinguishing
1.8.2502.8from the original report’s1.8.2502.11. Keepcs_6_6and cross-version runs as manual diagnostics while the built probe targetscs_6_0. A pass establishes that the compiled probe retained the flag. #332 continues to check the actual per-device counts and fail on incorrect results.Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-22T03:10:21Z.
Another NVIDIA data point for the array-atomics probe (no failure here, for comparison with the RDNA 4 reports).
c2fc84c(main), dev preset, debug layer enabledctest --preset dev --no-tests=error -R '^gpu_alias_lookup_writes_(hardware|warp)$' -V: both passed.This comment is AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-22T02:30:09Z.
Independent comparison for the RX 9060 XT measurement, per the request in R0Y00's comment: denn0x's manual
WaveReadLaneFirstwaterfall probe variant run on the RX 9060 XT, direct and waterfall readbacks, shader revision and driver version.Environment (measured)
dev.1002, device7590, driver32.0.32029.2010.10de, device2d04, driver32.0.16.2124(control).dxc.exe—dxcompiler.dll 1.8.2502.11 (239921522),dxil.dll 1.8.2502.11;-T cs_6_0as CMake builds it. Same compiler line as the issue report.debug_layer=unavailableon every run (Graphics Tools not installed), so no debug-layer diagnostics are claimed.Commit measured:
97016d9(origin/mainhead at measurement time).git diff 9bdbb20 97016d9ontests/gpu_alias_writes.hlsl,tests/gpu_alias_lookup.cppandtests/offscreen_check.cppis empty, so the probe and harness are byte-identical to the9bdbb20reports. The waterfall edit below was local and uncommitted, replacing only theProbeArrayAtomicsbody, exactly the scope denn0x described; the harness, buffers and expected 64 per buffer are unchanged.Readbacks (3 runs per cell, identical in every run)
32.0.32029.2010256,256,256,256— test fails by design (probe names the adapter defect)64,64,64,64— whole test passes32.0.16.212464,64,64,6464,64,64,6464,64,64,6464,64,64,64On the RX 9060 XT with the waterfall probe the rest of the fixture is also exact in all three runs, matching the direct-probe runs:
add_sub … mismatches=0,other results=1047 words=147454 mismatches=0,ranges=4 records=1047 … words_checked=147456 mismatches=0.The waterfall is exact on the RX 9060 XT. That independently confirms denn0x's RX 9070 XT waterfall row on the second RDNA 4 SKU (device
7590, driver32.0.32029.2010): the per-laneInterlockedAddthroughNonUniformResourceIndexreads 256 per buffer, while the explicit waterfall reads exactly 64, and the two NVIDIA/WARP controls stay exact under both probes.Shader revision
tests/gpu_alias_writes.hlsl): SHA-2566f693a7024d5d7ae60bcfa1679cfa3aa176ae306e49a818d9a4cec56fb33c162.eea1222ea327e8c769654189714d821fc62b470be3f176a5711d5f8e1b14adfc.dxc -dumpbinof the waterfall'sProbeArrayAtomics.cso: the atomic runs on a handle created withnonUniformIndex = i1 false(dx.op.createHandle(i32 57, i8 1, …, i1 false)), alongsidedx.op.waveReadLaneFirst— i.e. the loop hands the driver a wave-uniform index per iteration, which is the mechanism denn0x's variant table and @roansystemlabs' DXIL note point at. That is the compiled shape, not a driver-ISA claim; the cause of the direct probe's defect remains open as in the report.Waterfall HLSL used
denn0x described the variant but did not post exact HLSL, so this is a faithful reconstruction from his description ("
first = WaveReadLaneFirst(want), the atomic onAliases[first]whenfirst == want, loop"). Body ofProbeArrayAtomics(everything above it intests/gpu_alias_writes.hlslunchanged):Served lanes leave the loop, so each iteration reads the value of the lowest-index still-active lane; lanes whose
wantdiffers keep looping until their index comes first. That is a property of this code, and the readbacks above are what was measured; no ISA was inspected and nothing here is inferred about the driver beyond the recorded numbers.Per the direction above, this is measurement only — no probe, write-path, docs or CI change, nothing committed or pushed.
AI-assisted; runs executed locally on the configuration above.
Imported from R0Y00/Xbox2Windows. Originally posted by marquezinii on 2026-11-22T07:43:30Z.
NVIDIA Blackwell data point for the array-atomics probe (no failure, for comparison with the RDNA 4 reports).
0f6a757(main), dev preset, debug layer unavailable (Graphics Tools not installed)ctest --preset dev -R gpu_alias_lookup_writes_hardware -VPassed in 0.72 s: 64 per buffer, not 256.
Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-22T08:21:46Z.
Reproduced the identical
actual=256,256,256,256array-atomics probe signature on an RDNA 3 adapter (AMD Radeon RX 7900 XTX) with the current driver.This confirms the behavior is not specific to RDNA 4 (RX 9070 XT / RX 9060 XT), but also present on RDNA 3 when executing divergent UAV-array atomic operations through
NonUniformResourceIndex.Environment
185b9d6c(currentmain)0x1002, device0x744c)32.0.32029.2010Command
Observed Output
Observation
actual=256,256,256,256.WriteTitleAddresses) succeeds with 0 mismatches across all 1,047 records and 147,454 checked words, with 0 D3D12 debug warnings or errors.Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T18:45:33Z.
Independent RX 9070 XT retest on driver
32.0.32029.2010atf1f95cf62ea873f0b32fbe9ae1a629151b6e382a(main). AI-assisted report, tests run locally from unmodified source.Windows 11 25H2 x64 build
26200.9974, MSVC19.44.35230, Windows SDK10.0.26100, DXC1.8.2502.8. Both backends reporteddebug_layer=unavailable. The renderer identified the discrete Radeon RX 9070 XT (1002:7550) and WARP (1414:008c,10.0.26100.9818).With the workspace-local toolchain loaded,
$intakePythonpointing to its Python virtual environment, and debug CRT DLLs staged alongside the built executable:The direct probe expects
64,64,64,64. The RX 9070 XT returned256,256,256,256in both runs and failed withInterlockedAdd through a per-thread index into a UAV array is not applied exactly once per thread on this adapter. WARP returned64,64,64,64and passed. The rest of the fixture had zero mismatches on both backends across 1,047 records and 147,456 words. There were zero capability skips. This retest used the committed direct probe.Imported from R0Y00/Xbox2Windows. Originally posted by potatoeking5150-commits on 2026-11-22T22:22:11Z.
Additional AMD GPU test result: Radeon RX 6500 (RDNA 2)
I tested
gpu_alias_lookup_writes_hardwareon an AMD Radeon RX 6500 under Windows 11.System details
1002743f32.0.21045.29003Test results
I ran the test three consecutive times. All three runs produced identical results:
The remaining fixture checks passed:
All three runs returned exit code
1due to the atomic probe result.This appears consistent with the previously documented behavior on some AMD RDNA 3 and RDNA 4 adapters. This test adds an RDNA 2 GPU to the observed results.
The main alias lookup write fixture comparisons completed with zero mismatches on all three runs. I have not established the underlying cause of the atomic probe discrepancy.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T22:58:22Z.
Thanks for the three RX 6500 runs. This adds an RDNA 2 observation at device 743f, driver 32.0.21045.29003 and Windows build 26300: the direct probe returned 256 in each of four slots (expected 64), while the original alias-write fixture reported zero mismatches. Please add the source commit or package tag when convenient. The probe remains a failure and the issue stays open. The new result does not establish a cause.
Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-22T23:58:18Z.
Intel UHD Graphics: a different signature (
256,192,128,64), and probe variants that decode itAt
787ace7,gpu_alias_lookup_writes_hardwarefails on an Intel(R) UHD Graphics (8086:468B, driver32.0.101.7026). The four buffers do not all read 256 as on the AMD adapters above. They form a staircase:The result was the same in 3 of 3 serial runs of
ctest --preset dev --no-tests=error -R '^gpu_alias_lookup_writes_hardware$' -j 1 -VwithXBOX2WINDOWS_ADAPTER=Intel, and in 4 direct runs of the renderer. On the same host, the NVIDIA GeForce RTX 3050 6GB Laptop GPU (10DE:25EC, driver32.0.16.2114) and WARP10.0.26100.10068read64,64,64,64.tests/gpu_alias_writes.hlslandtests/gpu_alias_lookup.cppare unchanged on currentmain.Probe variants (local only, not committed). I replaced line 74 of
tests/gpu_alias_writes.hlsl(Aliases[NonUniformResourceIndex(id % rangeCount)].InterlockedAdd(0, 1, previous);), rebuiltoffscreen_checkand ranoffscreen_check hardware --gpu-alias-lookup-writes: three times on Intel and once each on NVIDIA and WARP. After the last variant, I restored the file and rebuilt. Intel then read256,192,128,64again.256,192,128,64×364,64,64,6464,64,64,64InterlockedOr(0, 1u << (id % rangeCount), previous)15,14,12,8×31,2,4,81,2,4,8InterlockedAdd(0, 1u << (8u * (id % rangeCount)), previous)0x40404040,0x40404000,0x40400000,0x40000000×30x40,0x4000,0x400000,0x400000000x40,0x4000,0x400000,0x40000000previous256,192,128,64×364,64,64,6464,64,64,64(id / 2) % rangeCount256,192,128,64×364,64,64,6464,64,64,64(id / 16) % rangeCount64,64,64,64on the first run after the rebuild, then128,64,128,64×264,64,64,6464,64,64,64(id / 64) % rangeCount64,64,64,64×364,64,64,6464,64,64,64NonUniformResourceIndex256,192,128,64×364,64,64,6464,64,64,64WaveReadLaneFirst(want), atomic onAliases[first]whenfirst == want64,64,64,64×364,64,64,6464,64,64,64if (id == 0) Aliases[0].Store(0, WaveGetLaneCount())16324Reading. The OR and byte-lane variants show which threads reached which buffer. On Intel, buffer
jreceived exactly the threads withid % 4 >= j. Every Intel row matches one model:With 16 lanes per wave, this gives 16 + 12 + 8 + 4 adds per wave, so
256,192,128,64over 16 waves. Indices that are uniform per wave are exact: the/ 64rows, and the/ 16row on its first run. The manual loop is also exact. The two later/ 16runs (128,64,128,64) are what the same model gives if the cached shader runs 32 threads per wave. That first run took 1.8 s and the later ones 0.4 s.WaveGetLaneCountreported 16 only for its own shader, so the 32-lane part is an inference. The DXIL for the original line creates the handle withnonUniformIndexset (createHandle(..., i1 true)) followed byatomicBinOp, so any per-index loop is generated by the driver.The same model with no lane retired (every lane in every pass) gives 256 in every slot at any wave width. That is the RDNA 2/3/4 and WARP
10.0.19041signature, and it also fits the note indocs/experiments.mdthatInterlockedXoris applied an even number of times there. Under that variant of the model, the OR replacement above would read15,15,15,15. If an AMD owner can run that one line, the result would show whether those adapters fail the same way.Environment: Windows 11 build 26300.10075, MSVC 19.44.35230, SDK 10.0.26100, DXC 1.9.2602.17 (
cs_6_0). The debug layer was unavailable on all three backends (Graphics Tools not installed). This does not establish the cause; it narrows what the driver's loop does on this adapter.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by potatoeking5150-commits on 2026-11-23T02:29:19Z.
a4ade3032fpassed.
On Sun, Nov 22, 2026 at 6:58 PM romanv9 @.***> wrote:
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T03:05:16Z.
Thanks for pinning the RX 6500 run to
a4ade3032. It reproduced256,256,256,256; the Intel UHD report recorded256,192,128,64. In both reports the title-address fixture still matched. Please keep those signatures separate in any measurement update, with the direct probe marked failed in both cases. The existing DXC non-uniform-index check continues to verify the compilation condition.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T14:08:58Z.
The opt-in waterfall diagnostic landed in #793. On the reported RX 6500 (device 743f, driver 32.0.21045.29003, Windows build 26300), the direct probe returned 256 in each slot and the explicit waterfall returned 64 in each slot. The original alias-write fixture still matched. To compare the two paths from main, run
offscreen_check.exe hardware --gpu-alias-lookup-writesandoffscreen_check.exe hardware --gpu-alias-atomic-waterfallwith the adjacent shaders from that build. The direct probe retains its strict failure check. The Intel staircase is a separate observation and the cause remains open.Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-23T16:26:33Z.
Intel UHD Graphics at
c639a01: direct probe and explicit waterfall side by side, and the wave width recorded by the probe itselfThis is the Intel signature only, kept separate from the RX 6500 one. Same host as my earlier comment. The Intel driver is now 32.0.101.7092 (that comment used 32.0.101.7026). One
c639a01build, on AC power.1. The two paths from
main. Three rounds ofoffscreen_check.exe hardware --gpu-alias-lookup-writesandoffscreen_check.exe hardware --gpu-alias-atomic-waterfallfrom the build directory.XBOX2WINDOWS_ADAPTERwas set toIntelorNVIDIA, and WARP ran the same two options withwarp.8086:468B, 32.0.101.7092)10DE:25EC, 32.0.16.2114)On this Intel adapter the direct probe still fails with the staircase, and the explicit waterfall reads 64 in each slot. The alias-write fixture lines still report
mismatches=0.2. Wave width recorded in the same dispatch. Local only, not committed. I replaced line 74 of
tests/gpu_alias_writes.hlslwith these two lines, where<index>is one of the expressions in the table:The low 16 bits of each buffer still hold the count. Bits 16 and up of buffer 0 hold the OR of every wave's lane count in the dispatch, so mixed widths would show as more than one bit. For example, Intel printed
actual=1048832,192,128,64for the first row: width 16, then 256 in the low bits. The probe's own check fails on every adapter in this mode, because buffer 0 carries the width bits. For each variant I rebuilt, then ranoffscreen_check.exe hardware --gpu-alias-lookup-writesfive times on Intel (the first run directly after the rebuild) and once each on NVIDIA and WARP. Afterwards the file was restored and rebuilt, and Intel read 256,192,128,64 again.<index>id % rangeCount(the file's own index)(id / 16) % rangeCount(id / 8) % rangeCountIn my earlier comment,
(id / 16) % rangeCountwithout the width line read 64,64,64,64 on the first run after the rebuild and 128,64,128,64 after that. A run at34d03c7on driver 32.0.101.7092 repeated this: 64,64,64,64 once, then 128,64,128,64 four times. With the width line it read 64,64,64,64 in 5 of 5, at width 16 each time. So whether the earlier change came from a different wave width is still open, because the extra line may change how the shader is compiled.3. Reversed index, from that
34d03c7run, without the width line, three Intel runs each:Aliases[NonUniformResourceIndex(rangeCount - 1u - (id % rangeCount))].InterlockedAdd(0, 1, previous);Aliases[NonUniformResourceIndex(rangeCount - 1u - (id % rangeCount))].InterlockedOr(0, 1u << (id % rangeCount), previous);Reversing the index reverses the staircase: the buffer that lane 0 selects gets the most adds.
A description that reproduces every Intel count so far (not a cause). In each wave, take the buffer index of the lowest pending lane. Every pending lane adds its own operand to that buffer, then the lanes whose own index it was leave, and this repeats until no lane is pending. With 16 lanes and
id % 4that gives 16, 12, 8 and 4 adds per wave to buffers 0–3, so 256,192,128,64 over 16 waves. With(id / 16) % 4each wave holds one index, so the counts are exact. With(id / 8) % 4each wave holds two, giving 16 and 8 adds per wave and 128,64,128,64 in total. The same rule also gives the OR, byte-lane,(id / 2)and(id / 64)results from my earlier comment and both reversed variants above. I wrote down its predictions for the three width variants before this run, and they matched. I had also predicted, from the earlier change, that runs after the first would report width 32; all 15 Intel runs reported 16. At width 32 the rule gives 128,64,128,64 for(id / 16) % 4.Not covered: other Intel drivers and the debug layer (unavailable here). Environment: Windows 11 build 26300.10075; MSVC 19.44.35230 and the Windows SDK 10.0.26100 DXC 1.9.2602.17, as in my earlier runs.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:59:38Z.
Thanks for the paired Intel rerun. At driver 32.0.101.7092 the original probe still gives the 256/192/128/64 staircase in all three runs, while the repository waterfall produces 64 in each slot and the title-address fixture still matches. This is enough for a focused experimental note, with the locally instrumented width recorded separately and the AMD signature kept distinct. The strict direct probe and normal write path should stay as they are.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-23T20:48:18Z.
RX 9070 XT retest on two more AMD drivers, with the D3D12 debug layer enabled. Same signature. Data only.
1002:7550)32.0.31035.1003(two runs atd7c52d2) and32.0.31044.16(four runs atdae1ca2; Windows Update replaced the driver between the two)devpreset, MSVC 19.44.35221 (toolset 14.44.35207), Windows SDK 10.0.26100.0, DXC1.8.2502.11 (239921522)debug_errors=0 debug_warnings=0Identical in all 6 runs (2 on
32.0.31035.1003, 4 on32.0.31044.16):With the earlier
32.0.32015.7029and32.0.32029.2010reports, this makes four driver versions on device7550with the same direct-probe result and an exact fixture. The waterfall variant was not rerun, and nothing here addresses the cause.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-23T21:11:20Z.
RDNA 4 ISA for the array-atomics probe, as asked above. The driver's compiled code shows where the factor of 4 comes from. Measurement only, no project change.
Setup
1ccc326(main),devpreset.ProbeArrayAtomics.csoandProbeArrayAtomicsWaterfall.csotaken from the build tree (CMake's owndxc -T cs_6_0lines, DXC1.8.2502.11).rga-windows-x64-2.15.zip, SHA-256 matched the release digest), DX12 mode, which compiles through the installed driver: AMD Radeon RX 9070 XT (1002:7550), driver32.0.31044.16, Windows 11 26H2 build 26300.9974.Direct probe (
Aliases[NonUniformResourceIndex(id % rangeCount)].InterlockedAdd(0, 1, previous)), wave64 (UC_VERSION_W64_BIT). Scheduling waits removed:The atomic is combined across the wave (one lane adds the lane count instead of every lane adding 1). That is only valid if all lanes hit the same address. Here the count is taken once, before the non-uniform resource loop, so every iteration adds the whole wave's active-lane count (64), not the number of lanes that share that iteration's index (16). With
id % 4, every wave visits all four buffers, so each buffer receives 64 per wave × 4 waves = 256, which is exactly the256,256,256,256readback.Repository waterfall (
ProbeArrayAtomicsWaterfall): the same combining happens, but the lane count (s_bcnt1_i32_b64 s12, exec) is taken inside the loop, after exec has been narrowed to the lanes of the current index, so each add carries that iteration's own count.Runtime on the same adapter and driver, D3D12 debug layer enabled,
debug_errors=0 debug_warnings=0, 3 runs each:10.0.26100.9818offscreen_check hardware --gpu-alias-lookup-writes(direct)256,256,256,256×3offscreen_check <backend> --gpu-alias-atomic-waterfall64,64,64,64×364,64,64,64×3Limits: RGA builds its own D3D12 pipeline around the blob (auto-generated root signature), so this is the driver's code for this shader, not a capture of the pipeline
offscreen_checkcreates at run time. The arithmetic matches the runtime counts exactly. One driver and one device. It does not cover the Intel staircase, which comes from a different compiler, or the Windows 10 WARP result. The direct probe still fails as intended.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T21:18:34Z.
Please carry the matched direct and explicit-waterfall ISA measurements into the existing experiment note. On this driver the direct path counts active lanes before the descriptor loop narrows EXEC. The waterfall measurement supplies the independent 64-per-buffer control. Record those observations and the fixture's zero mismatches alongside the direct probe's four 256 counts. The DXC nonuniform regression and the strict per-device failure stay in place.
Imported from R0Y00/Xbox2Windows. Originally posted by trick-ye on 2026-11-23T23:57:40Z.
RX 7800 XT (RDNA 3): direct and waterfall readbacks for the array-atomics probe, the pair described in https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7103553798. The direct probe reads 256 per buffer and the waterfall reads 64 per buffer, three runs each. An RX 7900 XTX direct result on the same driver version is already in https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7076471364; I found no RDNA 3 waterfall readback in this thread before posting.
Environment
45ad903, clean tree,devpreset. It wasmainwhen the checkout was cloned at 23:16 UTC on 2026-11-23; upstreammainadvanced before the runs.1002:747e), driver32.0.32029.2010(AMD Software 26.11.2). It is the only display adapter in this PC.1.9.2602.17backend=hardware debug_layer=enabled),debug_errors=0 debug_warnings=0on every run belowbvh_wave64_hardwarein the same build printsnative_lane_range=32..64. The width used by these two compute shaders was not measured.Commands
From
out/build/dev, each hardware command three times and each WARP command once:Result
Expected:
actual=64,64,64,64on both paths.array_atomics threads=256 buffers=4 expected=64 actual=256,256,256,256×3array_atomics_waterfall threads=256 buffers=4 expected=64 actual=64,64,64,64×310.0.26100.9818array_atomics threads=256 buffers=4 expected=64 actual=64,64,64,6410.0.26100.9818array_atomics_waterfall threads=256 buffers=4 expected=64 actual=64,64,64,64First numeric mismatch on the direct hardware path, the same in the three runs:
The fixture lines of the same direct hardware runs report no mismatch, including the signed-zero section:
The registered test
gpu_alias_lookup_writes_hardwarealso failed once in a fullctest --preset dev --no-tests=error -j 1 -R '_hardware$'run of this build with the samearray_atomicsline, andgpu_alias_lookup_writes_warppassed in the matching_warp$run. No capability skip was reported in the eight standalone probe invocations or for either registeredgpu_alias_lookup_writestest. The full WARP suite had unrelated capability skips.Limits
InterlockedOrvariant suggested in https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7087964756, and I have no ISA capture.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by trick-ye on 2026-11-24T00:00:19Z.
Follow-up to my comment above: the
InterlockedOrvariant from https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7087964756 reads15,15,15,15on the RX 7800 XT, in three of three runs. That comment says the OR replacement "would read15,15,15,15" under its variant of the model and asks an AMD owner to run the line.Method
Local only, not committed. In a separate worktree at
45ad903I replaced the one probe line inProbeArrayAtomics(tests/gpu_alias_writes.hlsl):Then I rebuilt
offscreen_check, ran the command below fromout/build/devthree times on hardware and once on WARP, and restored the file (git status --shortempty afterwards).Result
1002:747e), driver32.0.32029.2010array_atomics threads=256 buffers=4 expected=64 actual=15,15,15,15×310.0.26100.9818array_atomics threads=256 buffers=4 expected=64 actual=1,2,4,8The harness still compares against
expected=64, so every run of the variant reports the probe failure text, on WARP too; theactual=values are the result. The WARP value1,2,4,8matches the NVIDIA and WARP cells for this variant in the linked comment's table. With the original line, the same adapter reads256,256,256,256(previous comment).Environment is the same as in my previous comment: Windows 11 Pro build 26200.9974, MSVC 19.42.34436, DXC
1.9.2602.17, D3D12 debug layer enabled (backend=hardware debug_layer=enabled),debug_errors=0 debug_warnings=0on the three hardware runs and the WARP run. Wave width for this shader was not measured. No capability skip was reported in these four runs.Limits
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T00:10:42Z.
Thanks, @trick-ye. This RDNA 3 waterfall control adds three repeats on the RX 7800 XT: the direct probe read 256 in each slot, and the waterfall read 64 in each slot. The OR variant independently read 15/15/15/15 on that adapter and 1/2/4/8 on WARP. These are device/driver readbacks. The observed wave width and ISA for these particular shaders remain unmeasured. The original probe still records its numeric mismatch as a failure.
Imported from R0Y00/Xbox2Windows. Originally posted by Asimmimx on 2026-11-24T11:13:28Z.
RX 6600 (RDNA 2): direct, waterfall and
InterlockedOrreadbacks of the array-atomics probe. This is the same set that https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7103553798 and the follow-up above report for RDNA 3. The RDNA 2 data in this thread so far is the direct probe on an RX 6500 (743f), with no waterfall or OR readback.Environment
153bb5f6(main), clean tree,devpreset (Debug)1002:73ff), driver32.0.21045.29003. It is the only display adapter in this PC.1.8.2502.11debug_errors=0 debug_warnings=0on every run belowbvh_wave64_hardwareprintsnative_lane_range=32..64. I did not measure the width these two compute shaders use.Commands
From
out/build/dev, I ran each hardware command three times and each WARP command once:Results
10.0.26100.9818--gpu-alias-lookup-writes)actual=256,256,256,256, exit 1actual=64,64,64,64, exit 0--gpu-alias-atomic-waterfall)actual=64,64,64,64, exit 0actual=64,64,64,64, exit 0InterlockedOrvariant (local only, see below)actual=15,15,15,15actual=1,2,4,8On the direct runs, the title-address fixture itself recorded no mismatches on hardware, in 3 of 3 runs:
OR variant. This ran locally and is not committed. It is the one-line replacement from https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7087964756 in
ProbeArrayAtomics(tests/gpu_alias_writes.hlsl):I rebuilt
offscreen_check, ran the variant, then restored the file (git status --shortwas empty afterwards) and rebuilt. The restored direct probe read256,256,256,256again. Because the harness still compares againstexpected=64, the variant reports the probe failure text on both backends. Theactual=values are the result.All three readbacks match the RX 7800 XT (RDNA 3) values above. These are device and driver readbacks only. I did not capture the ISA, so they do not establish a cause on RDNA 2.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T11:23:00Z.
Thanks for the RX 6600 comparison. This adds a distinct RDNA 2 result for all three variants: the direct probe still fails at 256 per buffer, the explicit waterfall reads 64 each, and the OR variant reads 15 in each slot on that driver. The address-write fixture itself stayed exact. A documentation-only addition linking this report is welcome; keep the strict direct probe and its failure status. The readbacks still leave the shader's wave width and driver lowering open.
Imported from R0Y00/Xbox2Windows. Originally posted by trick-ye on 2026-11-24T12:32:35Z.
RX 7800 XT (RDNA 3): the two measurements that https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7117787984 lists as unmeasured for my earlier readbacks. (1) Radeon GPU Analyzer ISA for
ProbeArrayAtomicsandProbeArrayAtomicsWaterfallon targetgfx1101: both are compiled as wave64, and the direct probe takes ones_bcnt1_i32_b64 ..., execbefore its per-resource loop. (2) Run-time readback from the instrumented direct probe from https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7107139741: buffer 0 reads4194560(upper field 64, low 16 bits 256) in 3 of 3 runs. The upper field is consistent with 64 lanes for the contributing waves; it does not establish the stock shader's width.Environment
1002:747e), driver32.0.32029.2010.e84829ded9ca2dff3710b879d37d28986b717cb6,devpreset (Debug). Upstreammainwas 54 commits ahead when I wrote this;tests/gpu_alias_writes.hlslandtests/gpu_alias_atomic_waterfall.hlslare unchanged between45ad903ande84829d.dxcompiler.dll: 1.9(5184-21d28f72)(1.9.2602.17) - 1.9.2602.17 (21d28f727).2.15.0.30 (10/02/2026), from the officialrga-windows-x64-2.15.zip(268,732,151 bytes, SHA-2561dd6fc63baa3ea00f0c4daf208b6139ca924566dd4305a77da0b6c5e52df2377), DX12 mode.rga -s dx12 -llistsgfx1101 (RDNA3)withAMD Radeon RX 7800 XT. The bundledamdxc64.dlland the one in the installed driver package both report file version8.18.10.0514but have different SHA-256 values; I did not establish which one RGA's default DX12 mode loads.e84829dand used the same DXC; that RGA was run from its CLI only, with the network not blocked and the update check not invoked.backend=hardware debug_layer=enabledanddebug_errors=0 debug_warnings=0in all five renderer runs below. RGA compiles do not print a debug-layer status.1. ISA from RGA (compile only, no draw)
Inputs are the two blobs in the
devbuild directory of the main checkout:ProbeArrayAtomics.cso(SHA-256d5785ff72c7e1afa1f276f91c91bc507a2b321031f5f5ab26637243e3a625ec2) andProbeArrayAtomicsWaterfall.cso(c92fa33f12d3f8e9732f35809f7747fd9906929274267fc6bb6535b180fac3c6). Both files have a last-write time of 2026-11-23 23:17:53 UTC, from my first build at45ad903(operator-attested). Operator-reported, hash not saved to a log: a fresh build of the direct probe ate84829din a separate worktree produced the same SHA-256.Reproduction commands (relative paths shown; the run used absolute paths and a separate output directory):
Same flags as https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7114124208 with the target changed. It is not a target-only comparison with that comment: commit, DXC build and driver differ too. Both logs printed
Building for gfx1101...andCompute pipeline binary extracted successfully.RGA wrotegfx1101_ProbeArrayAtomics_comp.isa(SHA-256c90157b7b4aa90bb1734f968f9c7a50af21ece894777f3d9ed595a093d3e96af) andgfx1101_ProbeArrayAtomicsWaterfall_comp.isa(4514ca46c75d926e8af3d400518dbe43e2b9be7de919ac332db94b60e7d355ee).Both listings start with
s_version UC_VERSION_GFX11|UC_VERSION_W64_BIT.Direct probe (excerpts;
s_delay_alulines are dropped, and each...skips other instructions, mostly the index arithmetic):The value added by
buffer_atomic_add_u32isv2, which holds thes_bcnt1_i32_b64 s6, exectaken once before loopL0. This is the structure the linked comment describes forgfx1201(count taken once before the non-uniform resource loop).Waterfall probe (excerpt from inside its loop,
s_delay_alulines omitted):Here both
s_bcnt1_i32_b64instructions sit inside the loop (betweenL0and the back-branchs_cbranch_scc1 L0), afterv_cmpx_eq_i32_e64in instruction order. Only the second readsexec; the first readss[10:11], which is written earlier in the same iteration (s_and_b64 s[10:11], s[8:9], exec), before that comparison. I did not trace the values of either mask.2. Wave width at run time (instrumented direct probe)
In a disposable worktree at
e84829d, built with the same DXC, I added the second line of the linked method after line 74 oftests/gpu_alias_writes.hlsl, rebuiltoffscreen_check, and afterwards restored the file and rebuilt:Each run, from the worktree's build directory:
array_atomicslinearray_atomics threads=256 buffers=4 expected=64 actual=256,256,256,256array_atomics threads=256 buffers=4 expected=64 actual=4194560,256,256,256array_atomics threads=256 buffers=4 expected=64 actual=256,256,256,2564194560is0x00400100: bits 16 and up hold 64, the low 16 bits hold 256. Bits 16 and up are the OR of every contributing wave'sWaveGetLaneCount(). The upper field is consistent with 64 lanes for the waves that contributed to the instrumented readback; it does not establish the stock shader's width. Expected by the probe: 64 per buffer. The exit code 1 is the probe's own check, which fails in the stock build (the result already reported here) and in the instrumented build (buffer 0 also carries the width bits). First mismatch for the failing probe is thearray_atomicsline above; every run also printed the fixture summary endingwords_checked=147456 mismatches=0. No capability skip was reported.Limits
InterlockedOrvariant.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T12:57:59Z.
Intel Arc 140T also fails the probe, with the per-buffer pattern the UHD 770 shows
Adding a discrete Intel datapoint, because the pattern differs from the RDNA figures in the title and matches the
integrated Intel result already recorded in
docs/experiments.md.Two things I think matter here:
256,192,128,64, not a uniform256. The four buffers are over-counted by different factors, so whatever thedriver does is not "every lane lands in every buffer" — buffer 4 is exactly right while the first is 4× over.
paragraph of the
gpu_aliassection. That makes the split follow the Intel driver rather than one integrated part,which narrows where a fix would have to come from.
Everything outside the atomics probe matches on this adapter, so the fixture's other 147,456 words are unaffected.
I recorded this in
docs/experiments.mdas a measurement bullet (#1496); this comment is the same data in the issue so itis findable from the probe failure itself. Nothing was changed in the fixture or its expectations.
Imported from R0Y00/Xbox2Windows. Originally posted by linusbrunotte-arch on 2026-11-24T13:13:11Z.
Polaris shows 256 per buffer in the direct probe and 64 in the waterfall
Source:
ca4a98302544117caa71d85cd8c7e89f3749457f(main at test start). Windows 11 x64 build 26300.9974,offscreen_checkRelease built with Clang 23.1.6 in MSVC mode, Windows SDK 10.0.26100, DXC 1.9.2609.5. D3D12 debug layer unavailable. Radeon RX 590 Series (1002:67df) driver31.0.21923.1000where used; in-box WARP10.0.26100.9818.Ran from the configured build directory. The strict CTest failure is in the direct probe. The separate waterfall processes exited 0. The readbacks establish the same 4× count pattern on this Polaris driver as on the reported RDNA adapters.
Codex (GPT-6) assisted with test execution and reporting.
Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-24T17:44:33Z.
RX 9060 XT (RDNA 4,
gfx1200): the measurements the thread has for RDNA 3 but not yet for this target. (1) Radeon GPU Analyzer ISA forProbeArrayAtomicsandProbeArrayAtomicsWaterfallongfx1200, from blobs with the same SHA-256 as the ones in https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7131583650. (2) TheInterlockedOrvariant reads15,15,15,15in 3 of 3 runs, and its ISA shows where that value comes from. (3) The width-instrumented probe reads4194560,256,256,256in 3 of 3 runs. Measurement only, no project change.Environment
68969ed86ac253615a910d24abd0177938584bd0(main), clean tree before and after,devpreset (Debug).tests/gpu_alias_writes.hlsl,tests/gpu_alias_atomic_waterfall.hlslandtests/gpu_alias_lookup.cppare unchanged betweene84829dand this commit.1002:7590), driver32.0.32029.2010. It is the only physical display adapter in this PC.10.0.26100.10068.1.9.2602.17 (21d28f727)from Windows SDK 10.0.26100.0.debug_layer=unavailablein every run), so no debug diagnostics are claimed.2.15.0.30 (10/02/2026), DX12 mode.rga -s dx12 -llistsgfx1200 (RDNA4)withAMD Radeon RX 9060 XT.1. Stock probes and their
gfx1200ISAWith the
out/build/devbuild, each hardware command three times and each WARP command once:actual=256,256,256,256, exit 1, 3 of 3actual=64,64,64,64, exit 0, 3 of 310.0.26100.10068actual=64,64,64,64, exit 0actual=64,64,64,64, exit 0Expected: 64 per buffer. The first mismatch on the direct hardware path is
array_atomics threads=256 buffers=4 expected=64 actual=256,256,256,256. Every direct run, hardware and WARP, also printed the fixture summary endingrecords=2331 ... words_checked=147456 mismatches=0. No capability skip was reported. The direct readback repeats the earlier RX 9060 XT report (https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7071098620) at a newer commit. The earlier RX 9060 XT waterfall readback (https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7072945852) used a local manual-waterfall variant, so the repository waterfall row is new for this adapter.ISA inputs are the two blobs of this build:
ProbeArrayAtomics.cso(SHA-256d5785ff72c7e1afa1f276f91c91bc507a2b321031f5f5ab26637243e3a625ec2) andProbeArrayAtomicsWaterfall.cso(c92fa33f12d3f8e9732f35809f7747fd9906929274267fc6bb6535b180fac3c6). Both hashes equal the ones in the linked RDNA 3 comment, so the two ISA reports start from the same DXIL. That comment used the same driver version,32.0.32029.2010, but did not identify whichamdxc64.dllRGA loaded.Each compile was run three ways: as above, with
--offline --amdxc <amdxc64.dll of the installed driver package>(SHA-25667b564e684796142371af3bf5ba04055fd9301fd3501f508113fa9ef0034b779), and with--offline --amdxc <amdxc64.dll bundled with RGA>(49fa70e3a73a3c6f9af56f27172532803c665971d7e6a98f9f68004081182841). The three listings are byte-identical per shader:gfx1200_ProbeArrayAtomics_comp.isaisa2c054b491eada633d92e32ff51e57a81ab881479dc2ed8b199f6c04dcdb1dcaandgfx1200_ProbeArrayAtomicsWaterfall_comp.isaiscdeefb87b03ee5491c779bd503deadc226e696ee5133524a0f16cbdcf71bd1d9. So for these two shaders on this target, the listing is the same with the driver'samdxc64.dll, with RGA's bundled copy (same file version8.18.10.0514, different SHA-256) and with RGA's default. Which DLL the default mode loads is still not identified.Both listings start with
s_version UC_VERSION_GFX12|UC_VERSION_W64_BIT.Direct probe (
s_delay_aluands_wait_alulines dropped;...skips the index arithmetic):The operand of
buffer_atomic_add_u32isv1, which holds thes_bcnt1_i32_b64 s8, exectaken once before loopL0. This is the structure reported forgfx1201in https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7114124208 and forgfx1101in the linked RDNA 3 comment.Waterfall probe (excerpt from inside its loop, same lines dropped):
Both
s_bcnt1_i32_b64instructions sit inside the loop (betweenL0and the back-branchs_cbranch_scc1 L0). The first readss[12:13], written earlier in the same iteration bys_and_b64 s[12:13], vcc, exec; the second readsexecafterv_cmpx_eq_i32_e64. I did not trace the values of either mask.2.
InterlockedOrvariantLocal only, not committed. The one-line replacement from https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7087964756 in
ProbeArrayAtomics:cmake --build --preset dev --target offscreen_check, then.\offscreen_check.exe <backend> --gpu-alias-lookup-writes:array_atomics threads=256 buffers=4 expected=64 actual=15,15,15,15, 3 of 310.0.26100.10068array_atomics threads=256 buffers=4 expected=64 actual=1,2,4,8The harness still compares against 64, so the variant exits 1 on both backends; the
actual=values are the result. These match the RX 7800 XT and RX 6600 readbacks above.RGA on the variant blob (SHA-256
e402476b3e0668b6abbfdaa131efbd94e3cada6740e34585dcc7c6c82a79d65a), same three ways, byte-identical listings (fff60bee6f339f042759b8dbc08a9db0fbe5ddb7c2a19c36187de2efde293b56), wave64. Excerpt (same lines dropped,s_noplines dropped too):The comment on the first line is mine. The operand of
buffer_atomic_or_b32isv1, loaded from lane 63 ofv4after thev_or_b32_dppchain, and that chain runs once before loopL0. So the listing has the same shape as the add: the per-lane operands are combined before the loop that separates the lanes by resource index, and each iteration applies the combined value. A wave that holds all four indices then ORs1|2|4|8 = 15into each buffer, which is the readback.3. Wave width at run time (instrumented direct probe)
Local only, not committed. The second line of the method in https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7107139741, added after line 74 of
tests/gpu_alias_writes.hlsl:array_atomicslineactual=256,256,256,256actual=4194560,256,256,256actual=262208,64,64,64git checkoutand rebuildactual=256,256,256,2564194560is0x00400100: bits 16 and up hold 64, the low 16 bits hold 256.262208is0x00040040: width 4 on WARP, count 64. After the restore,git status --shortwas empty andProbeArrayAtomics.csohad its stock SHA-256 again; the waterfall also read64,64,64,64once more.RGA on the instrumented blob (SHA-256
4da0b82b2ab1d0f701dc40a95ad67d8c0924103f770e94332f057029647dd92b), same three ways, byte-identical listings (674d8989eb649ee592d221d56bbd326447468358a33b55275502dfffec4cc8b4), wave64. The linked RDNA 3 comment did not capture this one. With thes_delay_aluands_wait_alulines dropped, its loopL0is the stock loop above instruction for instruction, with only register numbers changed (s10fors9,v2forv1); the wait-state lines differ slightly. Thes_bcnt1_i32_b64 s8, execis again taken once before the loop. The added line compiles to this tail (pluss_ctz_i32_b64 s9, execand thev_mbcntpair forv1, computed before the loop):WaveGetLaneCount() << 16is the constant0x400000(64 << 16) in the listing, which agrees with theUC_VERSION_W64_BITheader and with the run-time upper field.Limits
offscreen_checkcreated at run time. One RGA version, one target.UC_VERSION_W64_BITheader of its RGA listing, not a run-time readback.amdxc64.dllfiles covers these four blobs ongfx1200only, and the DLL loaded by RGA's default mode is not identified.AI-assisted (Claude Code - Fable 5.2); runs executed locally on the adapter above.
Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-24T20:43:43Z.
Proposal, scope question first: add the two local probe variants used in this thread as opt-in
offscreen_checkdiagnostics, next to--gpu-alias-atomic-waterfallfrom #793, so the next readbacks do not need a source edit and a rebuild.Both variants have been run by editing line 74 of
tests/gpu_alias_writes.hlsl, rebuilding and restoring: theInterlockedOrline from https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7087964756 in four reports (Intel UHD with an RTX 3050 control on the same host, RX 7800 XT, RX 6600, RX 9060 XT), and the width line from https://github.com/R0Y00/Xbox2Windows/issues/369#issuecomment-7107139741 in three (the same Intel UHD and RTX 3050 host, RX 7800 XT, RX 9060 XT), each with a WARP control.Slice
--gpu-alias-atomic-or: a separate entry point withAliases[NonUniformResourceIndex(id % rangeCount)].InterlockedOr(0, 1u << (id % rangeCount), previous), same root signature, buffers and dispatch as the direct probe. Printsarray_atomics_or threads=256 buffers=4 expected=1,2,4,8 actual=...and fails unless the four words are1,2,4,8.--gpu-alias-atomic-width: the directInterlockedAddprobe plusif (WaveIsFirstLane()) Aliases[0].InterlockedOr(0, WaveGetLaneCount() << 16, previous). Prints the four counts from the low 16 bits and the upper field of buffer 0 as a separatewave_lane_count_bits=value. It passes or fails on the counts only; the width is reported, not judged. Gated on SM 6.0 and WaveOps like the waterfall diagnostic, with a capability skip otherwise.array_atomics_exactintests/gpu_alias_lookup.cpptakes the expected words and an optional mask instead of the fixed 64.Unchanged
ProbeArrayAtomics,--gpu-alias-lookup-writes, its strict failure andarray_atomics_dxilstay as they are. The two new operations are not registered as CTest entries, like the waterfall diagnostic, so no test changes status on any adapter.Verification I can provide
32.0.32029.2010) and in-box WARP, three runs each. Expected from the hand-edited runs already posted:15,15,15,15and4194560,256,256,256on the Radeon,1,2,4,8and262208,64,64,64on WARP, so both diagnostics must fail on the Radeon and pass on WARP, the width one on its counts (256 against 64).docs/experiments.mdwith the two commands.Is this slice wanted, and are the option names and the pass or fail rule for the width diagnostic acceptable? I will not start before an answer.
AI-assisted (Claude Code - Fable 5.2).
Imported from R0Y00/Xbox2Windows. Originally posted by FAJIFBEFJHA on 2026-11-24T21:52:24Z.
I ran the array-atomics probes on an RX 7600 (
1002:7480,gfx1102, driver32.0.32029.2010) and in-box WARP (1414:008c,10.0.26100.9818). The renderer came frommainat94dbdbf0894e72c6f81b551d0e3ef7616abe9a19using thedevpreset, Windows 11 Pro x64 build26300.9974, MSVC19.52.37029.0, SDK10.0.26100.0and DXC1.8.2502.11(cs_6_0). The D3D12 debug layer reported zero errors and warnings on both backends.I repeated the two stock probes three times per backend with no game process detected before or after the run. Steam and Wallpaper Engine were running in the background. All 12 results matched the first set of runs.
InterlockedAdd256,256,256,256, exit164,64,64,64, exit064,64,64,64, exit064,64,64,64, exit0InterlockedOrvariant15,15,15,15, exit11,2,4,8, exit14194560,256,256,256, exit1262208,64,64,64, exit1The stock retest had 9 PASS, 3 direct hardware FAIL and 0 SKIP. The title-address fixture reported zero mismatches in 147456 words on every direct run. The OR and width rows are from the earlier set, three runs per backend. Both local edits kept the original four-word comparison against 64, which accounts for the WARP exit codes on those two rows. The stock shader and its DXIL were restored and the stock results repeated.
In the width variant, buffer 0 read
0x00400100on RX 7600 and0x00040040on WARP. The low fields contain 256 and 64 respectively. The high fields are the OR of the reported lane counts from contributing waves and read 64 and 4. Those fields describe the instrumented shader. The stock shader's wave membership and the processing order of the indices remain unmeasured. The readbacks agree with the RX 7800 XT and RX 9060 XT reports. RX 7800 XT · RX 9060 XTScope question for @R0Y00
Would a separate parameterized measurement of UAV count and lane-to-resource assignment be useful for #369? LantiumBot's proposal exposes the existing fixed four-buffer OR and width variants as opt-in commands. The proposed sweep varies the inputs to test when the excess appears and which count model fits. LantiumBot's proposal
I would start with two UAVs and two assignments for 256 threads. The uniform control alternates buffers between groups. The discriminating case splits each wave's active lanes evenly between both indices. With that split verified in the same dispatch, the total across both buffers is 256 for the strict reference, 512 for a full-wave contribution per selected index and 384 for a contribution from lanes still pending at each index. The last total holds for either index order. Each shader would use its own membership record. A run with an unverified split would be inconclusive. The first pass would use direct
InterlockedAddand the explicit waterfall on RX 7600 and WARP. The current four-buffer probe and strict expectations stay in place. Larger resource counts and other distributions can follow if the first two cases leave a specific question open.AI-assisted (Codex and ChatGPT). Measurements ran locally on the adapters above.