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
MasterDomino commented 2026-11-23 21:14:50 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-23T21:14:50Z.


Summary

dxr_opacity_hardware fails on RDNA 4 because CommittedRayT() of a shader-committed non-opaque hit is the true distance plus TMin. docs/experiments.md records 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

  • Commit 1ccc326 (main), clean tree, dev preset
  • AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31044.16, DXR tier 1.1
  • Windows 11 26H2, build 26300.9974
  • MSVC 19.44.35221, Windows SDK 10.0.26100.0, DXC 1.8.2502.11
  • D3D12 debug layer enabled, debug_errors=0 debug_warnings=0 on every run below

1. 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, rebuilt offscreen_check, ran each backend three times and then restored the file. The committed_t_plus_tmin diagnostic reads TMin from the ray data, so it follows the change.

TMin --dxr-opacity (inline RayQuery) --dxr-opacity-pipeline (DispatchRays)
0 mismatches=0 ×3 mismatches=0 ×3
0.25 (committed) mismatches=43 committed_t_plus_tmin=43 ×3 mismatches=0 ×3
0.5 mismatches=43 committed_t_plus_tmin=43 ×3 mismatches=0 ×3

For example, ray 1 reports shader_commit_t=1 (the candidate distance at the commit, correct) and a committed distance=1.25 at TMin 0.25, or 1.5 at 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.cso from 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; official rga-windows-x64-2.15.zip, SHA-256 matched the release digest).

The query struct is loaded into s[8:11] (origin, TMin = s11) and s[12:15] (direction, TMax = s15). The traversal moves the ray start to TMin:

	s_sub_f32 s7, s15, s11          ; internal TMax = TMax - TMin
	s_fmac_f32 s8, s11, s12         ; origin += TMin * direction (also s9, s10)

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):

	v_dual_add_f32 v36, s11, v6 :: v_dual_add_f32 v11, s11, v11   ; CommittedRayT(), CandidateTriangleRayT()
	v_cndmask_b32_e64 v16, v36, s15, vcc_lo                        ; limit = nothing committed ? TMax : CommittedRayT()
	v_cmp_lt_f32_e64 s28, s11, v11                                 ; t > ray.TMin
	...
	v_cndmask_b32_e64 v35, v6, v11, s30
	v_cndmask_b32_e32 v6, v35, v6, vcc_lo                          ; CommitNonOpaqueTriangleHit: committed := v11
	v_dual_cndmask_b32 v4, v37, v4 :: v_dual_cndmask_b32 v31, v11, v31   ; shaderCommitT := v11

and before the final store:

	v_dual_add_f32 v32, s11, v6 :: v_dual_lshlrev_b32 v3, 6, v0    ; CommittedRayT() for results[i].w
	buffer_store_b128 v[29:32], v0, s[0:3], null idxen

At the commit, the committed distance takes v11, which already includes + TMin, and CommittedRayT() 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

  • One adapter and one driver. The earlier RX 9070 XT report in docs/experiments.md was on 32.0.32015.7029, and I also saw the same 43 rays on 32.0.31035.1003.
  • RGA builds its own pipeline around the blob, so the ISA is the driver's code for this shader, not a capture of the pipeline offscreen_check creates. I followed the committed-distance register through the commit and the final store, but did not trace every reuse of v6 elsewhere in the traversal loop. The runtime TMin scan is the stronger evidence.
  • Opaque (automatic) commits and the ACCEPT_FIRST_HIT_AND_END_SEARCH path were not separately isolated.
  • Nothing here says anything about Xbox Series hardware. The fixture stays strict and keeps failing on this adapter.

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.md already passes at TMin 0.25).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6568974494 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-23T21:14:50Z. --- ## Summary `dxr_opacity_hardware` fails on RDNA 4 because `CommittedRayT()` of a shader-committed non-opaque hit is the true distance plus TMin. `docs/experiments.md` records 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 - Commit `1ccc326` (`main`), clean tree, `dev` preset - AMD Radeon RX 9070 XT (`1002:7550`), driver `32.0.31044.16`, DXR tier 1.1 - Windows 11 26H2, build 26300.9974 - MSVC 19.44.35221, Windows SDK 10.0.26100.0, DXC `1.8.2502.11` - D3D12 debug layer enabled, `debug_errors=0 debug_warnings=0` on every run below ## 1. 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, rebuilt `offscreen_check`, ran each backend three times and then restored the file. The `committed_t_plus_tmin` diagnostic reads TMin from the ray data, so it follows the change. | TMin | `--dxr-opacity` (inline RayQuery) | `--dxr-opacity-pipeline` (DispatchRays) | |---|---|---| | 0 | `mismatches=0` ×3 | `mismatches=0` ×3 | | 0.25 (committed) | `mismatches=43 committed_t_plus_tmin=43` ×3 | `mismatches=0` ×3 | | 0.5 | `mismatches=43 committed_t_plus_tmin=43` ×3 | `mismatches=0` ×3 | For example, ray 1 reports `shader_commit_t=1` (the candidate distance at the commit, correct) and a committed `distance=1.25` at TMin 0.25, or `1.5` at 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.cso` from 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`; official `rga-windows-x64-2.15.zip`, SHA-256 matched the release digest). The query struct is loaded into `s[8:11]` (origin, TMin = `s11`) and `s[12:15]` (direction, TMax = `s15`). The traversal moves the ray start to TMin: ```text s_sub_f32 s7, s15, s11 ; internal TMax = TMax - TMin s_fmac_f32 s8, s11, s12 ; origin += TMin * direction (also s9, s10) ``` 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): ```text v_dual_add_f32 v36, s11, v6 :: v_dual_add_f32 v11, s11, v11 ; CommittedRayT(), CandidateTriangleRayT() v_cndmask_b32_e64 v16, v36, s15, vcc_lo ; limit = nothing committed ? TMax : CommittedRayT() v_cmp_lt_f32_e64 s28, s11, v11 ; t > ray.TMin ... v_cndmask_b32_e64 v35, v6, v11, s30 v_cndmask_b32_e32 v6, v35, v6, vcc_lo ; CommitNonOpaqueTriangleHit: committed := v11 v_dual_cndmask_b32 v4, v37, v4 :: v_dual_cndmask_b32 v31, v11, v31 ; shaderCommitT := v11 ``` and before the final store: ```text v_dual_add_f32 v32, s11, v6 :: v_dual_lshlrev_b32 v3, 6, v0 ; CommittedRayT() for results[i].w buffer_store_b128 v[29:32], v0, s[0:3], null idxen ``` At the commit, the committed distance takes `v11`, which already includes `+ TMin`, and `CommittedRayT()` 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 - One adapter and one driver. The earlier RX 9070 XT report in `docs/experiments.md` was on `32.0.32015.7029`, and I also saw the same 43 rays on `32.0.31035.1003`. - RGA builds its own pipeline around the blob, so the ISA is the driver's code for this shader, not a capture of the pipeline `offscreen_check` creates. I followed the committed-distance register through the commit and the final store, but did not trace every reuse of `v6` elsewhere in the traversal loop. The runtime TMin scan is the stronger evidence. - Opaque (automatic) commits and the `ACCEPT_FIRST_HIT_AND_END_SEARCH` path were not separately isolated. - Nothing here says anything about Xbox Series hardware. The fixture stays strict and keeps failing on this adapter. 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.md` already passes at TMin 0.25). AI-assisted.
R0Y00 commented 2026-11-24 06:49:41 +00:00 (Migrated from github.com)
Author
Contributor

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 contract

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114285366 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7114285366). Originally posted by [R0Y00](https://github.com/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 contract](https://microsoft.github.io/DirectX-Specs/d3d/Raytracing.html#rayquery-committedrayt)
triggered02 commented 2026-11-24 06:49:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T21:31:29Z.


Taking an independent measurement of the inline-vs-pipeline CommittedRayT TMin 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, dev preset. Running the existing dxr_opacity_{hardware,warp} and dxr_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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114574642 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7114574642). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T21:31:29Z. --- Taking an independent measurement of the inline-vs-pipeline `CommittedRayT` TMin 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, `dev` preset. Running the existing `dxr_opacity_{hardware,warp}` and `dxr_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.
triggered02 commented 2026-11-24 06:49:43 +00:00 (Migrated from github.com)
Author
Contributor

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):

  • GTX 1660 SUPER (driver 32.0.16.1074, DXR Tier 1.0): dxr_opacity_hardware skips — inline RayQuery needs Tier 1.1, so no NVIDIA inline data point from this GPU. dxr_opacity_pipeline_hardware passes: 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.
  • In-box WARP 10.0.26100.9818 (Tier 1.1): both dxr_opacity_warp (inline) and dxr_opacity_pipeline_warp pass with mismatches=0, committed_t_plus_tmin=0 on all 42 shader-committed hits. The 11 warp_after_commit rays 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_opacity section of docs/experiments.md).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114619229 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7114619229). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T21:33:31Z. --- Cross-check result (commit `1ccc326`, Windows 11 Pro build 26200, existing dev build, debug layer unavailable): - **GTX 1660 SUPER** (driver 32.0.16.1074, DXR Tier 1.0): `dxr_opacity_hardware` **skips** — inline RayQuery needs Tier 1.1, so no NVIDIA inline data point from this GPU. `dxr_opacity_pipeline_hardware` passes: 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. - **In-box WARP 10.0.26100.9818** (Tier 1.1): both `dxr_opacity_warp` (inline) and `dxr_opacity_pipeline_warp` pass with `mismatches=0`, `committed_t_plus_tmin=0` on all 42 shader-committed hits. The 11 `warp_after_commit` rays 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_opacity` section of docs/experiments.md).
