dxr_opacity_hardware: inline RayQuery CommittedRayT adds TMin twice for shader-committed hits on RX 9070 XT #1004
Open
opened 2026-11-23 21:14:50 +00:00 by MasterDomino
·
18 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#1004
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 MasterDomino on 2026-11-23T21:14:50Z.
Summary
dxr_opacity_hardwarefails on RDNA 4 becauseCommittedRayT()of a shader-committed non-opaque hit is the true distance plus TMin.docs/experiments.mdrecords this as a known driver deviation, first reported by denn0x in the review of #216, with no cause. On an RX 9070 XT the error scales exactly with TMin, the DispatchRays path is exact, and the driver's compiled inline query adds TMin twice on that path. Measurement only, no fixture change.Environment
1ccc326(main), clean tree,devpreset1002:7550), driver32.0.31044.16, DXR tier 1.11.8.2502.11debug_errors=0 debug_warnings=0on every run below1. The offset equals TMin
All 126 rays use TMin
.25f(tests/dxr_opacity_reference.h:82). For this measurement only, I changed that one value locally, rebuiltoffscreen_check, ran each backend three times and then restored the file. Thecommitted_t_plus_tmindiagnostic reads TMin from the ray data, so it follows the change.--dxr-opacity(inline RayQuery)--dxr-opacity-pipeline(DispatchRays)mismatches=0×3mismatches=0×3mismatches=43 committed_t_plus_tmin=43×3mismatches=0×3mismatches=43 committed_t_plus_tmin=43×3mismatches=0×3For example, ray 1 reports
shader_commit_t=1(the candidate distance at the commit, correct) and a committeddistance=1.25at TMin 0.25, or1.5at TMin 0.5. With TMin 0 the inline query matches the reference on every ray. The DispatchRays pipeline traces the same 126 rays and matches at every TMin, so this RX 9070 XT result is limited to inline RayQuery.2. Where the second TMin comes from
The
ray_candidates.csofrom the build tree (cs_6_5 -E CSMain) compiled for gfx1201 through the installed driver with Radeon GPU Analyzer 2.15.0.30 (rga -s dx12 -c gfx1201 --cs-blob ray_candidates.cso --isa ray_candidates.isa; officialrga-windows-x64-2.15.zip, SHA-256 matched the release digest).The query struct is loaded into
s[8:11](origin, TMin =s11) ands[12:15](direction, TMax =s15). The traversal moves the ray start to TMin:So hit distances inside the traversal are measured from TMin, and each API distance needs exactly one
+ TMin. In the non-opaque candidate block (v6= committed distance,v11= candidate distance,v7= committed status):and before the final store:
At the commit, the committed distance takes
v11, which already includes+ TMin, andCommittedRayT()adds TMin again. That matches every number in section 1: the shader's recorded candidate distance is correct, the committed distance is TMin too large, and TMin 0 hides it.Limits
docs/experiments.mdwas on32.0.32015.7029, and I also saw the same 43 rays on32.0.31035.1003.offscreen_checkcreates. I followed the committed-distance register through the commit and the final store, but did not trace every reuse ofv6elsewhere in the traversal loop. The runtime TMin scan is the stronger evidence.ACCEPT_FIRST_HIT_AND_END_SEARCHpath were not separately isolated.Possible follow-ups, for maintainers to decide: an RDNA 2 or RDNA 3 rerun of the same TMin scan, and an independent NVIDIA control with a nonzero TMin (the RTX 5080 result in
docs/experiments.mdalready passes at TMin 0.25).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T21:18:32Z.
Please keep the strict origin-relative assertion and record this as a focused measurement in
docs/experiments.md. The three-value scan is the primary evidence: inline returns 0/43/43 mismatches at TMin 0/0.25/0.5, while DispatchRays returns zero on the same fixture throughout. Record the candidate-at-commit value and final returned value. Label the RGA register trace as an explanation from its independently assembled pipeline on driver 32.0.31044.16. The next independent sample can run the same TMin values on RDNA 2/3 or NVIDIA, with shader-committed triangles kept distinct from opaque/first-hit paths. TMin zero is a diagnostic input. DXR CommittedRayT contractImported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T21:31:29Z.
Taking an independent measurement of the inline-vs-pipeline
CommittedRayTTMin behavior off RDNA4. Environment: NVIDIA GeForce GTX 1660 SUPER (driver 32.0.16.1074) and in-box WARP (Microsoft Basic Render Driver 10.0.26100.9818), Windows 11 build 26200,main@abdb8fb,devpreset. Running the existingdxr_opacity_{hardware,warp}anddxr_opacity_pipeline_{hardware,warp}entries; will report whether the shader-committed TMin double-add reproduces on these adapters or is RDNA4-only. Measurement only, no fixture change.Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T21:33:31Z.
Cross-check result (commit
1ccc326, Windows 11 Pro build 26200, existing dev build, debug layer unavailable):dxr_opacity_hardwareskips — inline RayQuery needs Tier 1.1, so no NVIDIA inline data point from this GPU.dxr_opacity_pipeline_hardwarepasses: 126 rays, 94 hits / 42 shader commits / 32 misses,mismatches=0,committed_t_plus_tmin=0. The DispatchRays path is exact here too, matching the RDNA4 report.dxr_opacity_warp(inline) anddxr_opacity_pipeline_warppass withmismatches=0,committed_t_plus_tmin=0on all 42 shader-committed hits. The 11warp_after_commitrays are the known, tolerated first-hit continuation quirk, not a TMin offset.So the TMin double-add does not reproduce on any path runnable on this machine; everything points to the inline path on RDNA4 (RX 9070 XT) specifically. NVIDIA inline remains unverified on Tier 1.0 hardware — a Tier 1.1+ NVIDIA run would close that gap (the RTX 5080 data point in docs/experiments.md already passed inline 126/126).
Recorded in #1019 (one paragraph in the
dxr_opacitysection of docs/experiments.md).Imported from R0Y00/Xbox2Windows. Originally posted by trick-ye on 2026-11-23T23:41:17Z.
RDNA 3 sample:
dxr_opacity_hardwarealso fails on an RX 7800 XT. The inline scan returned 0/41/41 mismatches at TMin 0/0.25/0.5, and DispatchRays returned zero throughout. The issue body reports 0/43/43 and zero throughout on an RX 9070 XT.Environment
45ad903(mainwhen the checkout was cloned at 23:16 UTC on 2026-11-23; upstreammainadvanced before the runs), clean tree,devpreset1002:747e), driver32.0.32029.2010(AMD Software 26.11.2),dxr_tier=11 shader_model_capped_at_6_5=0x65. It is the only display adapter in this PC.1.9.2602.17backend=hardware debug_layer=enabled),debug_errors=0 debug_warnings=0on every hardware run below1. Registered tests at
45ad903Run from the checkout root, three times:
Each CTest run reports
75% tests passed, 1 tests failed out of 4. Capability skips: none in the registered runs or in the direct scan below.dxr_opacity_hardware(dxr_backend=inline_ray_query)dxr_opacity rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=41 committed_hit=41 committed_t_plus_tmin=41dxr_opacity_pipeline_hardware(dxr_backend=dispatch_rays)dxr_opacity rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0dxr_opacity_warp(WARP10.0.26100.9818)dxr_opacity rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0dxr_opacity_pipeline_warpdxr_opacity rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0Expected:
mismatches=0on the inline path. First mismatch, verbatim and identical in all three runs:The log later reports
DXR opacity or candidate handling disagrees with the CPU reference.The test prints 16 mismatching rays per run. All 16 carry only the
[committed_hit]category.The total here is 41. The issue body gives 43 for the RX 9070 XT at
1ccc326, driver32.0.31044.16, DXC1.8.2502.11.tests/dxr_opacity.cpp,tests/dxr_opacity_reference.handtests/ray_candidates.hlslare unchanged between1ccc326and45ad903. The totals differ by two; the available output does not establish which ray IDs overlap or differ.2. TMin scan
Same method as the issue body, in a separate worktree at
45ad903: change the one TMin literal attests/dxr_opacity_reference.h:82, rebuildoffscreen_check, run each backend three times, then restore the file (git status --shortempty afterwards). From the scan worktree'sout/build/devdirectory, the equivalent commands were:--dxr-opacity(inline RayQuery)--dxr-opacity-pipeline(DispatchRays)mismatches=0 committed_t_plus_tmin=0×3, no failure reportedmismatches=0 committed_t_plus_tmin=0×3, no failure reportedmismatches=41 committed_hit=41 committed_t_plus_tmin=41×3, CPU-reference failure reportedmismatches=0 committed_t_plus_tmin=0×3, no failure reportedmismatches=41 committed_hit=41 committed_t_plus_tmin=41×3, CPU-reference failure reportedmismatches=0 committed_t_plus_tmin=0×3, no failure reportedThe cells are excerpts of the
dxr_opacity rays=126 ...summary line. Ray 1 reportsdistance=1.25 shader_commit_t=1at TMin 0.25 anddistance=1.5 shader_commit_t=1at TMin 0.5, so the candidate distance recorded at the commit is the reference value and the final committed distance is larger by TMin.Limits
committed_t_plus_tmincounts shader-committed hits whose identity and candidate-at-commit distance match the reference, but whose final distance is wrong and matches the reference plus TMin. Opaque commits and first-hit rays were not isolated separately.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T23:46:26Z.
Thanks for the RX 7800 XT run. The 0/41/41 inline mismatches at TMin 0/0.25/0.5, alongside a clean DispatchRays control, extend this observed behavior to one RDNA 3 device and the recorded driver. Please carry the raw counts and environment into the existing experiment note, or provide a focused docs PR. The strict reference stays unchanged.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-24T00:47:40Z.
I'll take the NVIDIA inline sample: the same TMin 0 / 0.25 / 0.5 scan on an RTX 3070 (DXR tier above 1.0, so the inline RayQuery path runs instead of skipping) and in-box WARP on the same machine, with the D3D12 debug layer on. Inline and DispatchRays reported separately, plus a local shader mutation that adds TMin to the returned CommittedRayT as a negative control. Measurement only, no fixture change.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-24T00:53:07Z.
NVIDIA inline sample for the TMin scan: on an RTX 3070 the inline RayQuery path returned 0/0/0 mismatches at TMin 0/0.25/0.5, and DispatchRays returned zero throughout. The shader-committed TMin offset does not reproduce on this adapter and driver. In-box WARP on the same machine also matched on both paths. Measurement only, no fixture change.
Environment
f7c9f57(main, #1064 merge), clean tree,devpreset (Debug); onlyoffscreen_checkwas built10de:2484), driver 621.01 (UMD32.0.16.2101).offscreen_checkreportsdxr_tier=12 shader_model_capped_at_6_5=0x65, so--dxr-opacityrunsdxr_backend=inline_ray_queryinstead of skipping10.0.26100.9818(dxr_tier=11)dxc.exe(reports dxcompiler1.9.2602.17), CMake 3.31.6debug_layer=enabled);debug_errors=0 debug_warnings=0on every run below, including the mutated ones1. Registered tests
Three serial runs from the clean tree, 4/4 passed each time, no capability skips:
dxr_opacity_hardware(inline)rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0dxr_opacity_pipeline_hardwarerays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0dxr_opacity_warp(inline)rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0dxr_opacity_pipeline_warprays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=02. TMin scan
Same method as the issue body, in a separate worktree: change the TMin literal at
tests/dxr_opacity_reference.h:82, rebuildoffscreen_check, run each mode three times, restore the file. Fromout/build/dev:mismatches=0 committed_t_plus_tmin=0×3mismatches=0 committed_t_plus_tmin=0×3mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0×3mismatches=0 committed_t_plus_tmin=0×3mismatches=0 committed_t_plus_tmin=0×3mismatches=0 committed_t_plus_tmin=0×3mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0×3mismatches=0 committed_t_plus_tmin=0×3mismatches=0 committed_t_plus_tmin=0×3mismatches=0 committed_t_plus_tmin=0×3mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0×3mismatches=0 committed_t_plus_tmin=0×3Every run kept
hits=94 shader_commits=42 misses=32and exited 0. For all 42 shader-committed hits, the test compares both the candidate distance recorded at the commit (shader_commit_t) and the final committed distance with the reference, so on the passing runs both equal the reference within the fixture's 1e-5 relative tolerance. The test prints per-ray values only for failing rays.3. Negative control
To check that this build and adapter would show the RDNA result, I changed the inline path of
tests/ray_candidates.hlsllocally so that the returned distance isq.CommittedRayT() + ray.TMinwhenever the shader committed a candidate, rebuilt, ran it three times at TMin 0.25 and three times at 0.5, then reverted it (git status --shortempty afterwards).mismatches=42 committed_hit=42 committed_t_plus_tmin=42, exit code 1, at both TMin values in all runs. The first mismatch at TMin 0.25 is the same line as the RX 7800 XT report above: At TMin 0.5 the same ray reportsdistance=1.5 shader_commit_t=1, as in the issue body. A single run of the mutated build at TMin 0 matched on every ray, as expected.mismatches=44 committed_hit=44 after_shader_commit=10 after_opaque_commit=2 warp_after_commit=1 committed_t_plus_tmin=42. The two rays beyond the 42 (rays 2 and 17 in the printed output) end on the opaque geometry-1 hit at distance 2 after the shader had committed a farther candidate (shader_commit_t=3); the mutation adds TMin whenever the shader committed, so it moves them to 2.25 too. With their final distances moved, 10 of WARP's 11 tolerated continuation rays are now reported.mismatches=0on both adapters, since the mutation only touches the inline path.Limits
CommittedRayTis origin-relative here.I'll carry these raw counts and the environment into the
dxr_opacitysection ofdocs/experiments.mdwith a focused docs PR, after the RX 7800 XT note lands so the two edits don't conflict.AI-assisted. The measurements were run on the hardware listed above.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T00:57:21Z.
This adds a stable RTX 3070 and WARP control at TMin 0, 0.25 and 0.5. Inline RayQuery and DispatchRays both passed the unchanged fixture. The injected TMin addition exposed all 42 committed-distance errors on the RTX 3070 at each positive TMin, and the separately counted WARP continuation cases explain the extra two final-distance differences there. That gives us a test that can detect the reported offset on the passing adapter. Keep the strict inline failure on the affected AMD runs, and retain DispatchRays as a separate comparison.
Imported from R0Y00/Xbox2Windows. Originally posted by Toons29 on 2026-11-24T01:30:33Z.
RDNA 4 on the newer driver: the inline TMin offset is still there on an RX 9070 with
32.0.32029.2010, at 43 mismatches. That's the same count as the RX 9070 XT in the issue body on32.0.31044.16, and the same driver and DXC as the RX 7800 XT run above, which got 41. So the 41/43 difference looks like it follows the GPU generation, not the driver or DXC version.Environment
maina7710b73plus the test-only change in #1126 (tests/pe_package_preflight_check.py, nothing DXR-related),devpreset1002:7550), driver32.0.32029.2010,dxr_tier=11 shader_model_capped_at_6_5=0x65, only display adapter1.9.2602.17(SDK copy)debug_layer=unavailable, Graphics Tools not installed)Result
75% tests passed, 1 tests failed out of 4, no capability skips. I got the same summary in an earlier full-suite run at78a6b31e.dxr_opacity_hardware(inline_ray_query)mismatches=43 committed_hit=43 committed_t_plus_tmin=43dxr_opacity_pipeline_hardware(dispatch_rays)mismatches=0 committed_t_plus_tmin=0dxr_opacity_warp(WARP10.0.26100.9818)mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0dxr_opacity_pipeline_warpmismatches=0 committed_t_plus_tmin=0All four report
rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36. The first mismatch is the same line as in the 7800 XT run (ray=1 flags=0xf0000 ... distance=1.25 shader_commit_t=1). The 16 printed rays are 1, 7, 8, 10, 11, 16, 17, 19, 20, 28, 29, 31, 32, 40, 41 and 49, all[committed_hit]. I didn't run the TMin 0/0.5 scan.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T01:45:21Z.
Thanks for the RX 9070 run. At
a7710b73with driver32.0.32029.2010, the inline path reports 43 added-TMin mismatches, and hardware DispatchRays and both WARP paths report zero. This adds a second RDNA 4 configuration with 43. The RX 7800 XT result with 41 used the same newer driver and DXC, but the present adapter samples do not establish the cause of the difference. Keep the hardware assertion strict.Imported from R0Y00/Xbox2Windows. Originally posted by FAJIFBEFJHA on 2026-11-24T04:09:18Z.
I'd like to add an optional
--tmin <value>argument to the existing--dxr-opacityand--dxr-opacity-pipelinediagnostics, allowing the TMin sweep without rebuilding between measurements.The default would remain 0.25, with the existing strict CPU-reference comparisons and CTest behavior unchanged.
I reproduced the 41 inline RayQuery mismatches on an RX 7600 (driver 32.0.32029.2010, Windows build 26300.9974). I plan to validate TMin 0, 0.25 and 0.5 on both hardware and WARP, using inline RayQuery and DispatchRays separately.
Scope: diagnostic tooling only, no driver workaround or relaxed assertions.
Would this be a useful addition?
AI-assisted (Codex and ChatGPT).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T10:58:40Z.
Please take the opt-in TMin sweep as proposed. Keep 0.25 and the strict reference as the default for both CTest paths. Reject non-finite values and values outside the fixture's ray interval. For the sweep, report the adapter, driver, TMin and mismatches separately for inline RayQuery and DispatchRays, with WARP as a comparison. Keep the 41-mismatch RX 7600 observation in this thread.
Imported from R0Y00/Xbox2Windows. Originally posted by FAJIFBEFJHA on 2026-11-24T19:45:06Z.
I ran the requested TMin sweep on an RX 7600 and in-box WARP. RX 7600 inline RayQuery returned 0, 41 and 41 mismatches at TMin 0, 0.25 and 0.5. Hardware DispatchRays and both WARP paths returned zero throughout.
90d39cadb27c91d5d2096654f1a02117db615736, based on upstreammainat813045b3c13f7bad20d8577557b621ee869ccbba, with thedevpreset. I builtoffscreen_checkonce and passed--tmin <value>to--dxr-opacityand--dxr-opacity-pipeline.1002:7480), driver32.0.32029.2010, and Microsoft Basic Render Driver (1414:008c), in-box WARP10.0.26100.9818. Both reported DXR Tier 1.1.26300.9974, MSVC19.52.37029.0, Windows SDK10.0.26100.0and DXC1.8.2502.11. The D3D12 debug layer was enabled with zero errors and warnings in all runs.The three numbers in each cell are mismatch counts from three serial runs of that combination. Across the 36 runs there were 30 PASS, 6 FAIL and 0 SKIP. Each run reported the reference counts of 126 rays, 94 hits, 42 shader commits, 32 misses and 36 first-hit rays. WARP inline separately counted 11 known
warp_after_commitcontinuations per run.All 41 mismatches in each RX 7600 failure counted as both
committed_hitandcommitted_t_plus_tmin. Ray 1 was the first mismatch in every failing run. Itsshader_commit_t=1matched the reference at both positive TMin values. The final distance was1.25at TMin0.25and1.5at TMin0.5. These measurements characterize the returned distances on this adapter and driver.The diagnostic option is in PR #1862.
AI-assisted (Codex and ChatGPT).
Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-24T20:06:29Z.
RX 9060 XT (RDNA 4,
gfx1200): the TMin scan, thegfx1200ISA, and the full list of the 43 mismatching rays, which the thread does not have yet for any adapter (the fixture prints the first 16). The list shows where 43 comes from when the reference has 42 shader commits: it is those 42 rays plus ray 17. Measurement only, no fixture change.Environment
68969ed86ac253615a910d24abd0177938584bd0(main), clean tree before and after,devpreset (Debug)1002:7590), driver32.0.32029.2010,dxr_tier=11 shader_model_capped_at_6_5=0x65. It is the only physical display adapter in this PC.10.0.26100.10068(dxr_tier=11)1.9.2602.17 (21d28f727)from Windows SDK 10.0.26100.0debug_layer=unavailablein every run), so no debug diagnostics are claimed2.15.0.30, DX12 mode1. TMin scan
Same method as the issue body: the TMin literal at
tests/dxr_opacity_reference.h:82changed locally,offscreen_checkrebuilt, then both changed files (see section 2 for the second) restored withgit checkout(git status --shortempty afterwards). Hardware runs three times each, WARP once each:mismatches=0 committed_t_plus_tmin=0x3mismatches=0 committed_t_plus_tmin=0x3mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0mismatches=0 committed_t_plus_tmin=0mismatches=43 committed_hit=43 committed_t_plus_tmin=43x3mismatches=0 committed_t_plus_tmin=0x3mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0mismatches=0 committed_t_plus_tmin=0mismatches=43 committed_hit=43 committed_t_plus_tmin=43x3mismatches=0 committed_t_plus_tmin=0x3mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0mismatches=0 committed_t_plus_tmin=0Every run reported
rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36. The failing runs exit 1, the others 0. No capability skip. The unmodified build gave the 0.25 row before the edits (three hardware runs per path) and again after the restore (one hardware run per path). First mismatch at TMin 0.25, the same line as in the RX 7800 XT report:2. All 43 rays
For the scan builds I also raised the print limit in
tests/dxr_opacity.cpp(if (mismatches < 16)to< 1000), local only. The 43 printed lines are identical across the three runs at TMin 0.25 and across the three at 0.5, and the ray IDs are the same at both values:[committed_hit], and in all 43 the finaldistanceequalsshader_commit_tplus TMin at both values (for example ray 8:shader_commit_t=3,distance=3.25and3.5).tests/dxr_opacity_reference.hgives the 42 rays it counts as shader commits. All 42 are in the list. The 43rd is ray 17.flags=0x40004: first-hit search, accept mask0x4, instance 1) has an opaque closest hit in the reference, geometry 1 at distance 2, andcommittable=0xe. On this adapter it ends on geometry 2, which the shader commits atshader_commit_t=3, and reportsdistance=3.25. Ending there is allowed for a first-hit search; the distance is still TMin too large.shader_commit_t=3where the reference closest hit is geometry 0 at distance 1: rays 16, 19, 61, 100 and 103. They are among the 42 either way. In the other 37 rays the final geometry is the reference closest hit.So on this adapter the 43 are exactly the rays that end on a shader-committed hit with TMin added. The fixture prints nothing for passing rays, so the logs do not show whether any passing first-hit ray also ended on a shader commit. If every shader-committed final hit carries the offset, the count is the number of rays ending on a shader commit, and that number depends on where first-hit searches end. This may be relevant to the 41 against 43 difference between the RDNA 3 and RDNA 4 reports: if RDNA 3 also adds TMin to every shader-committed final hit, only first-hit rays can produce that difference. I have no RDNA 3 list to compare with. The same one-line print change on an RX 7800 XT or RX 7600 would show which ray IDs differ.
3.
gfx1200ISAray_candidates.csofrom this build (SHA-25609c164619f81aa74179bb96e81d5622e666adc5f3e53e06efbd080ffaba6ab13):Run three ways: as above, with
--offline --amdxc <amdxc64.dll of the installed driver package>and with--offline --amdxc <amdxc64.dll bundled with RGA>. The three listings are byte-identical (gfx1200_ray_candidates_comp.isa, SHA-2567deab9610a5d4e2a2b8966b291ff17ddedce53e3129d54e4cfb0b3bcd65cc7cc); which DLL the default mode loads is not identified. The listing starts withs_version UC_VERSION_GFX12|UC_VERSION_W32_BIT.It contains counterparts of the instructions the issue body quotes for
gfx1201, with a different register allocation:v17forv16in the limit select,v29,v2,v5forv32,v3,v0in the final add, andv[26:29]forv[29:32]in the store, which also carriesscope:SCOPE_DEVhere. The committed-distance select is one half of av_dual_cndmask_b32, and theshader_commit_tselect is the separatev_cndmask_b32_e32 v28, v11, v28, vcc_lo. Three lines below are not quoted in the issue body (v_cmp_eq_i32_e32 vcc_lo, 0, v7,v_cndmask_b32_e32 v6, v36, v6, vcc_lo,v_cmp_ge_f32_e32 vcc_lo, v17, v11).s_delay_aluands_wait_alulines are dropped and...skips other instructions:s11is added tov11beforev11can be selected intov6, ands11is added tov6again for the stored word. I did not trace the registers further than the issue body did, and I make no claim about thev_cndmask_b32_e32 v6, v36, v6, vcc_loline beyond listing it.Limits
offscreen_checkcreates. The run-time scan is the stronger evidence.AI-assisted (Claude Code - Fable 5.2); runs executed locally on the adapter above.
Imported from R0Y00/Xbox2Windows. Originally posted by trick-ye on 2026-11-25T11:07:36Z.
RX 7800 XT (RDNA 3): the full list of the 41 mismatching rays, which https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7143051197 said would show which ray IDs differ from its RDNA 4 list of 43. The two lists differ in rays 16 and 17 only: both are in the RDNA 4 list and neither is printed here. Measurement only, no fixture change proposed.
Environment
25317c63a21d539c1adfcd78a113874a6626d125(main),devpreset (Debug),git status --shortempty before the edit and after the restore1002:747e), driver32.0.32029.2010,dxr_tier=11 shader_model_capped_at_6_5=0x651.9.2602.17 (21d28f727)backend=hardware debug_layer=enabled); every run below ended withdebug_errors=0 debug_warnings=0Commands
Unmodified build, three runs each, before the edit and again after the restore:
Then one local, uncommitted edit, the same one the RDNA 4 comment describes: in
tests/dxr_opacity.cpp,if (mismatches < 16)changed toif (mismatches < 1000).offscreen_checkrebuilt, three runs each of:TMin was set with the
--tminoption;tests/dxr_opacity_reference.hwas not edited. The print-limit edit was reverted, andoffscreen_checkwas rebuilt before the restored runs.Observed versus expected
Expected by the fixture:
mismatches=0, exit 0.mismatches=41 committed_hit=41 committed_t_plus_tmin=41mismatches=0 committed_t_plus_tmin=0mismatches=41 committed_hit=41 committed_t_plus_tmin=41mismatches=41 committed_hit=41 committed_t_plus_tmin=41mismatches=0 committed_t_plus_tmin=0The
dxr_opacity ...summary line of all 21 runs includes this excerpt:rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36. In this set of runs, DispatchRays was tested only on the unmodified builds at the default TMin.First mismatch at TMin 0.25:
All 41 rays
The saved stderr is byte-identical across the three runs at TMin 0.25 and across the three at 0.5, and the ray IDs are the same at both values:
[committed_hit]. In all 41 the printeddistanceequalsshader_commit_tplus TMin at both values (for example ray 8:shader_commit_t=3,distance=3.25and3.5).shader_commit_t=4. The linked comment reports the same four rays, and ray 16, ending on geometry 2 atshader_commit_t=3on the RX 9060 XT. So for these four rays the two adapters print different final hits, and both carry the TMin offset. Ray 19 at TMin 0.25 here:Limits
68969edthere,25317c6here), and the debug layer was enabled here and unavailable there.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by JVProg on 2026-11-25T11:32:52Z.
RX 9070 XT on driver
32.0.32029.2010: the inline TMin offset still reproduces, at 0/43/43 mismatches for TMin 0/0.25/0.5. The issue body reports the same counts for this card on32.0.31044.16. Measurement only, no source or fixture change.Environment
5fa712eeedc387c5d65d8e3fbdbffaf812499c55(main),git status --shortempty before and after,devpreset (Debug)1002:7550), driver32.0.32029.2010,dxr_tier=11 shader_model_capped_at_6_5=0x6510.0.26100.98181.9.2602.17 (21d28f727)debug_layer=unavailableon every run), so there are no debug-layer diagnosticsRegistered tests (TMin 0.25), 3 runs
dxr_opacity_hardwarefailed in 3/3 runs.dxr_opacity_pipeline_hardware,dxr_opacity_warpanddxr_opacity_pipeline_warppassed in 3/3 runs. No skips.TMin sweep, 3 runs per cell
offscreen_check.exe <hardware|warp> <--dxr-opacity|--dxr-opacity-pipeline> --tmin <value>All runs reported
rays=126 hits=94 shader_commits=42 misses=32. At both positive values the failing hardware runs reportedmismatches=43 committed_hit=43 committed_t_plus_tmin=43and exited 1; all other runs exited 0. WARP inline also reported the toleratedwarp_after_commit=11.First mismatch at TMin 0.25:
Limits
One adapter, one driver, one Windows build. The comparison with the issue body is not driver-only: that run used commit
1ccc326, MSVC 19.44.35221 and DXC1.8.2502.11. The fixture prints only the first 16 failing rays, so I did not compare the full set of ray IDs. No ISA capture.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by chasegrindy on 2026-11-25T22:13:32Z.
One more RDNA 3 data point: RX 7900 XTX (
1002:744c), driver32.0.32015.7029. I got the same0/41/41pattern as the RX 7800 XT report.These are saved Release runs from
0aa6522c29a0db93848fb33c4e3f01987bace64e, not a retest of currentmain. I changed only the TMin literal and rebuilt for each value. Every mismatch in the two nonzero rows matchedcommitted_t_plus_tmin; on the first ray the expected distance was 1 and the result was 1.25 or 1.5. WARP10.0.26100.9818had zero distance mismatches in each repeat (its separate continuation diagnostic still appeared). D3D12 debug layer enabled, zero errors/warnings. No ISA inspection or workaround.AI-assisted write-up: GPT-6.1-sol, GPT-6.2-sol and Nemotron 3 Ultra. Measurements ran locally.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-01T01:28:13Z.
DXR opacity TMin sweep on RDNA 2 integrated graphics
The Radeon iGPU passed the strict origin-relative comparison at
TMin0, 0.25, and 0.5 in both inline RayQuery and DispatchRays. The RTX 5080 and in-box WARP passed the same sweep. Every invocation reportedmismatches=0 committed_t_plus_tmin=0. Maintainer’s request for an independent sweepEnvironment
a3bfd01962d6a6d6a9584fd9e29f4b8613b05a02onmain, built with thedevpreset (Debug).debug_layer=unavailableon all 18 invocations. The fixture reportedshader_model_capped_at_6_5=0x65on all three targets.1002:13c032.0.21030.200110de:2c0232.0.16.21401414:008c10.0.26100.9818Results
Each entry is
mismatches / committed_t_plus_tmin. The two backends used the same source-built ray set. All 18 processes exited 0.TMinThe shared reference summary was
rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36. For shader-committed non-opaque hits, the fixture checked both the candidate distance at commit and the final returned distance against the origin-relative reference using a1e-5relative tolerance. Both comparisons passed. The sweep produced summary counters only. The harness prints per-ray candidate-at-commit and final values when a comparison fails.Inline WARP separately reported
warp_after_commit=11at every TMin. This counter tracks continuation after a first-hit commit, which the fixture tolerates on inline WARP when the final hit and all other checks pass.TMin=0was the diagnostic input.Reproduction
From the repository root, I ran both operations at each TMin once per target.
Prepared with AI assistance. The fixture commands ran locally.