xdxr_build: take the BOX16 half sign without a shift-then-mask (AMD driver miscompile) #1210

Closed
whoalin1 wants to merge 1 commit from upstream-pr/1210 into main
whoalin1 commented 2026-11-24 20:18:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-24T20:18:11Z.


Claimed in the coordination issue as: XDXR-BOX16-SIGN-AMD (claim)

Depends on: none

What and why

On the AMD Windows driver (24.10.24, Vulkan 1.3.280, gfx1035), every MINIMIZE_MEMORY BOX16 build through xdxr_build.comp produced corrupt boxes: tools/xdxr_bvh.py check-build reported ~20,727 problems ("child box not inside its parent's box") and essentially all rays missed. BOX32 builds of the same trees were bit-exact, and NVIDIA produced correct output from the identical SPIR-V module — an AMD shader-compiler miscompile, not a logic bug.

Bisection isolated half_directed() in runtime/src/xdxr_build.comp: it computed the half's sign as (u >> 16) & 0x8000. The bit-equivalent (u & 0x80000000u) >> 16 produces correct output on the same driver. In SPIR-V the old form is OpShiftRightLogical + OpBitwiseAnd with a 0x8000 mask; the new form reuses the existing 0x80000000 constant. Deterministic across runs and across -O/-O0 glslc output.

Changes:

  • runtime/src/xdxr_build.comp: one-line rewrite + comment.
  • runtime/src/xdxr_build.inc: regenerated with glslc from Vulkan SDK 1.4.363.0 (the large diff is SPIR-V result-ID renumbering).
  • docs/bvh.md: note in the BOX16 section.

Tested

  • vk_xdxr_build_test + xdxr_bvh.py check-build --rays 1000 on the AMD iGPU: 20,727 problems → all cases match (box16/paired/extremes/refit).
  • d3d12_xdxr_rt + its check on AMD iGPU: all match (was failing before).
  • NVIDIA RTX 4070 SUPER re-run: still all match (no regression).
  • py -3.14 -I tests/test_xdxr_bvh.py: 47 tests OK.
  • LEONIDA_VK_VALIDATION=1 ctest sweep on AMD iGPU: 0 VUIDs (unrelated suite run the same session).

GPUs tested: AMD Radeon Graphics (Ryzen 5 7600 iGPU, gfx1035-class RDNA2, driver 24.10.24, Vulkan 1.3.280, Windows 11); NVIDIA GeForce RTX 4070 SUPER (driver 610.88, Windows 11)

AI-assisted: yes (Devin)