trick-ye commented 2026-11-24 06:49:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by trick-ye on 2026-11-23T23:41:17Z.


RDNA 3 sample: dxr_opacity_hardware also 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

  • Commit 45ad903 (main when the checkout was cloned at 23:16 UTC on 2026-11-23; upstream main advanced before the runs), clean tree, dev preset
  • AMD Radeon RX 7800 XT (1002:747e), driver 32.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.
  • Windows 11 Pro, build 26200.9974
  • MSVC 19.42.34436, Windows SDK 10.0.26100.0, DXC 1.9.2602.17
  • D3D12 debug layer enabled (backend=hardware debug_layer=enabled), debug_errors=0 debug_warnings=0 on every hardware run below
  • Wave width was not measured or reported.

1. Registered tests at 45ad903

Run from the checkout root, three times:

ctest --preset dev --no-tests=error -j 1 -R '^dxr_opacity_(pipeline_)?(hardware|warp)$' -V

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.

Test Result, 3 of 3 runs Summary line
dxr_opacity_hardware (dxr_backend=inline_ray_query) Failed dxr_opacity rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=41 committed_hit=41 committed_t_plus_tmin=41
dxr_opacity_pipeline_hardware (dxr_backend=dispatch_rays) Passed dxr_opacity rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0
dxr_opacity_warp (WARP 10.0.26100.9818) Passed 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=0
dxr_opacity_pipeline_warp Passed dxr_opacity rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0

Expected: mismatches=0 on the inline path. First mismatch, verbatim and identical in all three runs:

ray=1 flags=0xf0000 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x1 allowed=0x5 actual word0=0x111 instance=1 geometry=0 primitive=0 distance=1.25 shader_commit_t=1

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, driver 32.0.31044.16, DXC 1.8.2502.11. tests/dxr_opacity.cpp, tests/dxr_opacity_reference.h and tests/ray_candidates.hlsl are unchanged between 1ccc326 and 45ad903. 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 at tests/dxr_opacity_reference.h:82, rebuild offscreen_check, run each backend three times, then restore the file (git status --short empty afterwards). From the scan worktree's out/build/dev directory, the equivalent commands were:

.\offscreen_check.exe hardware --dxr-opacity
.\offscreen_check.exe hardware --dxr-opacity-pipeline
TMin --dxr-opacity (inline RayQuery) --dxr-opacity-pipeline (DispatchRays)
0 mismatches=0 committed_t_plus_tmin=0 ×3, no failure reported mismatches=0 committed_t_plus_tmin=0 ×3, no failure reported
0.25 (committed) mismatches=41 committed_hit=41 committed_t_plus_tmin=41 ×3, CPU-reference failure reported mismatches=0 committed_t_plus_tmin=0 ×3, no failure reported
0.5 mismatches=41 committed_hit=41 committed_t_plus_tmin=41 ×3, CPU-reference failure reported mismatches=0 committed_t_plus_tmin=0 ×3, no failure reported

