Tests: verify RDNA2 BVH box16, paired triangles, and scene edge cases #1554
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1554
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1554"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 · openAdd integration contract tests for
xcl::gpu::bvhcovering 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),@60barycentric vertex rotation bits, unknown node types,t < 0/tmaxculling boundaries, andBvh::trace_sceneskipping instances with missing BLASes.What is in it
crates/xcl/tests/bvh_contract.rs: add integration contract tests forxcl::gpu::bvhcovering box16 (type 4) half-float AABB decoding andsort=false/sort=trueordering, box16 root traversal, paired-triangle leaves (type 0 with bit 7 set -> type 1) and@60barycentric rotation bits, unknown node types returningINVALID, empty/non-empty behind-ray andtmaxculling boundaries, andBvh::trace_sceneskipping instances whoseblas()callback returnsNone.Tested
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))Not tested
AI use
@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 base9e3831e).Tested
cargo build --workspace, thenXCL_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.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.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_formwas skipped with--skip. It fails on main9e3831etoo, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (XCL_HEAP_WINDOWSunset). Reported as #1651.Not tested
AI use
@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!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.