Shaders/GPU: opt-in AMD hardware BVH ray-node intersection (VICTORY_HW_BVH=1) #3294

Open
github-bot wants to merge 1 commit from github-bot/gh-3294 into main AGit
Owner

@⁠MeMako on GitHub · 2026-11-26 16:13 UTC · original
MeMako:pr/amd-hw-bvh → main · +1069 −43 · 19 files · 1 commits · open

Adds an opt-in AMD hardware BVH4 ray-node intersection path (VICTORY_HW_BVH=1) for image_bvh_intersect_ray and image_bvh64_intersect_ray via AMD's D3D12 IAmdExtD3DShaderIntrinsics (IntersectBvhNode) extension.

Default behavior when VICTORY_HW_BVH is unset is unchanged (zero extra allocations, zero root-signature changes, existing software BVH path untouched).

Design

  • Guarded extension probe & COM lifetime (victory-shader/src/emit/host.rs, victory-gpu/src/host.rs):
    • When VICTORY_HW_BVH=1 (and not WARP), verifies adapter_desc.VendorId == 0x1002, non-software adapter, and D3D12_RAYTRACING_TIER >= D3D12_RAYTRACING_TIER_1_0 (D3D12_FEATURE_D3D12_OPTIONS5) before resolving amdxc64.dll via GetModuleHandleA/GetProcAddress. This prevents handing foreign devices to AmdExtD3DCreateInterface on mixed-GPU systems and prevents pre-RDNA 2 (GCN / RDNA 1) cards from taking the hardware path.
    • Acquires IAmdExtD3DFactory → IAmdExtD3DShaderIntrinsics, checks support (0x19 wired for RDNA 2/3, or DXR-gated 0x0D for RDNA 4 where 0x19 returns E_NOINTERFACE while opcode 0x22 compiles natively to hardware BVH4; verified live on RX 9070 XT / RDNA 4, untested on RDNA 2/3 silicon), and calls Enable(). Both COM interfaces are held in AmdExtGuard on Host for the device lifetime and cleanly Release()d on drop. Silently falls back to software BVH on non-AMD adapters, WARP, or unsupported drivers.
  • Parallel page GPU VA table & lifetime safety (victory-gpu/src/memory.rs, victory-shader/src/emit/shader.rs):
    • Only when hardware BVH is active, memory::Shared allocates a parallel t3 (MEMORY_VAS) buffer in MEMORY_SPACE holding one 64-bit host GPU VA per level-2 page entry. Only whole 64 KiB pages whose host GPU VA is 64-byte aligned receive a non-zero VA; unmapped, partial, or unaligned pages store 0.
    • Shared::rewrite runs only while no submission is in flight, overwrites every active level-2 slot (clearing removed/unowned entries to 0), keeps Arc<Shadow> alive in Shared::layout, and bind() retains the VA buffer on each HostList via list.keep(&va_res)—preventing any in-flight command list from dereferencing a freed ID3D12Resource VA.
  • Hardware lowering with safe software fallback (victory-shader/src/emit/lower/bvh.rs):
    • For Nodes::Raw BVHs when hardware BVH is active, looks up the 64-bit page VA in t3 using the existing memory_page index, validates 64-byte alignment of both va_lo and within (((va_lo | within) & 63) == 0) and in-page bounds (within <= 0xFF80 for 128-byte box32, within <= 0xFFC0 for 64-byte nodes), computes nodePointer = ((page_va + within) >> 3) | kind, and emits the IntersectBvhNode (0x22, BoxSortEnable | ReturnBarycentrics) magic UAV atomic sequence (u0 in AMD_EXT_SPACE = 2147420894).
    • Unmapped pages, partial/unaligned copies, and page-straddling nodes branch directly to the existing bvh_lanes software path, preserving exact miss-bitmap reporting and bounds-checked reads.
  • Pipeline bindings & shader-cache compatibility (victory-gpu/src/pipeline/host.rs, draw.rs, shader_cache.rs):
    • Adds HostShader::amd_bvh (bit 6 in the cache entry flags), binds t3 (MEMORY_VAS) and u0 (AMD_EXT_SPACE) only on stages emitting hardware BVH, and keys the shader cache on the active hardware BVH opcode. Because shader_cache.rs hashes ENCODING = include_bytes!("shader_cache.rs") into the cache key and subdirectory, existing caches from earlier builds are isolated cleanly and never fail deserialization on upgrade.