The cells are excerpts of the dxr_opacity rays=126 ... summary line. Ray 1 reports distance=1.25 shader_commit_t=1 at TMin 0.25 and distance=1.5 shader_commit_t=1 at 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

  • One adapter, one driver, one RDNA 3 card. Three runs per configuration.
  • No ISA capture. I did not run Radeon GPU Analyzer, so this says nothing about where the offset arises on this adapter, only that the runtime result follows TMin the same way.
  • The difference between the two totals (41 and 43) is not explained.
  • committed_t_plus_tmin counts 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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117244027 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7117244027). Originally posted by [trick-ye](https://github.com/trick-ye) on 2026-11-23T23:41:17Z. --- RDNA 3 sample: `dxr_opacity_hardware` also 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 - Commit `45ad903` (`main` when the checkout was cloned at 23:16 UTC on 2026-11-23; upstream `main` advanced before the runs), clean tree, `dev` preset - AMD Radeon RX 7800 XT (`1002:747e`), driver `32.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. - Windows 11 Pro, build 26200.9974 - MSVC 19.42.34436, Windows SDK 10.0.26100.0, DXC `1.9.2602.17` - D3D12 debug layer enabled (`backend=hardware debug_layer=enabled`), `debug_errors=0 debug_warnings=0` on every hardware run below - Wave width was not measured or reported. ## 1. Registered tests at `45ad903` Run from the checkout root, three times: ```powershell ctest --preset dev --no-tests=error -j 1 -R '^dxr_opacity_(pipeline_)?(hardware|warp)$' -V ``` 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. | Test | Result, 3 of 3 runs | Summary line | |---|---|---| | `dxr_opacity_hardware` (`dxr_backend=inline_ray_query`) | Failed | `dxr_opacity rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=41 committed_hit=41 committed_t_plus_tmin=41` | | `dxr_opacity_pipeline_hardware` (`dxr_backend=dispatch_rays`) | Passed | `dxr_opacity rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0` | | `dxr_opacity_warp` (WARP `10.0.26100.9818`) | Passed | `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=0` | | `dxr_opacity_pipeline_warp` | Passed | `dxr_opacity rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0` | Expected: `mismatches=0` on the inline path. First mismatch, verbatim and identical in all three runs: ```text ray=1 flags=0xf0000 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x1 allowed=0x5 actual word0=0x111 instance=1 geometry=0 primitive=0 distance=1.25 shader_commit_t=1 ``` 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`, driver `32.0.31044.16`, DXC `1.8.2502.11`. `tests/dxr_opacity.cpp`, `tests/dxr_opacity_reference.h` and `tests/ray_candidates.hlsl` are unchanged between `1ccc326` and `45ad903`. 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 at `tests/dxr_opacity_reference.h:82`, rebuild `offscreen_check`, run each backend three times, then restore the file (`git status --short` empty afterwards). From the scan worktree's `out/build/dev` directory, the equivalent commands were: ```powershell .\offscreen_check.exe hardware --dxr-opacity .\offscreen_check.exe hardware --dxr-opacity-pipeline ``` | TMin | `--dxr-opacity` (inline RayQuery) | `--dxr-opacity-pipeline` (DispatchRays) | |---|---|---| | 0 | `mismatches=0 committed_t_plus_tmin=0` ×3, no failure reported | `mismatches=0 committed_t_plus_tmin=0` ×3, no failure reported | | 0.25 (committed) | `mismatches=41 committed_hit=41 committed_t_plus_tmin=41` ×3, CPU-reference failure reported | `mismatches=0 committed_t_plus_tmin=0` ×3, no failure reported | | 0.5 | `mismatches=41 committed_hit=41 committed_t_plus_tmin=41` ×3, CPU-reference failure reported | `mismatches=0 committed_t_plus_tmin=0` ×3, no failure reported | The cells are excerpts of the `dxr_opacity rays=126 ...` summary line. Ray 1 reports `distance=1.25 shader_commit_t=1` at TMin 0.25 and `distance=1.5 shader_commit_t=1` at 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 - One adapter, one driver, one RDNA 3 card. Three runs per configuration. - No ISA capture. I did not run Radeon GPU Analyzer, so this says nothing about where the offset arises on this adapter, only that the runtime result follows TMin the same way. - The difference between the two totals (41 and 43) is not explained. - `committed_t_plus_tmin` counts 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).
R0Y00 commented 2026-11-24 06:49:53 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7117347500 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7117347500). Originally posted by [R0Y00](https://github.com/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.
roansystemlabs commented 2026-11-24 06:49:58 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118439382 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7118439382). Originally posted by [roansystemlabs](https://github.com/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.
roansystemlabs commented 2026-11-24 06:49:58 +00:00 (Migrated from github.com)
Author
Contributor

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

  • Commit f7c9f57 (main, #1064 merge), clean tree, dev preset (Debug); only offscreen_check was built
  • NVIDIA GeForce RTX 3070 (10de:2484), driver 621.01 (UMD 32.0.16.2101). offscreen_check reports dxr_tier=12 shader_model_capped_at_6_5=0x65, so --dxr-opacity runs dxr_backend=inline_ray_query instead of skipping
  • In-box WARP 10.0.26100.9818 (dxr_tier=11)
  • Windows 11 25H2, build 26200.9974
  • MSVC 19.44.35230, Windows SDK 10.0.26100.0 dxc.exe (reports dxcompiler 1.9.2602.17), CMake 3.31.6
  • D3D12 debug layer enabled (debug_layer=enabled); debug_errors=0 debug_warnings=0 on every run below, including the mutated ones
  • The GPU also hosts local services (about 6 GB of 8 GB VRAM in use, 1–5 % utilization before each run). These are pass/fail results; no timings are reported.

1. Registered tests

Three serial runs from the clean tree, 4/4 passed each time, no capability skips:

ctest --preset dev --no-tests=error -j 1 -R '^dxr_opacity_(pipeline_)?(hardware|warp)$' -V
Test Summary line (identical in 3 of 3 runs)
dxr_opacity_hardware (inline) rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0
dxr_opacity_pipeline_hardware rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0
dxr_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=0
dxr_opacity_pipeline_warp rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0

2. TMin scan

Same method as the issue body, in a separate worktree: change the TMin literal at tests/dxr_opacity_reference.h:82, rebuild offscreen_check, run each mode three times, restore the file. From out/build/dev:

.\offscreen_check.exe hardware --dxr-opacity
.\offscreen_check.exe hardware --dxr-opacity-pipeline
.\offscreen_check.exe warp --dxr-opacity
.\offscreen_check.exe warp --dxr-opacity-pipeline
TMin RTX 3070 inline RTX 3070 DispatchRays WARP inline WARP DispatchRays
0 mismatches=0 committed_t_plus_tmin=0 ×3 mismatches=0 committed_t_plus_tmin=0 ×3 mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0 ×3 mismatches=0 committed_t_plus_tmin=0 ×3
0.25 (committed) mismatches=0 committed_t_plus_tmin=0 ×3 mismatches=0 committed_t_plus_tmin=0 ×3 mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0 ×3 mismatches=0 committed_t_plus_tmin=0 ×3
0.5 mismatches=0 committed_t_plus_tmin=0 ×3 mismatches=0 committed_t_plus_tmin=0 ×3 mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0 ×3 mismatches=0 committed_t_plus_tmin=0 ×3

Every run kept hits=94 shader_commits=42 misses=32 and 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.hlsl locally so that the returned distance is q.CommittedRayT() + ray.TMin whenever 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 --short empty afterwards).

  • RTX 3070 inline: 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:
    ray=1 flags=0xf0000 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x1 allowed=0x5 actual word0=0x111 instance=1 geometry=0 primitive=0 distance=1.25 shader_commit_t=1
    
    At TMin 0.5 the same ray reports distance=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.
  • WARP inline: also fails, 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.
  • DispatchRays stays at mismatches=0 on both adapters, since the mutation only touches the inline path.

Limits

  • One Ampere card, one driver, three runs per configuration. Not tested: other NVIDIA generations, the Release preset, app-local WARP 1.0.x.
  • Per-ray candidate-at-commit and final values are printed only for failing rays, so the values quoted above come from the mutated control.
  • No ISA or driver-level capture on the NVIDIA side, so this says nothing about how the driver implements the commit, only that the returned CommittedRayT is origin-relative here.

I'll carry these raw counts and the environment into the dxr_opacity section of docs/experiments.md with 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118535804 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7118535804). Originally posted by [roansystemlabs](https://github.com/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 - Commit `f7c9f57` (`main`, #1064 merge), clean tree, `dev` preset (Debug); only `offscreen_check` was built - NVIDIA GeForce RTX 3070 (`10de:2484`), driver 621.01 (UMD `32.0.16.2101`). `offscreen_check` reports `dxr_tier=12 shader_model_capped_at_6_5=0x65`, so `--dxr-opacity` runs `dxr_backend=inline_ray_query` instead of skipping - In-box WARP `10.0.26100.9818` (`dxr_tier=11`) - Windows 11 25H2, build 26200.9974 - MSVC 19.44.35230, Windows SDK 10.0.26100.0 `dxc.exe` (reports dxcompiler `1.9.2602.17`), CMake 3.31.6 - D3D12 debug layer enabled (`debug_layer=enabled`); `debug_errors=0 debug_warnings=0` on every run below, including the mutated ones - The GPU also hosts local services (about 6 GB of 8 GB VRAM in use, 1–5 % utilization before each run). These are pass/fail results; no timings are reported. ## 1. Registered tests Three serial runs from the clean tree, 4/4 passed each time, no capability skips: ```powershell ctest --preset dev --no-tests=error -j 1 -R '^dxr_opacity_(pipeline_)?(hardware|warp)$' -V ``` | Test | Summary line (identical in 3 of 3 runs) | |---|---| | `dxr_opacity_hardware` (inline) | `rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0` | | `dxr_opacity_pipeline_hardware` | `rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0` | | `dxr_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=0` | | `dxr_opacity_pipeline_warp` | `rays=126 hits=94 shader_commits=42 misses=32 first_hit_rays=36 mismatches=0 committed_t_plus_tmin=0` | ## 2. TMin scan Same method as the issue body, in a separate worktree: change the TMin literal at `tests/dxr_opacity_reference.h:82`, rebuild `offscreen_check`, run each mode three times, restore the file. From `out/build/dev`: ```powershell .\offscreen_check.exe hardware --dxr-opacity .\offscreen_check.exe hardware --dxr-opacity-pipeline .\offscreen_check.exe warp --dxr-opacity .\offscreen_check.exe warp --dxr-opacity-pipeline ``` | TMin | RTX 3070 inline | RTX 3070 DispatchRays | WARP inline | WARP DispatchRays | |---|---|---|---|---| | 0 | `mismatches=0 committed_t_plus_tmin=0` ×3 | `mismatches=0 committed_t_plus_tmin=0` ×3 | `mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0` ×3 | `mismatches=0 committed_t_plus_tmin=0` ×3 | | 0.25 (committed) | `mismatches=0 committed_t_plus_tmin=0` ×3 | `mismatches=0 committed_t_plus_tmin=0` ×3 | `mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0` ×3 | `mismatches=0 committed_t_plus_tmin=0` ×3 | | 0.5 | `mismatches=0 committed_t_plus_tmin=0` ×3 | `mismatches=0 committed_t_plus_tmin=0` ×3 | `mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0` ×3 | `mismatches=0 committed_t_plus_tmin=0` ×3 | Every run kept `hits=94 shader_commits=42 misses=32` and 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.hlsl` locally so that the returned distance is `q.CommittedRayT() + ray.TMin` whenever 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 --short` empty afterwards). - RTX 3070 inline: `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: ```text ray=1 flags=0xf0000 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x1 allowed=0x5 actual word0=0x111 instance=1 geometry=0 primitive=0 distance=1.25 shader_commit_t=1 ``` At TMin 0.5 the same ray reports `distance=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. - WARP inline: also fails, `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. - DispatchRays stays at `mismatches=0` on both adapters, since the mutation only touches the inline path. ## Limits - One Ampere card, one driver, three runs per configuration. Not tested: other NVIDIA generations, the Release preset, app-local WARP 1.0.x. - Per-ray candidate-at-commit and final values are printed only for failing rays, so the values quoted above come from the mutated control. - No ISA or driver-level capture on the NVIDIA side, so this says nothing about how the driver implements the commit, only that the returned `CommittedRayT` is origin-relative here. I'll carry these raw counts and the environment into the `dxr_opacity` section of `docs/experiments.md` with 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.
R0Y00 commented 2026-11-24 06:49:59 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118606838 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7118606838). Originally posted by [R0Y00](https://github.com/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.
Toons29 commented 2026-11-24 06:50:02 +00:00 (Migrated from github.com)
Author
Contributor

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 on 32.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

  • Built from main a7710b73 plus the test-only change in #1126 (tests/pe_package_preflight_check.py, nothing DXR-related), dev preset
  • AMD Radeon RX 9070 (1002:7550), driver 32.0.32029.2010, dxr_tier=11 shader_model_capped_at_6_5=0x65, only display adapter
  • Windows 11 Home, build 26300
  • MSVC 19.44.35230, Windows SDK 10.0.26100.0, DXC 1.9.2602.17 (SDK copy)
  • D3D12 debug layer unavailable (debug_layer=unavailable, Graphics Tools not installed)

Result

ctest --preset dev --no-tests=error -R '^dxr_opacity' -V

75% tests passed, 1 tests failed out of 4, no capability skips. I got the same summary in an earlier full-suite run at 78a6b31e.

Test Result Summary line
dxr_opacity_hardware (inline_ray_query) Failed mismatches=43 committed_hit=43 committed_t_plus_tmin=43
dxr_opacity_pipeline_hardware (dispatch_rays) Passed mismatches=0 committed_t_plus_tmin=0
dxr_opacity_warp (WARP 10.0.26100.9818) Passed mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0
dxr_opacity_pipeline_warp Passed mismatches=0 committed_t_plus_tmin=0

All 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119168095 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7119168095). Originally posted by [Toons29](https://github.com/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 on `32.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 - Built from `main` `a7710b73` plus the test-only change in #1126 (`tests/pe_package_preflight_check.py`, nothing DXR-related), `dev` preset - AMD Radeon RX 9070 (`1002:7550`), driver `32.0.32029.2010`, `dxr_tier=11 shader_model_capped_at_6_5=0x65`, only display adapter - Windows 11 Home, build 26300 - MSVC 19.44.35230, Windows SDK 10.0.26100.0, DXC `1.9.2602.17` (SDK copy) - D3D12 debug layer unavailable (`debug_layer=unavailable`, Graphics Tools not installed) ## Result ```powershell ctest --preset dev --no-tests=error -R '^dxr_opacity' -V ``` `75% tests passed, 1 tests failed out of 4`, no capability skips. I got the same summary in an earlier full-suite run at `78a6b31e`. | Test | Result | Summary line | |---|---|---| | `dxr_opacity_hardware` (`inline_ray_query`) | Failed | `mismatches=43 committed_hit=43 committed_t_plus_tmin=43` | | `dxr_opacity_pipeline_hardware` (`dispatch_rays`) | Passed | `mismatches=0 committed_t_plus_tmin=0` | | `dxr_opacity_warp` (WARP `10.0.26100.9818`) | Passed | `mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0` | | `dxr_opacity_pipeline_warp` | Passed | `mismatches=0 committed_t_plus_tmin=0` | All 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.
R0Y00 commented 2026-11-24 06:50:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T01:45:21Z.


Thanks for the RX 9070 run. At a7710b73 with driver 32.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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119415195 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7119415195). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T01:45:21Z. --- Thanks for the RX 9070 run. At `a7710b73` with driver `32.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.
FAJIFBEFJHA commented 2026-11-24 06:50:17 +00:00 (Migrated from github.com)
Author
Contributor

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-opacity and --dxr-opacity-pipeline diagnostics, 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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7121756811 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7121756811). Originally posted by [FAJIFBEFJHA](https://github.com/FAJIFBEFJHA) on 2026-11-24T04:09:18Z. --- I'd like to add an optional `--tmin <value>` argument to the existing `--dxr-opacity` and `--dxr-opacity-pipeline` diagnostics, 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).
R0Y00 commented 2026-11-24 11:03:02 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7129492030 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7129492030). Originally posted by [R0Y00](https://github.com/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.
FAJIFBEFJHA commented 2026-11-24 20:01:20 +00:00 (Migrated from github.com)
Author
Contributor

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.

  • Tested 90d39cadb27c91d5d2096654f1a02117db615736, based on upstream main at 813045b3c13f7bad20d8577557b621ee869ccbba, with the dev preset. I built offscreen_check once and passed --tmin <value> to --dxr-opacity and --dxr-opacity-pipeline.
  • AMD Radeon RX 7600 (1002:7480), driver 32.0.32029.2010, and Microsoft Basic Render Driver (1414:008c), in-box WARP 10.0.26100.9818. Both reported DXR Tier 1.1.
  • Windows 11 Pro 26H2 x64 build 26300.9974, MSVC 19.52.37029.0, Windows SDK 10.0.26100.0 and DXC 1.8.2502.11. The D3D12 debug layer was enabled with zero errors and warnings in all runs.
Adapter and path TMin 0 TMin 0.25 TMin 0.5
RX 7600 inline RayQuery PASS · 0 / 0 / 0 FAIL · 41 / 41 / 41 FAIL · 41 / 41 / 41
RX 7600 DispatchRays PASS · 0 / 0 / 0 PASS · 0 / 0 / 0 PASS · 0 / 0 / 0
WARP inline RayQuery PASS · 0 / 0 / 0 PASS · 0 / 0 / 0 PASS · 0 / 0 / 0
WARP DispatchRays PASS · 0 / 0 / 0 PASS · 0 / 0 / 0 PASS · 0 / 0 / 0

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_commit continuations per run.

All 41 mismatches in each RX 7600 failure counted as both committed_hit and committed_t_plus_tmin. Ray 1 was the first mismatch in every failing run. Its shader_commit_t=1 matched the reference at both positive TMin values. The final distance was 1.25 at TMin 0.25 and 1.5 at TMin 0.5. These measurements characterize the returned distances on this adapter and driver.

The diagnostic option is in PR #1862.

AI-assisted (Codex and ChatGPT).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7142537498 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7142537498). Originally posted by [FAJIFBEFJHA](https://github.com/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. - Tested `90d39cadb27c91d5d2096654f1a02117db615736`, based on upstream `main` at `813045b3c13f7bad20d8577557b621ee869ccbba`, with the `dev` preset. I built `offscreen_check` once and passed `--tmin <value>` to `--dxr-opacity` and `--dxr-opacity-pipeline`. - AMD Radeon RX 7600 (`1002:7480`), driver `32.0.32029.2010`, and Microsoft Basic Render Driver (`1414:008c`), in-box WARP `10.0.26100.9818`. Both reported DXR Tier 1.1. - Windows 11 Pro 26H2 x64 build `26300.9974`, MSVC `19.52.37029.0`, Windows SDK `10.0.26100.0` and DXC `1.8.2502.11`. The D3D12 debug layer was enabled with zero errors and warnings in all runs. | Adapter and path | TMin 0 | TMin 0.25 | TMin 0.5 | | --- | --- | --- | --- | | RX 7600 inline RayQuery | PASS · 0 / 0 / 0 | FAIL · 41 / 41 / 41 | FAIL · 41 / 41 / 41 | | RX 7600 DispatchRays | PASS · 0 / 0 / 0 | PASS · 0 / 0 / 0 | PASS · 0 / 0 / 0 | | WARP inline RayQuery | PASS · 0 / 0 / 0 | PASS · 0 / 0 / 0 | PASS · 0 / 0 / 0 | | WARP DispatchRays | PASS · 0 / 0 / 0 | PASS · 0 / 0 / 0 | PASS · 0 / 0 / 0 | 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_commit` continuations per run. All 41 mismatches in each RX 7600 failure counted as both `committed_hit` and `committed_t_plus_tmin`. Ray 1 was the first mismatch in every failing run. Its `shader_commit_t=1` matched the reference at both positive TMin values. The final distance was `1.25` at TMin `0.25` and `1.5` at TMin `0.5`. These measurements characterize the returned distances on this adapter and driver. The diagnostic option is in [PR #1862](https://github.com/R0Y00/Xbox2Windows/pull/1862). AI-assisted (Codex and ChatGPT).
lantiumBot commented 2026-11-24 21:01:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-24T20:06:29Z.


RX 9060 XT (RDNA 4, gfx1200): the TMin scan, the gfx1200 ISA, 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

  • Commit 68969ed86ac253615a910d24abd0177938584bd0 (main), clean tree before and after, dev preset (Debug)
  • AMD Radeon RX 9060 XT (1002:7590), driver 32.0.32029.2010, dxr_tier=11 shader_model_capped_at_6_5=0x65. It is the only physical display adapter in this PC.
  • In-box WARP 10.0.26100.10068 (dxr_tier=11)
  • Windows 11 Pro 26H2, build 26300.10075; MSVC 19.52.37029; DXC 1.9.2602.17 (21d28f727) from Windows SDK 10.0.26100.0
  • D3D12 debug layer unavailable (debug_layer=unavailable in every run), so no debug diagnostics are claimed
  • Radeon GPU Analyzer 2.15.0.30, DX12 mode

1. TMin scan

Same method as the issue body: the TMin literal at tests/dxr_opacity_reference.h:82 changed locally, offscreen_check rebuilt, then both changed files (see section 2 for the second) restored with git checkout (git status --short empty afterwards). Hardware runs three times each, WARP once each:

.\offscreen_check.exe hardware --dxr-opacity
.\offscreen_check.exe hardware --dxr-opacity-pipeline
.\offscreen_check.exe warp --dxr-opacity
.\offscreen_check.exe warp --dxr-opacity-pipeline
TMin RX 9060 XT inline RayQuery RX 9060 XT DispatchRays WARP inline WARP DispatchRays
0 mismatches=0 committed_t_plus_tmin=0 x3 mismatches=0 committed_t_plus_tmin=0 x3 mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0 mismatches=0 committed_t_plus_tmin=0
0.25 (committed) mismatches=43 committed_hit=43 committed_t_plus_tmin=43 x3 mismatches=0 committed_t_plus_tmin=0 x3 mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0 mismatches=0 committed_t_plus_tmin=0
0.5 mismatches=43 committed_hit=43 committed_t_plus_tmin=43 x3 mismatches=0 committed_t_plus_tmin=0 x3 mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0 mismatches=0 committed_t_plus_tmin=0

Every 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:

ray=1 flags=0xf0000 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x1 allowed=0x5 actual word0=0x111 instance=1 geometry=0 primitive=0 distance=1.25 shader_commit_t=1

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:

1,7,8,10,11,16,17,19,20,28,29,31,32,40,41,49,50,61,62,70,71,82,83,85,86,91,92,94,95,100,101,103,104,106,107,112,113,115,116,121,122,124,125
  • All 43 carry only [committed_hit], and in all 43 the final distance equals shader_commit_t plus TMin at both values (for example ray 8: shader_commit_t=3, distance=3.25 and 3.5).
  • Recomputing the reference from the hand-derived table in tests/dxr_opacity_reference.h gives the 42 rays it counts as shader commits. All 42 are in the list. The 43rd is ray 17.
  • Ray 17 (flags=0x40004: first-hit search, accept mask 0x4, instance 1) has an opaque closest hit in the reference, geometry 1 at distance 2, and committable=0xe. On this adapter it ends on geometry 2, which the shader commits at shader_commit_t=3, and reports distance=3.25. Ending there is allowed for a first-hit search; the distance is still TMin too large.
  • Five more first-hit rays end on geometry 2 at shader_commit_t=3 where 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. gfx1200 ISA

ray_candidates.cso from this build (SHA-256 09c164619f81aa74179bb96e81d5622e666adc5f3e53e06efbd080ffaba6ab13):

rga.exe -s dx12 -c gfx1200 --cs-blob ray_candidates.cso --isa ray_candidates.isa

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-256 7deab9610a5d4e2a2b8966b291ff17ddedce53e3129d54e4cfb0b3bcd65cc7cc); which DLL the default mode loads is not identified. The listing starts with s_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: v17 for v16 in the limit select, v29, v2, v5 for v32, v3, v0 in the final add, and v[26:29] for v[29:32] in the store, which also carries scope:SCOPE_DEV here. The committed-distance select is one half of a v_dual_cndmask_b32, and the shader_commit_t select is the separate v_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_alu and s_wait_alu lines are dropped and ... skips other instructions:

	s_sub_f32 s7, s15, s11
	...
	s_fmac_f32 s8, s11, s12
	s_fmac_f32 s9, s11, s13
	s_fmac_f32 s10, s11, s14
	...
	v_dual_add_f32 v36, s11, v6 :: v_dual_add_f32 v11, s11, v11
	v_cmp_eq_i32_e32 vcc_lo, 0, v7
	v_cndmask_b32_e64 v17, v36, s15, vcc_lo
	v_cndmask_b32_e32 v6, v36, v6, vcc_lo
	v_cmp_lt_f32_e64 s28, s11, v11
	v_cmp_ge_f32_e32 vcc_lo, v17, v11
	...
	v_cndmask_b32_e32 v28, v11, v28, vcc_lo
	...
	v_cndmask_b32_e64 v35, v6, v11, s30
	...
	v_dual_cndmask_b32 v6, v35, v6 :: v_dual_cndmask_b32 v5, v34, v5
	...
	v_dual_add_f32 v29, s11, v6 :: v_dual_lshlrev_b32 v2, 6, v5
	...
	buffer_store_b128 v[26:29], v0, s[0:3], null idxen scope:SCOPE_DEV

