Tests: verify RDNA2 BVH box16, paired triangles, and scene edge cases #1554

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

@⁠amazedturnip on GitHub · 2026-11-24 17:36 UTC · original
amazedturnip:xcl/tests-bvh-box16-triangle-pair-and-scene-contract-013434 → main · +221 −0 · 1 files · 1 commits · open

Add integration contract tests for xcl::gpu::bvh covering RDNA2 traversal paths not exercised by the inline unit tests: box16 (type 4) half-float AABB decoding and sort order, paired-triangle leaves (type 0 bit 7 -> type 1), @60 barycentric vertex rotation bits, unknown node types, t < 0 / tmax culling boundaries, and Bvh::trace_scene skipping instances with missing BLASes.

What is in it

  • crates/xcl/tests/bvh_contract.rs: add integration contract tests for xcl::gpu::bvh covering box16 (type 4) half-float AABB decoding and sort=false/sort=true ordering, box16 root traversal, paired-triangle leaves (type 0 with bit 7 set -> type 1) and @60 barycentric rotation bits, unknown node types returning INVALID, empty/non-empty behind-ray and tmax culling boundaries, and Bvh::trace_scene skipping instances whose blas() callback returns None.

Tested

  • Hardware / OS / Rust: AMD Ryzen 7 9800X3D 8-Core Processor, Windows 11 Pro 10.0.26100 (Build 26100), rustc 1.94.1 (e408947bf 2026-03-25), stable-x86_64-pc-windows-msvc, debug build
  • AMD (AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64), XCL_ADAPTER=radeon): cargo test --workspace -- --test-threads=2 — 782 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 1 (no heap windows))
  • Verification / negative control: new test suite — verified 3x deterministic

Not tested

  • Retail Xbox Series X|S title (not available on this host)
  • NVIDIA wave32 GPU (not run in this pass; verified on AMD Radeon native wave64)

AI use

  • Antigravity CLI (Gemini 4 Hydrogen (Medium)) assisted with diagnosis, implementation, tests, review, and description; all tests executed locally on AMD Radeon (native wave64).
**@⁠amazedturnip** on GitHub · 2026-11-24 17:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/1554) `amazedturnip:xcl/tests-bvh-box16-triangle-pair-and-scene-contract-013434` → `main` · +221 −0 · 1 files · 1 commits · open Add integration contract tests for `xcl::gpu::bvh` covering RDNA2 traversal paths not exercised by the inline unit tests: box16 (type 4) half-float AABB decoding and sort order, paired-triangle leaves (type 0 bit 7 -> type 1), `@60` barycentric vertex rotation bits, unknown node types, `t < 0` / `tmax` culling boundaries, and `Bvh::trace_scene` skipping instances with missing BLASes. **What is in it** - `crates/xcl/tests/bvh_contract.rs`: add integration contract tests for `xcl::gpu::bvh` covering box16 (type 4) half-float AABB decoding and `sort=false`/`sort=true` ordering, box16 root traversal, paired-triangle leaves (type 0 with bit 7 set -> type 1) and `@60` barycentric rotation bits, unknown node types returning `INVALID`, empty/non-empty behind-ray and `tmax` culling boundaries, and `Bvh::trace_scene` skipping instances whose `blas()` callback returns `None`. **Tested** - Hardware / OS / Rust: AMD Ryzen 7 9800X3D 8-Core Processor, Windows 11 Pro 10.0.26100 (Build 26100), rustc 1.94.1 (e408947bf 2026-03-25), stable-x86_64-pc-windows-msvc, debug build - AMD (`AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64)`, `XCL_ADAPTER=radeon`): `cargo test --workspace -- --test-threads=2` — 782 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 1 (no heap windows)) - Verification / negative control: new test suite — verified 3x deterministic **Not tested** - Retail Xbox Series X|S title (not available on this host) - NVIDIA wave32 GPU (not run in this pass; verified on AMD Radeon native wave64) **AI use** - Antigravity CLI (Gemini 4 Hydrogen (Medium)) assisted with diagnosis, implementation, tests, review, and description; all tests executed locally on AMD Radeon (native wave64).
Add integration contract tests for xcl::gpu::bvh covering box16 half-float decoding and sort=false ordering, paired-triangle leaves (type 0 + bit 7 -> type 1) with @60 barycentric rotation bits, unknown node types, behind-ray/tmax culling, and trace_scene missing-BLAS handling.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:57:20 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 18:50 UTC · original · edited 2026-11-24 18:51 UTC

Full-suite run, since this PR has no test report yet. Tested exact head f4c7bba (on its base 9e3831e).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form: 781 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: box16_half_float_decoding_and_sort_order, box16_root_traversal_reaches_triangle_leaf, paired_triangle_leaf_traversal_and_disable_flag, triangle_barycentric_rotation_bits_at_60, unknown_node_types_and_culling_boundaries, trace_scene_skips_missing_blas_and_prebuild_size_scales.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 782 passed, 0 failed, 41 ignored. SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • heap_window_out_of_memory_falls_back_to_the_switch_form was skipped with --skip. It fails on main 9e3831e too, not because of this PR: under XCL_REQUIRE_GPU=mesh, runner::skip_test turns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (XCL_HEAP_WINDOWS unset). Reported as #1651.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 18:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/1554#issuecomment-7141218016) · edited 2026-11-24 18:51 UTC Full-suite run, since this PR has no test report yet. Tested exact head `f4c7bba` (on its base `9e3831e`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form`: **781 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `box16_half_float_decoding_and_sort_order`, `box16_root_traversal_reaches_triangle_leaf`, `paired_triangle_leaf_traversal_and_disable_flag`, `triangle_barycentric_rotation_bits_at_60`, `unknown_node_types_and_culling_boundaries`, `trace_scene_skips_missing_blas_and_prebuild_size_scales`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **782 passed, 0 failed, 41 ignored**. SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `heap_window_out_of_memory_falls_back_to_the_switch_form` was skipped with `--skip`. It fails on main `9e3831e` too, not because of this PR: under `XCL_REQUIRE_GPU=mesh`, `runner::skip_test` turns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (`XCL_HEAP_WINDOWS` unset). Reported as #1651. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 19:19 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 19:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/1554#issuecomment-7141926625) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/1554/head:github-bot/gh-1554'
git switch 'github-bot/gh-1554'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1554'
git switch 'github-bot/gh-1554'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1554'
git switch 'github-bot/gh-1554'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1554'
git switch 'main'
git merge --squash 'github-bot/gh-1554'
git switch 'main'
git merge --ff-only 'github-bot/gh-1554'
git switch 'main'
git merge 'github-bot/gh-1554'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.