Verification (rebased on origin/main 63bcca4)

  • Static & policy checks:
    • cargo clippy --workspace --all-targets --locked -- -D warnings: clean.
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: clean.
    • cargo run --locked -p xtask -- policy: 191 files ok.
  • Test suites (Windows 11 10.0.26200, Radeon RX 9070 XT, driver 32.0.32029.2010):
    • Full cargo test --workspace --locked (VICTORY_HW_BVH unset): all passed.
    • VICTORY_HW_BVH=1 cargo test -p victory-shader --lib bvh_tests --locked -- --nocapture: 16/16 passed, including amd_hw_bvh_lowers_and_validates (dxil.dll validated) and amd_hw_bvh_matches_the_reference_on_the_gpu (live hardware execution via MEMORY_VAS + opcode=0x22 matching CPU reference for both 32-bit and 64-bit pointers).
    • VICTORY_HW_BVH=1 cargo test -p victory-gpu --lib --locked -- --test-threads=1: 232 passed, 0 failed, 1 ignored (including new memory::tests::va_table_populates_aligned_whole_pages_only and updated shader_cache::tests).
  • Standalone GPU throughput microbenchmark (bvh_tests::amd_hw_bvh_throughput_benchmark, --ignored):
    • Command (debug build): cargo test -p victory-shader --lib amd_hw_bvh_throughput_benchmark --locked -- --ignored --nocapture
    • Workload: 536,862,720 mixed box32/box16/triangle image_bvh64_intersect_ray tests per dispatch ([65535, 32, 1] × 256, median of 5 dispatches including per-dispatch D3D12 harness overhead) on RX 9070 XT:
      • Software (bvh_lanes): 31.16 ms (17,231.7 Mrays/s)
      • Hardware (IntersectBvhNode, opcode=0x22 via MEMORY_VAS): 20.62 ms (26,031.5 Mrays/s) — 1.51× wall-clock speedup
    • (Cross-check note: live world RT frame-time parity was also cross-checked with the equivalent lowering in a live RT-capable fork, avatarmanz/VIctory-7900XTX, on this RX 9070 XT, reducing GPU busy time ~1.8× (~54 ms → ~29.7 ms) with visual parity and 0 crashes / 0 device removals.)

Human-owned contribution: all design decisions, hardware testing, and code review were performed by me; AI coding assistance was used during implementation and drafting.