s11 is added to v11 before v11 can be selected into v6, and s11 is added to v6 again for the stored word. I did not trace the registers further than the issue body did, and I make no claim about the v_cndmask_b32_e32 v6, v36, v6, vcc_lo line beyond listing it.

Limits

  • One adapter, one driver, one Windows build. Three runs per hardware cell, one per WARP cell. Debug layer unavailable.
  • The ISA is RGA's own compile of the blob with the pipeline RGA builds around it, not a capture of the pipeline offscreen_check creates. The run-time scan is the stronger evidence.
  • The reading of the 41 against 43 difference is a hypothesis until an RDNA 3 list exists.
  • Opaque commits were not isolated separately. Nothing here concerns console hardware. The fixture stays strict and keeps failing on this adapter.

AI-assisted (Claude Code - Fable 5.2); runs executed locally on the adapter above.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7143051197 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7143051197). Originally posted by [lantiumBot](https://github.com/lantiumBot) on 2026-11-24T20:06:29Z. --- RX 9060 XT (RDNA 4, `gfx1200`): the TMin scan, the `gfx1200` ISA, 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 - Commit `68969ed86ac253615a910d24abd0177938584bd0` (`main`), clean tree before and after, `dev` preset (Debug) - AMD Radeon RX 9060 XT (`1002:7590`), driver `32.0.32029.2010`, `dxr_tier=11 shader_model_capped_at_6_5=0x65`. It is the only physical display adapter in this PC. - In-box WARP `10.0.26100.10068` (`dxr_tier=11`) - Windows 11 Pro 26H2, build 26300.10075; MSVC 19.52.37029; DXC `1.9.2602.17 (21d28f727)` from Windows SDK 10.0.26100.0 - D3D12 debug layer unavailable (`debug_layer=unavailable` in every run), so no debug diagnostics are claimed - Radeon GPU Analyzer `2.15.0.30`, DX12 mode ## 1. TMin scan Same method as the issue body: the TMin literal at `tests/dxr_opacity_reference.h:82` changed locally, `offscreen_check` rebuilt, then both changed files (see section 2 for the second) restored with `git checkout` (`git status --short` empty afterwards). Hardware runs three times each, WARP once each: ```powershell .\offscreen_check.exe hardware --dxr-opacity .\offscreen_check.exe hardware --dxr-opacity-pipeline .\offscreen_check.exe warp --dxr-opacity .\offscreen_check.exe warp --dxr-opacity-pipeline ``` | TMin | RX 9060 XT inline RayQuery | RX 9060 XT DispatchRays | WARP inline | WARP DispatchRays | |---|---|---|---|---| | 0 | `mismatches=0 committed_t_plus_tmin=0` x3 | `mismatches=0 committed_t_plus_tmin=0` x3 | `mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0` | `mismatches=0 committed_t_plus_tmin=0` | | 0.25 (committed) | `mismatches=43 committed_hit=43 committed_t_plus_tmin=43` x3 | `mismatches=0 committed_t_plus_tmin=0` x3 | `mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0` | `mismatches=0 committed_t_plus_tmin=0` | | 0.5 | `mismatches=43 committed_hit=43 committed_t_plus_tmin=43` x3 | `mismatches=0 committed_t_plus_tmin=0` x3 | `mismatches=0 warp_after_commit=11 committed_t_plus_tmin=0` | `mismatches=0 committed_t_plus_tmin=0` | Every 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: ```text ray=1 flags=0xf0000 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x1 allowed=0x5 actual word0=0x111 instance=1 geometry=0 primitive=0 distance=1.25 shader_commit_t=1 ``` ## 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: ```text 1,7,8,10,11,16,17,19,20,28,29,31,32,40,41,49,50,61,62,70,71,82,83,85,86,91,92,94,95,100,101,103,104,106,107,112,113,115,116,121,122,124,125 ``` - All 43 carry only `[committed_hit]`, and in all 43 the final `distance` equals `shader_commit_t` plus TMin at both values (for example ray 8: `shader_commit_t=3`, `distance=3.25` and `3.5`). - Recomputing the reference from the hand-derived table in `tests/dxr_opacity_reference.h` gives the 42 rays it counts as shader commits. All 42 are in the list. The 43rd is ray 17. - Ray 17 (`flags=0x40004`: first-hit search, accept mask `0x4`, instance 1) has an opaque closest hit in the reference, geometry 1 at distance 2, and `committable=0xe`. On this adapter it ends on geometry 2, which the shader commits at `shader_commit_t=3`, and reports `distance=3.25`. Ending there is allowed for a first-hit search; the distance is still TMin too large. - Five more first-hit rays end on geometry 2 at `shader_commit_t=3` where 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. `gfx1200` ISA `ray_candidates.cso` from this build (SHA-256 `09c164619f81aa74179bb96e81d5622e666adc5f3e53e06efbd080ffaba6ab13`): ```powershell rga.exe -s dx12 -c gfx1200 --cs-blob ray_candidates.cso --isa ray_candidates.isa ``` 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-256 `7deab9610a5d4e2a2b8966b291ff17ddedce53e3129d54e4cfb0b3bcd65cc7cc`); which DLL the default mode loads is not identified. The listing starts with `s_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: `v17` for `v16` in the limit select, `v29`, `v2`, `v5` for `v32`, `v3`, `v0` in the final add, and `v[26:29]` for `v[29:32]` in the store, which also carries `scope:SCOPE_DEV` here. The committed-distance select is one half of a `v_dual_cndmask_b32`, and the `shader_commit_t` select is the separate `v_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_alu` and `s_wait_alu` lines are dropped and `...` skips other instructions: ```text s_sub_f32 s7, s15, s11 ... s_fmac_f32 s8, s11, s12 s_fmac_f32 s9, s11, s13 s_fmac_f32 s10, s11, s14 ... v_dual_add_f32 v36, s11, v6 :: v_dual_add_f32 v11, s11, v11 v_cmp_eq_i32_e32 vcc_lo, 0, v7 v_cndmask_b32_e64 v17, v36, s15, vcc_lo v_cndmask_b32_e32 v6, v36, v6, vcc_lo v_cmp_lt_f32_e64 s28, s11, v11 v_cmp_ge_f32_e32 vcc_lo, v17, v11 ... v_cndmask_b32_e32 v28, v11, v28, vcc_lo ... v_cndmask_b32_e64 v35, v6, v11, s30 ... v_dual_cndmask_b32 v6, v35, v6 :: v_dual_cndmask_b32 v5, v34, v5 ... v_dual_add_f32 v29, s11, v6 :: v_dual_lshlrev_b32 v2, 6, v5 ... buffer_store_b128 v[26:29], v0, s[0:3], null idxen scope:SCOPE_DEV ``` `s11` is added to `v11` before `v11` can be selected into `v6`, and `s11` is added to `v6` again for the stored word. I did not trace the registers further than the issue body did, and I make no claim about the `v_cndmask_b32_e32 v6, v36, v6, vcc_lo` line beyond listing it. ## Limits - One adapter, one driver, one Windows build. Three runs per hardware cell, one per WARP cell. Debug layer unavailable. - The ISA is RGA's own compile of the blob with the pipeline RGA builds around it, not a capture of the pipeline `offscreen_check` creates. The run-time scan is the stronger evidence. - The reading of the 41 against 43 difference is a hypothesis until an RDNA 3 list exists. - Opaque commits were not isolated separately. Nothing here concerns console hardware. The fixture stays strict and keeps failing on this adapter. AI-assisted (Claude Code - Fable 5.2); runs executed locally on the adapter above.
trick-ye commented 2026-11-25 12:01:52 +00:00 (Migrated from github.com)
Author
Contributor

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

  • Commit 25317c63a21d539c1adfcd78a113874a6626d125 (main), dev preset (Debug), git status --short empty before the edit and after the restore
  • AMD Radeon RX 7800 XT (1002:747e), driver 32.0.32029.2010, dxr_tier=11 shader_model_capped_at_6_5=0x65
  • Windows build 26200.9974; MSVC 19.42.34436; DXC 1.9.2602.17 (21d28f727)
  • D3D12 debug layer enabled (backend=hardware debug_layer=enabled); every run below ended with debug_errors=0 debug_warnings=0
  • No capability skip in any run. Wave width is not printed by this fixture.

Commands

Unmodified build, three runs each, before the edit and again after the restore:

.\offscreen_check.exe hardware --dxr-opacity
.\offscreen_check.exe hardware --dxr-opacity-pipeline

Then one local, uncommitted edit, the same one the RDNA 4 comment describes: in tests/dxr_opacity.cpp, if (mismatches < 16) changed to if (mismatches < 1000). offscreen_check rebuilt, three runs each of:

.\offscreen_check.exe hardware --dxr-opacity --tmin 0.25
.\offscreen_check.exe hardware --dxr-opacity --tmin 0.5
.\offscreen_check.exe hardware --dxr-opacity --tmin 0

TMin was set with the --tmin option; tests/dxr_opacity_reference.h was not edited. The print-limit edit was reverted, and offscreen_check was rebuilt before the restored runs.

Observed versus expected

Expected by the fixture: mismatches=0, exit 0.

Build Path TMin Runs Summary line (excerpt), every run Exit
unmodified, before and after inline RayQuery 0.25 (default) 6 (3 before, 3 after) mismatches=41 committed_hit=41 committed_t_plus_tmin=41 1
unmodified, before and after DispatchRays 0.25 (default) 6 (3 before, 3 after) mismatches=0 committed_t_plus_tmin=0 0
print limit raised inline RayQuery 0.25 3 mismatches=41 committed_hit=41 committed_t_plus_tmin=41 1
print limit raised inline RayQuery 0.5 3 mismatches=41 committed_hit=41 committed_t_plus_tmin=41 1
print limit raised inline RayQuery 0 3 mismatches=0 committed_t_plus_tmin=0 0

The 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:

ray=1 flags=0xf0000 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x1 allowed=0x5 actual word0=0x111 instance=1 geometry=0 primitive=0 distance=1.25 shader_commit_t=1

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:

1,7,8,10,11,19,20,28,29,31,32,40,41,49,50,61,62,70,71,82,83,85,86,91,92,94,95,100,101,103,104,106,107,112,113,115,116,121,122,124,125
  • All 41 carry only [committed_hit]. In all 41 the printed distance equals shader_commit_t plus TMin at both values (for example ray 8: shader_commit_t=3, distance=3.25 and 3.5).
  • Against the RDNA 4 list in the linked comment: every ray printed here is in that list. Rays 16 and 17 are in that list and are not printed here. No ray is printed here that is absent there.
  • In 37 of the 41 the printed final geometry equals the reference closest-hit geometry. The other four are rays 19, 61, 100 and 103: the reference closest hit is geometry 0 at distance 1, and this adapter ends on geometry 3 with shader_commit_t=4. The linked comment reports the same four rays, and ray 16, ending on geometry 2 at shader_commit_t=3 on 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:
ray=19 flags=0xf0006 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x8 allowed=0xf actual word0=0x3811 instance=1 geometry=3 primitive=0 distance=4.25 shader_commit_t=4

Limits

  • The list shows which rays mismatch, not why. The raised limit captured all 41 counted mismatches at each positive TMin. Rays 16 and 17 are not among them, and the fixture prints nothing for a ray it does not count, so the logs do not show their final hits on the RX 7800 XT.
  • The linked comment identifies both rays 16 and 17 as first-hit rays. That is consistent with its conditional explanation of the 41 against 43 difference (if RDNA 3 also adds TMin to every shader-committed final hit, only first-hit rays can produce it), but these logs do not establish that every shader-committed final hit on the RX 7800 XT carries the offset.
  • One adapter, one driver, one Windows build, three runs per configuration per build. The two lists come from different commits (68969ed there, 25317c6 here), and the debug layer was enabled here and unavailable there.
  • No ISA is included. Nothing here concerns console hardware. The reference checks were unchanged. Inline RayQuery failed at TMin 0.25 and 0.5 and passed at TMin 0, and DispatchRays passed at the default TMin.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160624814 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7160624814). Originally posted by [trick-ye](https://github.com/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 - Commit `25317c63a21d539c1adfcd78a113874a6626d125` (`main`), `dev` preset (Debug), `git status --short` empty before the edit and after the restore - AMD Radeon RX 7800 XT (`1002:747e`), driver `32.0.32029.2010`, `dxr_tier=11 shader_model_capped_at_6_5=0x65` - Windows build 26200.9974; MSVC 19.42.34436; DXC `1.9.2602.17 (21d28f727)` - D3D12 debug layer enabled (`backend=hardware debug_layer=enabled`); every run below ended with `debug_errors=0 debug_warnings=0` - No capability skip in any run. Wave width is not printed by this fixture. ## Commands Unmodified build, three runs each, before the edit and again after the restore: ```powershell .\offscreen_check.exe hardware --dxr-opacity .\offscreen_check.exe hardware --dxr-opacity-pipeline ``` Then one local, uncommitted edit, the same one the RDNA 4 comment describes: in `tests/dxr_opacity.cpp`, `if (mismatches < 16)` changed to `if (mismatches < 1000)`. `offscreen_check` rebuilt, three runs each of: ```powershell .\offscreen_check.exe hardware --dxr-opacity --tmin 0.25 .\offscreen_check.exe hardware --dxr-opacity --tmin 0.5 .\offscreen_check.exe hardware --dxr-opacity --tmin 0 ``` TMin was set with the `--tmin` option; `tests/dxr_opacity_reference.h` was not edited. The print-limit edit was reverted, and `offscreen_check` was rebuilt before the restored runs. ## Observed versus expected Expected by the fixture: `mismatches=0`, exit 0. | Build | Path | TMin | Runs | Summary line (excerpt), every run | Exit | |---|---|---|---|---|---| | unmodified, before and after | inline RayQuery | 0.25 (default) | 6 (3 before, 3 after) | `mismatches=41 committed_hit=41 committed_t_plus_tmin=41` | 1 | | unmodified, before and after | DispatchRays | 0.25 (default) | 6 (3 before, 3 after) | `mismatches=0 committed_t_plus_tmin=0` | 0 | | print limit raised | inline RayQuery | 0.25 | 3 | `mismatches=41 committed_hit=41 committed_t_plus_tmin=41` | 1 | | print limit raised | inline RayQuery | 0.5 | 3 | `mismatches=41 committed_hit=41 committed_t_plus_tmin=41` | 1 | | print limit raised | inline RayQuery | 0 | 3 | `mismatches=0 committed_t_plus_tmin=0` | 0 | The `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: ```text ray=1 flags=0xf0000 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x1 allowed=0x5 actual word0=0x111 instance=1 geometry=0 primitive=0 distance=1.25 shader_commit_t=1 ``` ## 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: ```text 1,7,8,10,11,19,20,28,29,31,32,40,41,49,50,61,62,70,71,82,83,85,86,91,92,94,95,100,101,103,104,106,107,112,113,115,116,121,122,124,125 ``` - All 41 carry only `[committed_hit]`. In all 41 the printed `distance` equals `shader_commit_t` plus TMin at both values (for example ray 8: `shader_commit_t=3`, `distance=3.25` and `3.5`). - Against the RDNA 4 list in the linked comment: every ray printed here is in that list. Rays 16 and 17 are in that list and are not printed here. No ray is printed here that is absent there. - In 37 of the 41 the printed final geometry equals the reference closest-hit geometry. The other four are rays 19, 61, 100 and 103: the reference closest hit is geometry 0 at distance 1, and this adapter ends on geometry 3 with `shader_commit_t=4`. The linked comment reports the same four rays, and ray 16, ending on geometry 2 at `shader_commit_t=3` on 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: ```text ray=19 flags=0xf0006 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x8 allowed=0xf actual word0=0x3811 instance=1 geometry=3 primitive=0 distance=4.25 shader_commit_t=4 ``` ## Limits - The list shows which rays mismatch, not why. The raised limit captured all 41 counted mismatches at each positive TMin. Rays 16 and 17 are not among them, and the fixture prints nothing for a ray it does not count, so the logs do not show their final hits on the RX 7800 XT. - The linked comment identifies both rays 16 and 17 as first-hit rays. That is consistent with its conditional explanation of the 41 against 43 difference (if RDNA 3 also adds TMin to every shader-committed final hit, only first-hit rays can produce it), but these logs do not establish that every shader-committed final hit on the RX 7800 XT carries the offset. - One adapter, one driver, one Windows build, three runs per configuration per build. The two lists come from different commits (`68969ed` there, `25317c6` here), and the debug layer was enabled here and unavailable there. - No ISA is included. Nothing here concerns console hardware. The reference checks were unchanged. Inline RayQuery failed at TMin 0.25 and 0.5 and passed at TMin 0, and DispatchRays passed at the default TMin. AI-assisted (Claude Code).
JVProg commented 2026-11-25 12:01:54 +00:00 (Migrated from github.com)
Author
Contributor

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 on 32.0.31044.16. Measurement only, no source or fixture change.

Environment

  • Commit 5fa712eeedc387c5d65d8e3fbdbffaf812499c55 (main), git status --short empty before and after, dev preset (Debug)
  • AMD Radeon RX 9070 XT (1002:7550), driver 32.0.32029.2010, dxr_tier=11 shader_model_capped_at_6_5=0x65
  • In-box WARP 10.0.26100.9818
  • Windows 11 26H2, build 26300.9974; MSVC 19.44.35230; DXC 1.9.2602.17 (21d28f727)
  • D3D12 debug layer unavailable (debug_layer=unavailable on every run), so there are no debug-layer diagnostics

Registered tests (TMin 0.25), 3 runs

cmake --preset dev
cmake --build --preset dev --target offscreen_check
ctest --preset dev --no-tests=error -R '^dxr_opacity_(pipeline_)?(hardware|warp)$' -V

dxr_opacity_hardware failed in 3/3 runs. dxr_opacity_pipeline_hardware, dxr_opacity_warp and dxr_opacity_pipeline_warp passed in 3/3 runs. No skips.

TMin sweep, 3 runs per cell

offscreen_check.exe <hardware|warp> <--dxr-opacity|--dxr-opacity-pipeline> --tmin <value>

Adapter and path TMin 0 TMin 0.25 TMin 0.5
RX 9070 XT, inline RayQuery 0 43 43
RX 9070 XT, DispatchRays 0 0 0
WARP, inline RayQuery 0 0 0
WARP, DispatchRays 0 0 0

All runs reported rays=126 hits=94 shader_commits=42 misses=32. At both positive values the failing hardware runs reported mismatches=43 committed_hit=43 committed_t_plus_tmin=43 and exited 1; all other runs exited 0. WARP inline also reported the tolerated warp_after_commit=11.

First mismatch at TMin 0.25:

ray=1 flags=0xf0000 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x1 allowed=0x5 actual word0=0x111 instance=1 geometry=0 primitive=0 distance=1.25 shader_commit_t=1

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 DXC 1.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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7161188442 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7161188442). Originally posted by [JVProg](https://github.com/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 on `32.0.31044.16`. Measurement only, no source or fixture change. ## Environment - Commit `5fa712eeedc387c5d65d8e3fbdbffaf812499c55` (`main`), `git status --short` empty before and after, `dev` preset (Debug) - AMD Radeon RX 9070 XT (`1002:7550`), driver `32.0.32029.2010`, `dxr_tier=11 shader_model_capped_at_6_5=0x65` - In-box WARP `10.0.26100.9818` - Windows 11 26H2, build 26300.9974; MSVC 19.44.35230; DXC `1.9.2602.17 (21d28f727)` - D3D12 debug layer unavailable (`debug_layer=unavailable` on every run), so there are no debug-layer diagnostics ## Registered tests (TMin 0.25), 3 runs ```powershell cmake --preset dev cmake --build --preset dev --target offscreen_check ctest --preset dev --no-tests=error -R '^dxr_opacity_(pipeline_)?(hardware|warp)$' -V ``` `dxr_opacity_hardware` failed in 3/3 runs. `dxr_opacity_pipeline_hardware`, `dxr_opacity_warp` and `dxr_opacity_pipeline_warp` passed in 3/3 runs. No skips. ## TMin sweep, 3 runs per cell `offscreen_check.exe <hardware|warp> <--dxr-opacity|--dxr-opacity-pipeline> --tmin <value>` | Adapter and path | TMin 0 | TMin 0.25 | TMin 0.5 | | --- | --- | --- | --- | | RX 9070 XT, inline RayQuery | 0 | 43 | 43 | | RX 9070 XT, DispatchRays | 0 | 0 | 0 | | WARP, inline RayQuery | 0 | 0 | 0 | | WARP, DispatchRays | 0 | 0 | 0 | All runs reported `rays=126 hits=94 shader_commits=42 misses=32`. At both positive values the failing hardware runs reported `mismatches=43 committed_hit=43 committed_t_plus_tmin=43` and exited 1; all other runs exited 0. WARP inline also reported the tolerated `warp_after_commit=11`. First mismatch at TMin 0.25: ```text ray=1 flags=0xf0000 [committed_hit] expected hit=1 instance=1 geometry=0 distance=1 committable=0xf candidates required=0x1 allowed=0x5 actual word0=0x111 instance=1 geometry=0 primitive=0 distance=1.25 shader_commit_t=1 ``` ## 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 DXC `1.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).
chasegrindy commented 2026-11-25 23:02:04 +00:00 (Migrated from github.com)
Author
Contributor

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), driver 32.0.32015.7029. I got the same 0/41/41 pattern as the RX 7800 XT report.