Checklist

  • Based on current main and merges cleanly
  • One topic; follow-up work goes in a new pull request
  • No game data, keys or decryption
  • N/A — runtime shader-source workaround, no translator rule added
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5479645769 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1210). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-24T20:18:11Z. --- Claimed in the coordination issue as: XDXR-BOX16-SIGN-AMD ([claim](https://github.com/ProjectLeonida/mandy/issues/14#issuecomment-7143281151)) Depends on: none ### What and why On the AMD Windows driver (24.10.24, Vulkan 1.3.280, gfx1035), every `MINIMIZE_MEMORY` **BOX16** build through `xdxr_build.comp` produced corrupt boxes: `tools/xdxr_bvh.py check-build` reported ~20,727 problems ("child box not inside its parent's box") and essentially all rays missed. BOX32 builds of the same trees were bit-exact, and NVIDIA produced correct output from the identical SPIR-V module — an AMD shader-compiler miscompile, not a logic bug. Bisection isolated `half_directed()` in `runtime/src/xdxr_build.comp`: it computed the half's sign as `(u >> 16) & 0x8000`. The bit-equivalent `(u & 0x80000000u) >> 16` produces correct output on the same driver. In SPIR-V the old form is `OpShiftRightLogical` + `OpBitwiseAnd` with a `0x8000` mask; the new form reuses the existing `0x80000000` constant. Deterministic across runs and across `-O`/`-O0` glslc output. Changes: - `runtime/src/xdxr_build.comp`: one-line rewrite + comment. - `runtime/src/xdxr_build.inc`: regenerated with glslc from Vulkan SDK 1.4.363.0 (the large diff is SPIR-V result-ID renumbering). - `docs/bvh.md`: note in the BOX16 section. ### Tested - `vk_xdxr_build_test` + `xdxr_bvh.py check-build --rays 1000` on the AMD iGPU: **20,727 problems → all cases match** (box16/paired/extremes/refit). - `d3d12_xdxr_rt` + its check on AMD iGPU: all match (was failing before). - NVIDIA RTX 4070 SUPER re-run: still all match (no regression). - `py -3.14 -I tests/test_xdxr_bvh.py`: 47 tests OK. - `LEONIDA_VK_VALIDATION=1` ctest sweep on AMD iGPU: 0 VUIDs (unrelated suite run the same session). GPUs tested: AMD Radeon Graphics (Ryzen 5 7600 iGPU, gfx1035-class RDNA2, driver 24.10.24, Vulkan 1.3.280, Windows 11); NVIDIA GeForce RTX 4070 SUPER (driver 610.88, Windows 11) AI-assisted: yes (Devin) ### Checklist - [x] Based on current `main` and merges cleanly - [x] One topic; follow-up work goes in a new pull request - [x] No game data, keys or decryption - [x] N/A — runtime shader-source workaround, no translator rule added
quartz-heron-58 commented 2026-11-24 20:26:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by quartz-heron-58 on 2026-11-24T20:26:32Z.


Independent run on a second AMD Windows driver and on NVIDIA, head 42d66230, built with scripts\build_runtime.ps1 (MSVC 14.44, RelWithDebInfo), Windows 11 build 26300.

GPU driver main 71f99e22 this PR
AMD Radeon Graphics (Ryzen 9 9950X3D iGPU, PCI 1002:13c0) 32.0.21042.62, Vulkan 1.4.315 4 of 4 pass 4 of 4 pass
NVIDIA GeForce RTX 4080 621.24 4 of 4 pass 4 of 4 pass

The four tests are xdxr_build, xdxr_build_check, d3d12_xdxr_rt and d3d12_xdxr_rt_check (ctest, device picked with LEONIDA_VK_DEVICE; the test output names the device in each run).

So the miscompile does not reproduce on this newer AMD driver: the BOX16 checks already pass on main here. The fix does not regress either card. I cannot confirm the failure itself, only that the rewritten form is also correct on these two drivers.

The "main" column is 71f99e22, not this branch's parent 6293c1c4; xdxr_build.comp, xdxr_build.inc, xdxr_bvh.py and the two test sources are identical between those two commits. One run of each. No game files.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7143552490 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1210#issuecomment-7143552490). Originally posted by [quartz-heron-58](https://github.com/quartz-heron-58) on 2026-11-24T20:26:32Z. --- Independent run on a second AMD Windows driver and on NVIDIA, head 42d66230, built with `scripts\build_runtime.ps1` (MSVC 14.44, RelWithDebInfo), Windows 11 build 26300. | GPU | driver | main `71f99e22` | this PR | |---|---|---|---| | AMD Radeon Graphics (Ryzen 9 9950X3D iGPU, PCI 1002:13c0) | 32.0.21042.62, Vulkan 1.4.315 | 4 of 4 pass | 4 of 4 pass | | NVIDIA GeForce RTX 4080 | 621.24 | 4 of 4 pass | 4 of 4 pass | The four tests are `xdxr_build`, `xdxr_build_check`, `d3d12_xdxr_rt` and `d3d12_xdxr_rt_check` (ctest, device picked with `LEONIDA_VK_DEVICE`; the test output names the device in each run). So the miscompile does not reproduce on this newer AMD driver: the BOX16 checks already pass on main here. The fix does not regress either card. I cannot confirm the failure itself, only that the rewritten form is also correct on these two drivers. The "main" column is `71f99e22`, not this branch's parent `6293c1c4`; `xdxr_build.comp`, `xdxr_build.inc`, `xdxr_bvh.py` and the two test sources are identical between those two commits. One run of each. No game files. AI-assisted: yes (Claude Code)
adrianmjim commented 2026-11-24 21:42:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by adrianmjim on 2026-11-24T21:42:54Z.


Tested 42d662306 applied onto main 66d4f5aa3 on an AMD Radeon RX 7900 XT: a discrete RDNA3 card on the current proprietary driver, next to the two iGPU runs. Setup: AMD Radeon RX 7900 XT (RDNA3, gfx1100), AMD proprietary driver 32.0.32029.2010 (26.11.2), Windows 11 build 26300, VS 2022 RelWithDebInfo, Vulkan SDK 1.4.363.0. No game files.

The .inc is the .comp. I regenerated runtime/src/xdxr_build.inc from the PR's xdxr_build.comp with glslc --target-env=vulkan1.2 -O -mfmt=c (shaderc v2026.4, Vulkan SDK 1.4.363.0). All 30316 words are identical to the committed file. The same check on main also matches (30320 words).

GPU, 2 runs each. ctest -R "^(xdxr_build|xdxr_build_check|xdxr_builder_validation|d3d12_xdxr_rt|d3d12_xdxr_rt_check)$", LEONIDA_RT_AS unset:

main 66d4f5aa3 this PR
the five tests 5/5 passed, both runs 5/5 passed, both runs
d3d12_blas_box16 0/1000 rays differ (711 hits) the same
d3d12_blas_box16_update 0/1000 rays differ (666 hits) the same
blas_paired_grid_box16 0/1000 rays differ (373 hits) the same
blas_box16_two_geometries 0/1000 rays differ (70 hits) the same
blas_box16_sort_tiles 0/200 rays differ (133 hits) the same
full ctest 311/314 311/314, the same three failures (d3d12_texture_tiles, d3d12_close_parity, since fixed by #1286, d3d12_clear)

On this card and driver the BOX16 miscompile does not reproduce: main already builds every BOX16 case bit-exact. The rewrite changes nothing here and causes no regression. It is a bit-equivalent rewrite, so it stays harmless on drivers that compile the old form correctly.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7145292853 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1210#issuecomment-7145292853). Originally posted by [adrianmjim](https://github.com/adrianmjim) on 2026-11-24T21:42:54Z. --- Tested 42d662306 applied onto main 66d4f5aa3 on an AMD Radeon RX 7900 XT: a discrete RDNA3 card on the current proprietary driver, next to the two iGPU runs. Setup: AMD Radeon RX 7900 XT (RDNA3, gfx1100), AMD proprietary driver 32.0.32029.2010 (26.11.2), Windows 11 build 26300, VS 2022 RelWithDebInfo, Vulkan SDK 1.4.363.0. No game files. **The `.inc` is the `.comp`.** I regenerated `runtime/src/xdxr_build.inc` from the PR's `xdxr_build.comp` with `glslc --target-env=vulkan1.2 -O -mfmt=c` (shaderc v2026.4, Vulkan SDK 1.4.363.0). All 30316 words are identical to the committed file. The same check on `main` also matches (30320 words). **GPU, 2 runs each.** `ctest -R "^(xdxr_build|xdxr_build_check|xdxr_builder_validation|d3d12_xdxr_rt|d3d12_xdxr_rt_check)$"`, `LEONIDA_RT_AS` unset: | | main `66d4f5aa3` | this PR | |---|---|---| | the five tests | 5/5 passed, both runs | 5/5 passed, both runs | | `d3d12_blas_box16` | 0/1000 rays differ (711 hits) | the same | | `d3d12_blas_box16_update` | 0/1000 rays differ (666 hits) | the same | | `blas_paired_grid_box16` | 0/1000 rays differ (373 hits) | the same | | `blas_box16_two_geometries` | 0/1000 rays differ (70 hits) | the same | | `blas_box16_sort_tiles` | 0/200 rays differ (133 hits) | the same | | full `ctest` | 311/314 | 311/314, the same three failures (`d3d12_texture_tiles`, `d3d12_close_parity`, since fixed by #1286, `d3d12_clear`) | On this card and driver the BOX16 miscompile does not reproduce: `main` already builds every BOX16 case bit-exact. The rewrite changes nothing here and causes no regression. It is a bit-equivalent rewrite, so it stays harmless on drivers that compile the old form correctly.
whoalin1 commented 2026-11-24 23:20:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-24T23:20:20Z.


Independent confirmation on a second AMD device: clean origin/main 4a50cafc7 fails d3d12_xdxr_rt_check on AMD Radeon iGPU (gfx1035, driver 24.10.24, Vulkan 1.3.280, validation on) — d3d12_blas_box16 975 + d3d12_blas_box16_update 959 internal validation errors ('child box/triangle not inside parent's box'), 711/1000 and 666/1000 rays differ, 0 hits; all other BLAS/TLAS cases pass and the same test passes on RTX 4070 SUPER. Repro: ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure -R d3d12_xdxr_rt_check under VK_LOADER_DRIVERS_SELECT=*amd-vulkan* LEONIDA_VK_DEVICE=radeon LEONIDA_PC_TAIL_UBO=1 LEONIDA_VK_VALIDATION=1. Matches this PR's AMD shader-compiler miscompile diagnosis exactly. AI-assisted verification (Devin).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7147287466 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1210#issuecomment-7147287466). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-24T23:20:20Z. --- Independent confirmation on a second AMD device: clean origin/main 4a50cafc7 fails `d3d12_xdxr_rt_check` on AMD Radeon iGPU (gfx1035, driver 24.10.24, Vulkan 1.3.280, validation on) — `d3d12_blas_box16` 975 + `d3d12_blas_box16_update` 959 internal validation errors ('child box/triangle not inside parent's box'), 711/1000 and 666/1000 rays differ, 0 hits; all other BLAS/TLAS cases pass and the same test passes on RTX 4070 SUPER. Repro: `ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure -R d3d12_xdxr_rt_check` under `VK_LOADER_DRIVERS_SELECT=*amd-vulkan* LEONIDA_VK_DEVICE=radeon LEONIDA_PC_TAIL_UBO=1 LEONIDA_VK_VALIDATION=1`. Matches this PR's AMD shader-compiler miscompile diagnosis exactly. AI-assisted verification (Devin).
whoalin1 commented 2026-11-25 02:03:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T02:03:43Z.


Confirmed on a second AMD part — Ryzen 5 7600 iGPU (Raphael gfx1036, driver 24.10.24, Vulkan 1.3.280, validation on, LEONIDA_PC_TAIL_UBO=1): at origin/main b4b7756e8 both xdxr_build_check and d3d12_xdxr_rt_check fail with the box16 'child box/triangle not inside parent's box' errors (1938 problems, 666/1000 rays differ); at this PR's head 536df5c34 the same ctest -R xdxr run is 8/8 PASS. Same (u >> 16) & 0x8000 miscompile — this fix covers both ctest entries. AI-assisted verification (Devin).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7150270949 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1210#issuecomment-7150270949). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-25T02:03:43Z. --- Confirmed on a second AMD part — Ryzen 5 7600 iGPU (Raphael gfx1036, driver 24.10.24, Vulkan 1.3.280, validation on, LEONIDA_PC_TAIL_UBO=1): at origin/main b4b7756e8 both `xdxr_build_check` and `d3d12_xdxr_rt_check` fail with the box16 'child box/triangle not inside parent's box' errors (1938 problems, 666/1000 rays differ); at this PR's head 536df5c34 the same `ctest -R xdxr` run is 8/8 PASS. Same `(u >> 16) & 0x8000` miscompile — this fix covers both ctest entries. AI-assisted verification (Devin).
whoalin1 commented 2026-11-25 19:29:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T19:29:55Z.


Dual-GPU verification on 512eae3ed is now complete.

Runtime rebuild succeeded (BUILD_RC=0), then the six xdxr-related CTest entries were run with Vulkan validation enabled:

xdxr_builder_validation
xdxr_build
xdxr_build_check
d3d12_xdxr_rt
d3d12_xdxr_rt_check
vk_xdxr_postbuild_readback

Results:

  • AMD RDNA2 iGPU (VK_LOADER_DRIVERS_SELECT=*amd-vulkan*, LEONIDA_VK_DEVICE=radeon): 6/6 passed; d3d12_xdxr_rt_check passed in 19.36 s and xdxr_build_check in 82.45 s.
  • NVIDIA RTX 4070 SUPER (VK_LOADER_DRIVERS_SELECT=*nv-vk*, LEONIDA_VK_DEVICE=4070): 6/6 passed; d3d12_xdxr_rt_check passed in 18.21 s and xdxr_build_check in 76.24 s.

Together with the earlier tests/test_xdxr_bvh.py 54/54 pass, this covers both the CPU validator and the real dual-GPU build/check path. Logs are local in leonida-w1/.scratch/xdxr_{amd,nv}.log. AI-assisted verification with Devin.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7172379907 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1210#issuecomment-7172379907). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-25T19:29:55Z. --- Dual-GPU verification on `512eae3ed` is now complete. Runtime rebuild succeeded (`BUILD_RC=0`), then the six xdxr-related CTest entries were run with Vulkan validation enabled: ```text xdxr_builder_validation xdxr_build xdxr_build_check d3d12_xdxr_rt d3d12_xdxr_rt_check vk_xdxr_postbuild_readback ``` Results: - AMD RDNA2 iGPU (`VK_LOADER_DRIVERS_SELECT=*amd-vulkan*`, `LEONIDA_VK_DEVICE=radeon`): **6/6 passed**; `d3d12_xdxr_rt_check` passed in 19.36 s and `xdxr_build_check` in 82.45 s. - NVIDIA RTX 4070 SUPER (`VK_LOADER_DRIVERS_SELECT=*nv-vk*`, `LEONIDA_VK_DEVICE=4070`): **6/6 passed**; `d3d12_xdxr_rt_check` passed in 18.21 s and `xdxr_build_check` in 76.24 s. Together with the earlier `tests/test_xdxr_bvh.py` 54/54 pass, this covers both the CPU validator and the real dual-GPU build/check path. Logs are local in `leonida-w1/.scratch/xdxr_{amd,nv}.log`. AI-assisted verification with Devin.
whoalin1 commented 2026-11-25 20:59:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T20:59:40Z.


Rebased cleanly onto current main (db1a22d29) as 4a4aa9b6d; no conflicts. The branch is unchanged: BOX16 half sign without shift-then-mask. The six xdxr CTests on both GPUs posted earlier stand on the same diff. AI-assisted with Devin.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7174465410 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1210#issuecomment-7174465410). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-25T20:59:40Z. --- Rebased cleanly onto current main (`db1a22d29`) as `4a4aa9b6d`; no conflicts. The branch is unchanged: BOX16 half sign without shift-then-mask. The six xdxr CTests on both GPUs posted earlier stand on the same diff. AI-assisted with Devin.
MoonEyes commented 2026-11-28 03:00:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T03:00:44Z.


Hi @whoalin1, thanks for this pull request. It currently conflicts with main (conflicting file(s): runtime/src/xdxr_build.inc), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7232735583 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1210#issuecomment-7232735583). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T03:00:44Z. --- Hi @whoalin1, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `runtime/src/xdxr_build.inc`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
zmasi commented 2026-11-29 01:34:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T01:34:57Z.


Independent Windows 11 + NVIDIA GeForce RTX 3090 Verification (d9fec29581 merged onto main 5825b02ff8)

Environment: Windows 11 (10.0.26200), MSVC 19.44.35228, Python 3.12.10 (-I), Vulkan SDK / glslc / VK_LAYER_KHRONOS_validation 1.4.363.1 (LEONIDA_VK_VALIDATION=1), physical NVIDIA GeForce RTX 3090 (Ampere, driver 610.88, Vulkan 1.4). Synthetic BVH fixtures only; no game files.

Results on Rebased Head d9fec29581 — PASS (0 validation errors)

  • xdxr_build.comp <-> xdxr_build.inc equivalence check:
    • Recompiled runtime/src/xdxr_build.comp with glslc --target-env=vulkan1.2 -O -mfmt=c: both produce 33,141 SPIR-V words, pass spirv-val, and have 0 instruction differences across the entire function body under ID-normalized spirv-dis (only minor OpConstant declaration ordering between shaderc minor builds).
  • CPU BVH reference & validator suite:
    • python -I tests/test_xdxr_bvh.py: 60/60 OK (2.77s).
  • GPU XDXR build, ray-traversal, and readback CTest suite (LEONIDA_VK_VALIDATION=1 on RTX 3090):
    • ctest --output-on-failure -R "^(xdxr_builder_validation|xdxr_build|xdxr_build_check|d3d12_xdxr_rt|d3d12_xdxr_rt_check|vk_xdxr_postbuild_readback)$": 6/6 passed (0 failures, 0 ray mismatches across box16 / box16_update / paired_grid_box16 / sort_tiles, 0 VUID- validation errors):
      • xdxr_builder_validation (0.06s)
      • xdxr_build & xdxr_build_check (92.08s)
      • d3d12_xdxr_rt (1.93s) & d3d12_xdxr_rt_check (17.18s)
      • vk_xdxr_postbuild_readback (0.93s)

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248878098 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1210#issuecomment-7248878098). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T01:34:57Z. --- ### Independent Windows 11 + NVIDIA GeForce RTX 3090 Verification (`d9fec29581` merged onto `main` `5825b02ff8`) **Environment**: Windows 11 (`10.0.26200`), MSVC `19.44.35228`, Python `3.12.10` (`-I`), Vulkan SDK / `glslc` / `VK_LAYER_KHRONOS_validation` `1.4.363.1` (`LEONIDA_VK_VALIDATION=1`), physical **NVIDIA GeForce RTX 3090** (Ampere, driver `610.88`, Vulkan `1.4`). Synthetic BVH fixtures only; no game files. #### Results on Rebased Head `d9fec29581` — **PASS (`0` validation errors)** - **`xdxr_build.comp` <-> `xdxr_build.inc` equivalence check**: - Recompiled `runtime/src/xdxr_build.comp` with `glslc --target-env=vulkan1.2 -O -mfmt=c`: both produce `33,141` SPIR-V words, pass `spirv-val`, and have **`0` instruction differences across the entire function body** under ID-normalized `spirv-dis` (only minor `OpConstant` declaration ordering between `shaderc` minor builds). - **CPU BVH reference & validator suite**: - `python -I tests/test_xdxr_bvh.py`: **`60/60 OK` (`2.77s`)**. - **GPU XDXR build, ray-traversal, and readback CTest suite (`LEONIDA_VK_VALIDATION=1` on RTX 3090)**: - `ctest --output-on-failure -R "^(xdxr_builder_validation|xdxr_build|xdxr_build_check|d3d12_xdxr_rt|d3d12_xdxr_rt_check|vk_xdxr_postbuild_readback)$"`: **`6/6` passed (`0` failures, `0` ray mismatches across `box16` / `box16_update` / `paired_grid_box16` / `sort_tiles`, `0` `VUID-` validation errors)**: - `xdxr_builder_validation` (`0.06s`) - `xdxr_build` & `xdxr_build_check` (`92.08s`) - `d3d12_xdxr_rt` (`1.93s`) & `d3d12_xdxr_rt_check` (`17.18s`) - `vk_xdxr_postbuild_readback` (`0.93s`) AI-assisted.
whoalin1 commented 2026-11-30 22:30:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-30T22:30:47Z.


Rebased onto current main as 21a22792d to refresh the stale CI baseline; the single-commit branch reapplied cleanly with no conflicts. Validation: git diff --check is clean. The shader/GPU regression cannot execute on this Linux VM, so the AMD/NVIDIA behavior remains covered by the prior validator reports rather than locally rerun.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7293944306 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1210#issuecomment-7293944306). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-30T22:30:47Z. --- Rebased onto current `main` as `21a22792d` to refresh the stale CI baseline; the single-commit branch reapplied cleanly with no conflicts. Validation: `git diff --check` is clean. The shader/GPU regression cannot execute on this Linux VM, so the AMD/NVIDIA behavior remains covered by the prior validator reports rather than locally rerun.
aslan2142 commented 2026-12-01 17:22:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:22:21Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7319193469 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1210#issuecomment-7319193469). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:22:21Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
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
ProjectLeonida/mandy!1210
No description provided.