**@⁠MeMako** on GitHub · 2026-11-26 16:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/3294) `MeMako:pr/amd-hw-bvh` → `main` · +1069 −43 · 19 files · 1 commits · open Adds an opt-in AMD hardware BVH4 ray-node intersection path (`VICTORY_HW_BVH=1`) for `image_bvh_intersect_ray` and `image_bvh64_intersect_ray` via AMD's D3D12 `IAmdExtD3DShaderIntrinsics` (`IntersectBvhNode`) extension. Default behavior when `VICTORY_HW_BVH` is unset is unchanged (zero extra allocations, zero root-signature changes, existing software BVH path untouched). ### Design - **Guarded extension probe & COM lifetime (`victory-shader/src/emit/host.rs`, `victory-gpu/src/host.rs`):** - When `VICTORY_HW_BVH=1` (and not WARP), verifies `adapter_desc.VendorId == 0x1002`, non-software adapter, and `D3D12_RAYTRACING_TIER >= D3D12_RAYTRACING_TIER_1_0` (`D3D12_FEATURE_D3D12_OPTIONS5`) before resolving `amdxc64.dll` via `GetModuleHandleA`/`GetProcAddress`. This prevents handing foreign devices to `AmdExtD3DCreateInterface` on mixed-GPU systems and prevents pre-RDNA 2 (GCN / RDNA 1) cards from taking the hardware path. - Acquires `IAmdExtD3DFactory` → `IAmdExtD3DShaderIntrinsics`, checks support (`0x19` wired for RDNA 2/3, or DXR-gated `0x0D` for RDNA 4 where `0x19` returns `E_NOINTERFACE` while opcode `0x22` compiles natively to hardware BVH4; verified live on RX 9070 XT / RDNA 4, untested on RDNA 2/3 silicon), and calls `Enable()`. Both COM interfaces are held in `AmdExtGuard` on `Host` for the device lifetime and cleanly `Release()`d on drop. Silently falls back to software BVH on non-AMD adapters, WARP, or unsupported drivers. - **Parallel page GPU VA table & lifetime safety (`victory-gpu/src/memory.rs`, `victory-shader/src/emit/shader.rs`):** - Only when hardware BVH is active, `memory::Shared` allocates a parallel `t3` (`MEMORY_VAS`) buffer in `MEMORY_SPACE` holding one 64-bit host GPU VA per level-2 page entry. Only whole 64 KiB pages whose host GPU VA is 64-byte aligned receive a non-zero VA; unmapped, partial, or unaligned pages store `0`. - `Shared::rewrite` runs only while no submission is in flight, overwrites every active level-2 slot (clearing removed/unowned entries to `0`), keeps `Arc<Shadow>` alive in `Shared::layout`, and `bind()` retains the VA buffer on each `HostList` via `list.keep(&va_res)`—preventing any in-flight command list from dereferencing a freed `ID3D12Resource` VA. - **Hardware lowering with safe software fallback (`victory-shader/src/emit/lower/bvh.rs`):** - For `Nodes::Raw` BVHs when hardware BVH is active, looks up the 64-bit page VA in `t3` using the existing `memory_page` index, validates 64-byte alignment of both `va_lo` and `within` (`((va_lo | within) & 63) == 0`) and in-page bounds (`within <= 0xFF80` for 128-byte box32, `within <= 0xFFC0` for 64-byte nodes), computes `nodePointer = ((page_va + within) >> 3) | kind`, and emits the `IntersectBvhNode` (`0x22`, `BoxSortEnable | ReturnBarycentrics`) magic UAV atomic sequence (`u0` in `AMD_EXT_SPACE = 2147420894`). - Unmapped pages, partial/unaligned copies, and page-straddling nodes branch directly to the existing `bvh_lanes` software path, preserving exact miss-bitmap reporting and bounds-checked reads. - **Pipeline bindings & shader-cache compatibility (`victory-gpu/src/pipeline/host.rs`, `draw.rs`, `shader_cache.rs`):** - Adds `HostShader::amd_bvh` (bit 6 in the cache entry flags), binds `t3` (`MEMORY_VAS`) and `u0` (`AMD_EXT_SPACE`) only on stages emitting hardware BVH, and keys the shader cache on the active hardware BVH opcode. Because `shader_cache.rs` hashes `ENCODING = include_bytes!("shader_cache.rs")` into the cache key and subdirectory, existing caches from earlier builds are isolated cleanly and never fail deserialization on upgrade. ### Verification (rebased on `origin/main` `63bcca4`) - **Static & policy checks:** - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: clean. - `cargo run --locked -p xtask -- policy`: **191 files ok**. - **Test suites (Windows 11 `10.0.26200`, Radeon RX 9070 XT, driver `32.0.32029.2010`):** - Full `cargo test --workspace --locked` (`VICTORY_HW_BVH` unset): **all passed**. - `VICTORY_HW_BVH=1 cargo test -p victory-shader --lib bvh_tests --locked -- --nocapture`: **16/16 passed**, including `amd_hw_bvh_lowers_and_validates` (`dxil.dll` validated) and `amd_hw_bvh_matches_the_reference_on_the_gpu` (live hardware execution via `MEMORY_VAS` + `opcode=0x22` matching CPU reference for both 32-bit and 64-bit pointers). - `VICTORY_HW_BVH=1 cargo test -p victory-gpu --lib --locked -- --test-threads=1`: **232 passed, 0 failed, 1 ignored** (including new `memory::tests::va_table_populates_aligned_whole_pages_only` and updated `shader_cache::tests`). - **Standalone GPU throughput microbenchmark (`bvh_tests::amd_hw_bvh_throughput_benchmark`, `--ignored`):** - Command (debug build): `cargo test -p victory-shader --lib amd_hw_bvh_throughput_benchmark --locked -- --ignored --nocapture` - Workload: `536,862,720` mixed box32/box16/triangle `image_bvh64_intersect_ray` tests per dispatch (`[65535, 32, 1] × 256`, median of 5 dispatches including per-dispatch D3D12 harness overhead) on RX 9070 XT: - Software (`bvh_lanes`): **`31.16 ms`** (`17,231.7 Mrays/s`) - Hardware (`IntersectBvhNode`, `opcode=0x22` via `MEMORY_VAS`): **`20.62 ms`** (`26,031.5 Mrays/s`) — **`1.51×`** wall-clock speedup - *(Cross-check note: live world RT frame-time parity was also cross-checked with the equivalent lowering in a live RT-capable fork, `avatarmanz/VIctory-7900XTX`, on this RX 9070 XT, reducing GPU busy time ~1.8× (`~54 ms` → `~29.7 ms`) with visual parity and 0 crashes / 0 device removals.)* --- *Human-owned contribution: all design decisions, hardware testing, and code review were performed by me; AI coding assistance was used during implementation and drafting.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 16:16:13 +00:00
Author
Owner