TMin RX 7900 XTX inline RayQuery RX 7900 XTX DispatchRays WARP inline / DispatchRays
0 0, 0, 0 0, 0, 0 0 / 0
0.25 41, 41, 41 0, 0, 0 0 / 0
0.5 41, 41, 41 0, 0, 0 0 / 0

These are saved Release runs from 0aa6522c29a0db93848fb33c4e3f01987bace64e, not a retest of current main. I changed only the TMin literal and rebuilt for each value. Every mismatch in the two nonzero rows matched committed_t_plus_tmin; on the first ray the expected distance was 1 and the result was 1.25 or 1.5. WARP 10.0.26100.9818 had 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176093897 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7176093897). Originally posted by [chasegrindy](https://github.com/chasegrindy) on 2026-11-25T22:13:32Z. --- One more RDNA 3 data point: RX 7900 XTX (`1002:744c`), driver `32.0.32015.7029`. I got the same `0/41/41` pattern as the [RX 7800 XT report](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7117244027). | TMin | RX 7900 XTX inline RayQuery | RX 7900 XTX DispatchRays | WARP inline / DispatchRays | | --- | --- | --- | --- | | 0 | 0, 0, 0 | 0, 0, 0 | 0 / 0 | | 0.25 | 41, 41, 41 | 0, 0, 0 | 0 / 0 | | 0.5 | 41, 41, 41 | 0, 0, 0 | 0 / 0 | These are saved Release runs from `0aa6522c29a0db93848fb33c4e3f01987bace64e`, not a retest of current `main`. I changed only the TMin literal and rebuilt for each value. Every mismatch in the two nonzero rows matched `committed_t_plus_tmin`; on the first ray the expected distance was 1 and the result was 1.25 or 1.5. WARP `10.0.26100.9818` had 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.
timbot103 commented 2026-12-01 01:28:13 +00:00 (Migrated from github.com)
Author
Contributor

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 TMin 0, 0.25, and 0.5 in both inline RayQuery and DispatchRays. The RTX 5080 and in-box WARP passed the same sweep. Every invocation reported mismatches=0 committed_t_plus_tmin=0. Maintainer’s request for an independent sweep

Environment

  • Source commit a3bfd01962d6a6d6a9584fd9e29f4b8613b05a02 on main, built with the dev preset (Debug).
  • Windows 11 Pro 25H2 build 26200.9974, MSVC 19.44.35230, Windows SDK 10.0.26100.0, DXC 1.9.2602.17.
  • D3D12 reported debug_layer=unavailable on all 18 invocations. The fixture reported shader_model_capped_at_6_5=0x65 on all three targets.
Target PCI ID Driver DXR tier
AMD Radeon(TM) Graphics, RDNA 2 iGPU 1002:13c0 32.0.21030.2001 1.1
NVIDIA GeForce RTX 5080 10de:2c02 32.0.16.2140 1.2
In-box Microsoft Basic Render Driver (WARP) 1414:008c 10.0.26100.9818 1.1

Results

Each entry is mismatches / committed_t_plus_tmin. The two backends used the same source-built ray set. All 18 processes exited 0.

Target TMin Inline RayQuery DispatchRays
Radeon iGPU 0 0 / 0 0 / 0
Radeon iGPU 0.25 0 / 0 0 / 0
Radeon iGPU 0.5 0 / 0 0 / 0
RTX 5080 0 0 / 0 0 / 0
RTX 5080 0.25 0 / 0 0 / 0
RTX 5080 0.5 0 / 0 0 / 0
WARP 0 0 / 0 0 / 0
WARP 0.25 0 / 0 0 / 0
WARP 0.5 0 / 0 0 / 0

The 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 a 1e-5 relative 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=11 at 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=0 was the diagnostic input.

Reproduction

From the repository root, I ran both operations at each TMin once per target.

foreach ($adapter in 'Radeon', 'RTX 5080') {
    $env:XBOX2WINDOWS_ADAPTER = $adapter
    foreach ($t in '0', '0.25', '0.5') {
        .\out\build\dev\offscreen_check.exe hardware --dxr-opacity --tmin $t
        .\out\build\dev\offscreen_check.exe hardware --dxr-opacity-pipeline --tmin $t
    }
}
Remove-Item Env:XBOX2WINDOWS_ADAPTER
foreach ($t in '0', '0.25', '0.5') {
    .\out\build\dev\offscreen_check.exe warp --dxr-opacity --tmin $t
    .\out\build\dev\offscreen_check.exe warp --dxr-opacity-pipeline --tmin $t
}

Prepared with AI assistance. The fixture commands ran locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7297536153 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7297536153). Originally posted by [timbot103](https://github.com/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 `TMin` 0, 0.25, and 0.5 in both inline RayQuery and DispatchRays. The RTX 5080 and in-box WARP passed the same sweep. Every invocation reported `mismatches=0 committed_t_plus_tmin=0`. [Maintainer’s request for an independent sweep](https://github.com/R0Y00/Xbox2Windows/issues/1011#issuecomment-7114285366) ### Environment - Source commit `a3bfd01962d6a6d6a9584fd9e29f4b8613b05a02` on `main`, built with the `dev` preset (Debug). - Windows 11 Pro 25H2 build 26200.9974, MSVC 19.44.35230, Windows SDK 10.0.26100.0, DXC 1.9.2602.17. - D3D12 reported `debug_layer=unavailable` on all 18 invocations. The fixture reported `shader_model_capped_at_6_5=0x65` on all three targets. | Target | PCI ID | Driver | DXR tier | |---|---|---|---| | AMD Radeon(TM) Graphics, RDNA 2 iGPU | `1002:13c0` | `32.0.21030.2001` | 1.1 | | NVIDIA GeForce RTX 5080 | `10de:2c02` | `32.0.16.2140` | 1.2 | | In-box Microsoft Basic Render Driver (WARP) | `1414:008c` | `10.0.26100.9818` | 1.1 | ### Results Each entry is `mismatches / committed_t_plus_tmin`. The two backends used the same source-built ray set. All 18 processes exited 0. | Target | `TMin` | Inline RayQuery | DispatchRays | |---|---:|---:|---:| | Radeon iGPU | 0 | 0 / 0 | 0 / 0 | | Radeon iGPU | 0.25 | 0 / 0 | 0 / 0 | | Radeon iGPU | 0.5 | 0 / 0 | 0 / 0 | | RTX 5080 | 0 | 0 / 0 | 0 / 0 | | RTX 5080 | 0.25 | 0 / 0 | 0 / 0 | | RTX 5080 | 0.5 | 0 / 0 | 0 / 0 | | WARP | 0 | 0 / 0 | 0 / 0 | | WARP | 0.25 | 0 / 0 | 0 / 0 | | WARP | 0.5 | 0 / 0 | 0 / 0 | The 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 a `1e-5` relative 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=11` at 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=0` was the diagnostic input. ### Reproduction From the repository root, I ran both operations at each TMin once per target. ```powershell foreach ($adapter in 'Radeon', 'RTX 5080') { $env:XBOX2WINDOWS_ADAPTER = $adapter foreach ($t in '0', '0.25', '0.5') { .\out\build\dev\offscreen_check.exe hardware --dxr-opacity --tmin $t .\out\build\dev\offscreen_check.exe hardware --dxr-opacity-pipeline --tmin $t } } Remove-Item Env:XBOX2WINDOWS_ADAPTER foreach ($t in '0', '0.25', '0.5') { .\out\build\dev\offscreen_check.exe warp --dxr-opacity --tmin $t .\out\build\dev\offscreen_check.exe warp --dxr-opacity-pipeline --tmin $t } ``` Prepared with AI assistance. The fixture commands ran locally.
Sign in to join this conversation.
No labels
No milestone
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
No description provided.