@⁠Aniseto on GitHub · 2026-11-26 16:27 UTC · original

Ran the BVH tests at 8c919e6 on an NVIDIA Blackwell desktop part with VICTORY_HW_BVH unset:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (pinned by rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build.

cargo test -p victory-shader --lib emit::bvh_tests -- --test-threads=1
16 passed; 0 failed; 1 ignored; 0 measured; 291 filtered out      (exit 0)

cargo test -p victory-shader --lib emit::bvh_tests::amd_hw_bvh_matches_the_reference_on_the_gpu -- --exact --nocapture --test-threads=1
1 passed; 0 failed; 0 ignored; 0 measured; 307 filtered out      (exit 0)

The second command prints AMD IntersectBvhNode extension unavailable on this adapter; skipped and returns early: the hardware BVH path is not exercised on this NVIDIA card. amd_hw_bvh_throughput_benchmark is ignored. What did run here are the software BVH GPU tests and the CPU reference tests; all passed. The PR has no comments yet, so this is a first datapoint: the default path still works on a Blackwell NVIDIA adapter and the guarded probe refuses this adapter instead of calling the AMD extension.

Not tested: real AMD hardware BVH (IntersectBvhNode, opcodes 0x19 and 0x22), VICTORY_HW_BVH=1 on any adapter, the ignored throughput benchmark, the full workspace suite, a paired smoke run, Intel GPUs, native wave64 hosts, Wine, release profile, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

**@⁠Aniseto** on GitHub · 2026-11-26 16:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/3294#issuecomment-7197673009) Ran the BVH tests at `8c919e6` on an NVIDIA Blackwell desktop part with `VICTORY_HW_BVH` unset: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (pinned by `rust-toolchain.toml`), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build. ``` cargo test -p victory-shader --lib emit::bvh_tests -- --test-threads=1 16 passed; 0 failed; 1 ignored; 0 measured; 291 filtered out (exit 0) cargo test -p victory-shader --lib emit::bvh_tests::amd_hw_bvh_matches_the_reference_on_the_gpu -- --exact --nocapture --test-threads=1 1 passed; 0 failed; 0 ignored; 0 measured; 307 filtered out (exit 0) ``` The second command prints `AMD IntersectBvhNode extension unavailable on this adapter; skipped` and returns early: the hardware BVH path is **not** exercised on this NVIDIA card. `amd_hw_bvh_throughput_benchmark` is `ignored`. What did run here are the software BVH GPU tests and the CPU reference tests; all passed. The PR has no comments yet, so this is a first datapoint: the default path still works on a Blackwell NVIDIA adapter and the guarded probe refuses this adapter instead of calling the AMD extension. Not tested: real AMD hardware BVH (`IntersectBvhNode`, opcodes 0x19 and 0x22), `VICTORY_HW_BVH=1` on any adapter, the ignored throughput benchmark, the full workspace suite, a paired smoke run, Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-26 17:31 UTC · original · approved these changes

Reviewed and verified locally on Windows 11 x64 (NVIDIA RTX 5090):

  • Opt-in VICTORY_HW_BVH=1 leaves the default software BVH path intact on non-AMD GPUs and cleanly lowers and validates the AMD hardware BVH DXIL path.
  • cargo test -p victory-shader --lib emit::bvh_tests:: -- --test-threads=1 (RTX 5090): 16 passed, 0 failed, 1 ignored (amd_hw_bvh_lowers_and_validates validated cleanly; amd_hw_bvh_matches_the_reference_on_the_gpu cleanly skipped on NVIDIA; all software BVH GPU tests passed on RTX 5090).
  • cargo clippy -p victory-shader -p victory-gpu --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

**@⁠Dukestar69** on GitHub · 2026-11-26 17:31 UTC · [original](https://github.com/Marvisak/VIctory/pull/3294#pullrequestreview-6078404208) · **approved these changes** Reviewed and verified locally on Windows 11 x64 (NVIDIA RTX 5090): - Opt-in `VICTORY_HW_BVH=1` leaves the default software BVH path intact on non-AMD GPUs and cleanly lowers and validates the AMD hardware BVH DXIL path. - `cargo test -p victory-shader --lib emit::bvh_tests:: -- --test-threads=1` (RTX 5090): 16 passed, 0 failed, 1 ignored (`amd_hw_bvh_lowers_and_validates` validated cleanly; `amd_hw_bvh_matches_the_reference_on_the_gpu` cleanly skipped on NVIDIA; all software BVH GPU tests passed on RTX 5090). - `cargo clippy -p victory-shader -p victory-gpu --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Author
Owner

@⁠oni-swr on GitHub · 2026-11-26 19:28 UTC · original

Independent AMD RDNA3 verification of #3294 at 8c919e6a03e58694510668e67267684fd2af0aec (base/control: main 63bcca43). Synthetic tests only.

Environment: Windows 11 build 26200 x64, AMD Radeon RX 7800 XT (RDNA3), driver 32.0.31035.1003, amdxc64.dll 8.18.10.0504, rustc 1.98.1. Physical adapter (VICTORY_D3D12_WARP / VICTORY_WARP unset). Debug test profile, --locked -j 4.

Static (CPU): cargo clippy --workspace --all-targets --locked -- -D warnings clean; cargo run -p xtask -- policy ok; test binaries build.

Results on the RX 7800 XT:

Run Result
VICTORY_HW_BVH=1 victory-shader --lib bvh_tests (--test-threads=1) 16 passed, 0 failed, 1 ignored (benchmark)
VICTORY_HW_BVH=1 victory-gpu --lib 232 passed, 0 failed, 1 ignored
VICTORY_HW_BVH unset bvh_tests 16 passed, 0 failed, 1 ignored
control 63bcca43 bvh_tests, unset and =1 14 passed each (no HW code there)
  • amd_hw_bvh_matches_the_reference_on_the_gpu actually ran on hardware (not skipped): opcode=0x22, matched reference for both node layouts (wide=false: 146 boxes / 20 triangles hit; wide=true: 146 boxes / 16 triangles hit).
  • Extension probe: with a temporary local eprintln! (not committed) both CheckSupport(0x19) and CheckSupport(0x0D) returned S_OK on this RDNA3 part, so 0x19 is satisfied; the emitted opcode is 0x22 either way.
  • Throughput (amd_hw_bvh_throughput_benchmark, 536,862,720 ray-node tests/dispatch, median of 5, debug profile): software 48.90 ms (10977.9 Mrays/s) vs hardware 42.63 ms (12592.3 Mrays/s), 1.15x. Single run on one machine; treat as indicative.

Not tested: no game files or real titles, so the page-VA lookup and fallback paths were only exercised by the synthetic tests; no other RDNA generation (RDNA2/RDNA4); no release-profile numbers; only a small number of benchmark runs.

AI use: Claude Code (Claude Sonnet 5.5).

**@⁠oni-swr** on GitHub · 2026-11-26 19:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/3294#issuecomment-7201631023) Independent AMD RDNA3 verification of #3294 at `8c919e6a03e58694510668e67267684fd2af0aec` (base/control: `main` `63bcca43`). Synthetic tests only. **Environment:** Windows 11 build 26200 x64, AMD Radeon RX 7800 XT (RDNA3), driver 32.0.31035.1003, `amdxc64.dll` 8.18.10.0504, rustc 1.98.1. Physical adapter (`VICTORY_D3D12_WARP` / `VICTORY_WARP` unset). Debug test profile, `--locked -j 4`. **Static (CPU):** `cargo clippy --workspace --all-targets --locked -- -D warnings` clean; `cargo run -p xtask -- policy` ok; test binaries build. **Results on the RX 7800 XT:** | Run | Result | |---|---| | `VICTORY_HW_BVH=1` `victory-shader --lib bvh_tests` (`--test-threads=1`) | 16 passed, 0 failed, 1 ignored (benchmark) | | `VICTORY_HW_BVH=1` `victory-gpu --lib` | 232 passed, 0 failed, 1 ignored | | `VICTORY_HW_BVH` unset `bvh_tests` | 16 passed, 0 failed, 1 ignored | | control `63bcca43` `bvh_tests`, unset and `=1` | 14 passed each (no HW code there) | - `amd_hw_bvh_matches_the_reference_on_the_gpu` actually ran on hardware (not skipped): `opcode=0x22`, matched reference for both node layouts (wide=false: 146 boxes / 20 triangles hit; wide=true: 146 boxes / 16 triangles hit). - Extension probe: with a temporary local `eprintln!` (not committed) both `CheckSupport(0x19)` and `CheckSupport(0x0D)` returned S_OK on this RDNA3 part, so 0x19 is satisfied; the emitted opcode is 0x22 either way. - Throughput (`amd_hw_bvh_throughput_benchmark`, 536,862,720 ray-node tests/dispatch, median of 5, debug profile): software 48.90 ms (10977.9 Mrays/s) vs hardware 42.63 ms (12592.3 Mrays/s), **1.15x**. Single run on one machine; treat as indicative. **Not tested:** no game files or real titles, so the page-VA lookup and fallback paths were only exercised by the synthetic tests; no other RDNA generation (RDNA2/RDNA4); no release-profile numbers; only a small number of benchmark runs. AI use: Claude Code (Claude Sonnet 5.5).
Author
Owner

@⁠kilolimaVI on GitHub · 2026-11-26 21:12 UTC · original

Tested on AMD hardware the CI can't cover: Windows 11, AMD Radeon 780M (RDNA3 iGPU, Ryzen 7 8845HS), toolchain 1.98.1, branch as-is.

  • The extension is there on this adapter: amd_hw_bvh_lowers_and_validates and amd_hw_bvh_matches_the_reference_on_the_gpu pass without the "extension unavailable ... skipped" path.
  • amd_hw_bvh_throughput_benchmark (--release --ignored --nocapture): BVH64, 536,862,720 ray-node tests per dispatch, median of 5: software 372.97 ms (1439.4 Mrays/s), hardware (opcode 0x22) 120.92 ms (4439.9 Mrays/s), 3.08x.
  • cargo test -p victory-shader --lib --locked --no-fail-fast -- --test-threads=1: 304 passed, 0 failed (main: 302 passed).

AI-assisted (Claude).

**@⁠kilolimaVI** on GitHub · 2026-11-26 21:12 UTC · [original](https://github.com/Marvisak/VIctory/pull/3294#issuecomment-7203491157) Tested on AMD hardware the CI can't cover: Windows 11, AMD Radeon 780M (RDNA3 iGPU, Ryzen 7 8845HS), toolchain 1.98.1, branch as-is. - The extension is there on this adapter: `amd_hw_bvh_lowers_and_validates` and `amd_hw_bvh_matches_the_reference_on_the_gpu` pass without the "extension unavailable ... skipped" path. - `amd_hw_bvh_throughput_benchmark` (`--release --ignored --nocapture`): BVH64, 536,862,720 ray-node tests per dispatch, median of 5: software 372.97 ms (1439.4 Mrays/s), hardware (opcode 0x22) 120.92 ms (4439.9 Mrays/s), **3.08x**. - `cargo test -p victory-shader --lib --locked --no-fail-fast -- --test-threads=1`: 304 passed, 0 failed (main: 302 passed). AI-assisted (Claude).
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3294/head:github-bot/gh-3294'
git switch 'github-bot/gh-3294'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3294'
git switch 'github-bot/gh-3294'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3294'
git switch 'github-bot/gh-3294'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3294'
git switch 'main'
git merge --squash 'github-bot/gh-3294'
git switch 'main'
git merge --ff-only 'github-bot/gh-3294'
git switch 'main'
git merge 'github-bot/gh-3294'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3294
No description provided.