Recompiler: select vertices for BVH triangle node types 2 and 3 #1949

Merged
n-romanovich merged 1 commit from upstream-pr/1959 into main 2026-11-25 01:21:51 +00:00
n-romanovich commented 2026-11-24 23:52:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by n-romanovich on 2026-11-24T23:52:03Z.


Fixes #1917.

GFX10 triangle nodes pack up to four triangles across five vertices:

  • type 0: (v0, v1, v2) at byte offsets (0, 12, 24)
  • type 1: (v1, v3, v2) at byte offsets (12, 36, 24)
  • type 2: (v2, v3, v4) at byte offsets (24, 36, 48)
  • type 3: (v2, v4, v0) at byte offsets (24, 48, 0)

Previously bvh::intersect_node, emit.rs bvh_intersect, and dxil/lower_image.rs bvh_intersect only checked type == 1 and fell back to type 0 (v0, v1, v2) for types 2 and 3.

What is in it

  • crates/xcl/src/gpu/bvh.rs: select (o0, o1, o2) across node types 0..=3 in intersect_node, and add unit test triangle_node_types_0_to_3_select_expected_vertices.
  • crates/xcl/src/gpu/recomp/emit.rs: update bvh_intersect to select vertex offsets for types 0..=3.
  • crates/xcl/src/gpu/dxil/lower_image.rs: update bvh_intersect to select vertex offsets for types 0..=3.
  • crates/xcl/src/gpu/recomp/tests.rs: add GPU test gpu_bvh_triangle_types_2_and_3.

Tested
Hardware: Windows 11 x64, NVIDIA GeForce RTX 5060 Ti.

  • cargo test -p xcl --lib bvh -- --test-threads=4: 13 passed, 0 failed, 0 ignored (949 filtered out)
  • cargo test --workspace -- --test-threads=4: 986 passed, 0 failed, 45 ignored
    • SKIPPED: 21 gpu::recomp wave64 / refused per-lane f16 tests (no wave64 / refused per-lane f16), shaders::tests::pso_measurement_compiles_an_exact_synthetic_record (Windows Developer Mode is required, 0x887A002D), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)

Regression run
Main (f5136a640a69be3ce072e1ea8939e97d005b4cb1):

xcl-smoke v1
commit: f5136a640a69be3ce072e1ea8939e97d005b4cb1
gpu: NVIDIA GeForce RTX 5060 Ti
title: FILES
seconds: 60
exit: 0x0
frames shown: 1503 (PresentX 1503)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 17295 MB

PR (f7bd213ca7d5ade6785a4a9aa3be2eb6491f754d):

xcl-smoke v1
commit: f7bd213ca7d5ade6785a4a9aa3be2eb6491f754d
gpu: NVIDIA GeForce RTX 5060 Ti
title: FILES
seconds: 60
exit: 0x0
frames shown: 1476 (PresentX 1476)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14825 MB

Not tested

  • macOS / Linux (crate targets Windows only).
  • AMD / wave64-capable GPU.

AI use

  • Antigravity (model name not provided): implemented the fix and CPU/GPU tests, ran the test suite and smoke.ps1 runs.
<!-- greyfinch-sync:ivall/xcl:issue:6593833666 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1959). Originally posted by [n-romanovich](https://github.com/n-romanovich) on 2026-11-24T23:52:03Z. --- Fixes #1917. GFX10 triangle nodes pack up to four triangles across five vertices: - type `0`: `(v0, v1, v2)` at byte offsets `(0, 12, 24)` - type `1`: `(v1, v3, v2)` at byte offsets `(12, 36, 24)` - type `2`: `(v2, v3, v4)` at byte offsets `(24, 36, 48)` - type `3`: `(v2, v4, v0)` at byte offsets `(24, 48, 0)` Previously `bvh::intersect_node`, `emit.rs` `bvh_intersect`, and `dxil/lower_image.rs` `bvh_intersect` only checked `type == 1` and fell back to type `0` (`v0, v1, v2`) for types `2` and `3`. **What is in it** - `crates/xcl/src/gpu/bvh.rs`: select `(o0, o1, o2)` across node types `0..=3` in `intersect_node`, and add unit test `triangle_node_types_0_to_3_select_expected_vertices`. - `crates/xcl/src/gpu/recomp/emit.rs`: update `bvh_intersect` to select vertex offsets for types `0..=3`. - `crates/xcl/src/gpu/dxil/lower_image.rs`: update `bvh_intersect` to select vertex offsets for types `0..=3`. - `crates/xcl/src/gpu/recomp/tests.rs`: add GPU test `gpu_bvh_triangle_types_2_and_3`. **Tested** Hardware: Windows 11 x64, NVIDIA GeForce RTX 5060 Ti. - `cargo test -p xcl --lib bvh -- --test-threads=4`: 13 passed, 0 failed, 0 ignored (`949 filtered out`) - `cargo test --workspace -- --test-threads=4`: 986 passed, 0 failed, 45 ignored - `SKIPPED`: 21 `gpu::recomp` wave64 / refused per-lane f16 tests (`no wave64` / refused per-lane f16), `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record` (`Windows Developer Mode is required`, `0x887A002D`), `heap_window_out_of_memory_falls_back_to_the_switch_form` (`no heap windows`) **Regression run** Main (`f5136a640a69be3ce072e1ea8939e97d005b4cb1`): ``` xcl-smoke v1 commit: f5136a640a69be3ce072e1ea8939e97d005b4cb1 gpu: NVIDIA GeForce RTX 5060 Ti title: FILES seconds: 60 exit: 0x0 frames shown: 1503 (PresentX 1503) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 17295 MB ``` PR (`f7bd213ca7d5ade6785a4a9aa3be2eb6491f754d`): ``` xcl-smoke v1 commit: f7bd213ca7d5ade6785a4a9aa3be2eb6491f754d gpu: NVIDIA GeForce RTX 5060 Ti title: FILES seconds: 60 exit: 0x0 frames shown: 1476 (PresentX 1476) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14825 MB ``` **Not tested** - macOS / Linux (crate targets Windows only). - AMD / wave64-capable GPU. **AI use** - Antigravity (model name not provided): implemented the fix and CPU/GPU tests, ran the test suite and `smoke.ps1` runs.
Anon64 commented 2026-11-25 00:09:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-24T23:57:00Z.


Independent check of this PR's head f7bd213 on NVIDIA, with tests written separately from yours (I had the same fix locally before I saw this PR, so I ran my tests against your code instead of opening a second one).

The tests (local only, not pushed):

  • One node with five distinct vertices in z = 5, laid out so that the four triangles of types 0..=3 are all different.
  • Per type, a ray down +z through that triangle's centroid must hit at t = 5.
  • Per type, a ray through a point of another triangle only must miss. For types 1–3 that point is in triangle 0, which is what the old code tested.
  • each_triangle_type_tests_its_own_vertices in bvh::tests checks the CPU mirror.
  • gpu_each_triangle_type_tests_its_own_vertices runs one IMAGE_BVH_INTERSECT_RAY over those 8 rays on the GPU. It checks hit / miss and t against the expected values and against bvh::intersect_node.

Results:

main 20cf130 (without the fix) this PR f7bd213
CPU test fails: type 2: the ray through its centroid hits … [inf, 1.0, 0.0, 0.0] passes
GPU, HLSL path fails at lane 4 (type 2) passes
GPU, XCL_DIRECT_DXIL=1 (your lower_image.rs change) fails at lane 4 (type 2) passes

On this PR's head, your triangle_node_types_0_to_3_select_expected_vertices and gpu_bvh_triangle_types_2_and_3 and the existing BVH tests (gpu_bvh_intersect_ray, gpu_triangle_pair_and_box16_nodes, gpu_built_bvh_nodes_match_the_cpu_node_test, gpu_bvh64_intersect_ray_across_memory_windows_and_grazing) pass on both paths: 8 passed, 0 failed each.

Tested: RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release, DXC 1.8.2502.11, cargo test -p xcl --release --lib -- each_triangle_type triangle_node_types gpu_triangle_pair gpu_built_bvh gpu_bvh.

Not tested: the whole suite; AMD hardware, so not against a real RDNA2 image_bvh_intersect_ray; a title that packs more than two triangles in a node.

Written with Claude Code (Claude Opus 5.5) from runs on this machine.

<!-- greyfinch-sync:ivall/xcl:comment:7147972164 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1959#issuecomment-7147972164). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-24T23:57:00Z. --- Independent check of this PR's head `f7bd213` on NVIDIA, with tests written separately from yours (I had the same fix locally before I saw this PR, so I ran my tests against your code instead of opening a second one). **The tests (local only, not pushed):** - One node with five distinct vertices in z = 5, laid out so that the four triangles of types 0..=3 are all different. - Per type, a ray down +z through that triangle's centroid must hit at t = 5. - Per type, a ray through a point of another triangle only must miss. For types 1–3 that point is in triangle 0, which is what the old code tested. - `each_triangle_type_tests_its_own_vertices` in `bvh::tests` checks the CPU mirror. - `gpu_each_triangle_type_tests_its_own_vertices` runs one `IMAGE_BVH_INTERSECT_RAY` over those 8 rays on the GPU. It checks hit / miss and t against the expected values and against `bvh::intersect_node`. **Results:** | | `main` `20cf130` (without the fix) | this PR `f7bd213` | |---|---|---| | CPU test | fails: `type 2: the ray through its centroid hits … [inf, 1.0, 0.0, 0.0]` | passes | | GPU, HLSL path | fails at lane 4 (type 2) | passes | | GPU, `XCL_DIRECT_DXIL=1` (your `lower_image.rs` change) | fails at lane 4 (type 2) | passes | On this PR's head, your `triangle_node_types_0_to_3_select_expected_vertices` and `gpu_bvh_triangle_types_2_and_3` and the existing BVH tests (`gpu_bvh_intersect_ray`, `gpu_triangle_pair_and_box16_nodes`, `gpu_built_bvh_nodes_match_the_cpu_node_test`, `gpu_bvh64_intersect_ray_across_memory_windows_and_grazing`) pass on both paths: 8 passed, 0 failed each. **Tested:** RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release, DXC 1.8.2502.11, `cargo test -p xcl --release --lib -- each_triangle_type triangle_node_types gpu_triangle_pair gpu_built_bvh gpu_bvh`. **Not tested:** the whole suite; AMD hardware, so not against a real RDNA2 `image_bvh_intersect_ray`; a title that packs more than two triangles in a node. Written with Claude Code (Claude Opus 5.5) from runs on this machine.
maritzaloas96-ship-it commented 2026-11-25 01:10:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by maritzaloas96-ship-it on 2026-11-25T00:28:13Z.

Review: COMMENTED


Reviewed and tested on a second NVIDIA architecture (Ada). Head f7bd213, base f5136a640.

Hardware: Windows 11 x64, NVIDIA GeForce RTX 4060 Ti (driver 32.0.16.1742), DXC 1.9.2609.

Code review

  • Vertex offsets checked against the hardware table in #1917 in all three paths (bvh.rs, emit.rs, lower_image.rs): type 0 (0, 12, 24), 1 (12, 36, 24), 2 (24, 36, 48), 3 (24, 48, 0). All match.
  • XCL-built nodes are unaffected: the CPU builder only emits types 0 and 1 (the pair flag 0x80 at +48 is traversed as n | 1, ids are read at +52 / +56), so the v4 slot that holds the ids is never read as a vertex. This was the concern in #1917 and it holds.

Tests

Run Result
triangle_node_types_0_to_3_select_expected_vertices pass
gpu_bvh_triangle_types_2_and_3 (HLSL path) pass
gpu_bvh_triangle_types_2_and_3 with XCL_DIRECT_DXIL=1 pass
the same three with the fix reverted, new tests kept all three fail
only lower_image.rs reverted: HLSL / XCL_DIRECT_DXIL=1 pass / fail

The last row is the one the PR was missing: Tested has no XCL_DIRECT_DXIL=1 run, so the lower_image.rs change had no evidence. The new GPU test does cover it under that variable, and the fix is correct there. None of the GPU runs printed skipping.

cargo test --workspace -- --test-threads=4: 986 passed, 0 failed, 45 ignored, the same counts as the RTX 5060 Ti run above. SKIPPED: the wave64 tests (no wave64), three refused per-lane f16 / f32 forms, pso_measurement_compiles_an_exact_synthetic_record (cannot disable the driver cache), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).

Nits (non-blocking)

  • The GPU test has no miss ray for type 3; the CPU test has one. #1917 suggested a ray inside and one outside each type.
  • In the CPU test, assert!(hit2[1] != 1.0 || hit2[0].is_finite(), ...) is implied by the assertion right after it and can go.

Not tested: no smoke run (I have no title); AMD / wave64.

AI use: Claude Opus 5.5 (Claude Code) helped with the review and ran the tests. Every result above comes from runs on the hardware named.

<!-- greyfinch-sync:ivall/xcl:review:6049661790 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1959#pullrequestreview-6049661790). Originally posted by [maritzaloas96-ship-it](https://github.com/maritzaloas96-ship-it) on 2026-11-25T00:28:13Z. **Review:** COMMENTED --- Reviewed and tested on a second NVIDIA architecture (Ada). Head `f7bd213`, base `f5136a640`. **Hardware:** Windows 11 x64, NVIDIA GeForce RTX 4060 Ti (driver 32.0.16.1742), DXC 1.9.2609. **Code review** - Vertex offsets checked against the hardware table in #1917 in all three paths (`bvh.rs`, `emit.rs`, `lower_image.rs`): type 0 `(0, 12, 24)`, 1 `(12, 36, 24)`, 2 `(24, 36, 48)`, 3 `(24, 48, 0)`. All match. - XCL-built nodes are unaffected: the CPU builder only emits types 0 and 1 (the pair flag `0x80` at +48 is traversed as `n | 1`, ids are read at +52 / +56), so the v4 slot that holds the ids is never read as a vertex. This was the concern in #1917 and it holds. **Tests** | Run | Result | |---|---| | `triangle_node_types_0_to_3_select_expected_vertices` | pass | | `gpu_bvh_triangle_types_2_and_3` (HLSL path) | pass | | `gpu_bvh_triangle_types_2_and_3` with `XCL_DIRECT_DXIL=1` | pass | | the same three with the fix reverted, new tests kept | all three fail | | only `lower_image.rs` reverted: HLSL / `XCL_DIRECT_DXIL=1` | pass / fail | The last row is the one the PR was missing: **Tested** has no `XCL_DIRECT_DXIL=1` run, so the `lower_image.rs` change had no evidence. The new GPU test does cover it under that variable, and the fix is correct there. None of the GPU runs printed `skipping`. `cargo test --workspace -- --test-threads=4`: **986 passed, 0 failed, 45 ignored**, the same counts as the RTX 5060 Ti run above. SKIPPED: the wave64 tests (`no wave64`), three refused per-lane f16 / f32 forms, `pso_measurement_compiles_an_exact_synthetic_record` (cannot disable the driver cache), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). **Nits (non-blocking)** - The GPU test has no miss ray for type 3; the CPU test has one. #1917 suggested a ray inside and one outside each type. - In the CPU test, `assert!(hit2[1] != 1.0 || hit2[0].is_finite(), ...)` is implied by the assertion right after it and can go. **Not tested:** no smoke run (I have no title); AMD / wave64. **AI use:** Claude Opus 5.5 (Claude Code) helped with the review and ran the tests. Every result above comes from runs on the hardware named.
DarkPanda69 commented 2026-11-25 01:10:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-25T00:11:42Z.


AMD run with native 64-lane waves, which this PR lists as not tested (the other report here is NVIDIA).

Tested: pass, head f7bd213 applied on main 80f4819, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.
cargo test -p xcl --lib -- gpu:: --test-threads=4:

  • AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010, waves 32..64: 464 passed, 2 failed, 21 ignored. gpu_bvh_triangle_types_2_and_3 and triangle_node_types_0_to_3_select_expected_vertices ok. The 2 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 and _3, which fail the same way on main 80f4819 without this PR on this card (seeds 722 and 1599), so they are not from this change.
  • NVIDIA RTX 3060, driver 32.0.16.1088: 466 passed, 0 failed, 21 ignored. Both new tests ok.

Not tested: Linux; the whole workspace suite; a title.

AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7148249781 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1959#issuecomment-7148249781). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-25T00:11:42Z. --- AMD run with native 64-lane waves, which this PR lists as not tested (the other report here is NVIDIA). **Tested:** pass, head `f7bd213` applied on `main` `80f4819`, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17. `cargo test -p xcl --lib -- gpu:: --test-threads=4`: - AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010, waves 32..64: 464 passed, 2 failed, 21 ignored. `gpu_bvh_triangle_types_2_and_3` and `triangle_node_types_0_to_3_select_expected_vertices` ok. The 2 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` and `_3`, which fail the same way on `main` `80f4819` without this PR on this card (seeds 722 and 1599), so they are not from this change. - NVIDIA RTX 3060, driver 32.0.16.1088: 466 passed, 0 failed, 21 ignored. Both new tests ok. **Not tested:** Linux; the whole workspace suite; a title. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
upipibi commented 2026-11-25 01:10:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T00:29:43Z.


The vertex selection matches hardware. boykopovar/AnyPS5#24128 measured image_bvh_intersect_ray on gfx1036 through their hardware oracle. Type 2 is (v2, v3, v4) and type 3 is (v2, v4, v0), with v4 at dwords 12–14 and the id at dword 15, which is what this PR uses at (24, 36, 48) and (24, 48, 0).

RTX 3070 (Ampere, driver 616.56, Windows 11, debug) at f7bd213: the dxil::/bvh:: units (122 passed) and the gpu_ tests with XCL_DIRECT_DXIL=0 and 1 (111 passed each, including the new one) all pass.

The same measurement found two more triangle-node rules that XCL doesn't follow yet. Both are outside this PR's scope; listing them in case someone wants a follow-up:

  • Miss in barycentric mode: hardware returns t = ±inf with the sign of the denominator, the real denominator, and the barycentric numerators computed from it. bvh_intersect (HLSL and bvh::intersect_node) returns (+inf, 1.0, 0, 0).
  • Triangle-id return mode (T# dword 3 bit 24): hardware returns (t, denominator, id + type, …), and on a miss (+inf, 1.0, id + type, 0), wrapping at 2^32. XCL always returns barycentrics.

Not measured there: a zero or NaN denominator. Their hits are f32 Möller–Trumbore, a few ULP from the hardware's, as XCL's are.

AI-assisted (Claude Code). Synthetic tests only.

<!-- greyfinch-sync:ivall/xcl:comment:7148567753 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1959#issuecomment-7148567753). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T00:29:43Z. --- The vertex selection matches hardware. boykopovar/AnyPS5#24128 measured `image_bvh_intersect_ray` on gfx1036 through their hardware oracle. Type 2 is (v2, v3, v4) and type 3 is (v2, v4, v0), with v4 at dwords 12–14 and the id at dword 15, which is what this PR uses at (24, 36, 48) and (24, 48, 0). RTX 3070 (Ampere, driver 616.56, Windows 11, debug) at `f7bd213`: the `dxil::`/`bvh::` units (122 passed) and the `gpu_` tests with `XCL_DIRECT_DXIL=0` and `1` (111 passed each, including the new one) all pass. The same measurement found two more triangle-node rules that XCL doesn't follow yet. Both are outside this PR's scope; listing them in case someone wants a follow-up: - **Miss in barycentric mode:** hardware returns t = ±inf with the sign of the denominator, the real denominator, and the barycentric numerators computed from it. `bvh_intersect` (HLSL and `bvh::intersect_node`) returns `(+inf, 1.0, 0, 0)`. - **Triangle-id return mode** (T# dword 3 bit 24): hardware returns `(t, denominator, id + type, …)`, and on a miss `(+inf, 1.0, id + type, 0)`, wrapping at 2^32. XCL always returns barycentrics. Not measured there: a zero or NaN denominator. Their hits are f32 Möller–Trumbore, a few ULP from the hardware's, as XCL's are. AI-assisted (Claude Code). Synthetic tests only.
JJAutoCompare commented 2026-11-25 01:10:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T00:39:45Z.


Intel Arc A770 test report at f7bd213ca7d5ade6785a4a9aa3be2eb6491f754d

Tested on Intel Arc A770 driver 32.0.101.9175, Ryzen 7 3800X, Windows 11 Enterprise Evaluation 26200.9974, Rust 1.100.0 MSVC debug, DXC/DXIL 1.9.2609.5. The clean test head still matched GitHub after the runs. With XCL_ADAPTER=A770, XCL_REQUIRE_GPU=wave64 and XCL_PER_LANE=0, ran cargo test -p xcl --lib gpu_bvh_triangle_types_2_and_3 -- --nocapture --test-threads=1 twice.

Backend Result
XCL_DIRECT_DXIL=0 (HLSL + DXC) 1 passed, 0 failed, 0 ignored, 0 skipped. 2.65 s.
XCL_DIRECT_DXIL=1 (direct DXIL) 1 passed, 0 failed, 0 ignored, 0 skipped. 1.04 s.

The test executed on both backends. The elapsed times are single test runs rather than a performance comparison. Stale build-script artifacts prevented the initial launch. Refreshing Cargo's input timestamps fixed the build without source edits.

Not tested the PR base, CPU mirror test, full suite, retail smoke or native AMD behavior.

AI use Codex in T3 Code (gpt-6.2-sol) ran the tests and prepared the report. The coordinator verified both logs and the PR head.

<!-- greyfinch-sync:ivall/xcl:comment:7148744997 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1959#issuecomment-7148744997). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T00:39:45Z. --- **Intel Arc A770 test report at `f7bd213ca7d5ade6785a4a9aa3be2eb6491f754d`** **Tested** on Intel Arc A770 driver `32.0.101.9175`, Ryzen 7 3800X, Windows 11 Enterprise Evaluation `26200.9974`, Rust `1.100.0` MSVC debug, DXC/DXIL `1.9.2609.5`. The clean test head still matched GitHub after the runs. With `XCL_ADAPTER=A770`, `XCL_REQUIRE_GPU=wave64` and `XCL_PER_LANE=0`, ran `cargo test -p xcl --lib gpu_bvh_triangle_types_2_and_3 -- --nocapture --test-threads=1` twice. | Backend | Result | |---|---| | `XCL_DIRECT_DXIL=0` (HLSL + DXC) | 1 passed, 0 failed, 0 ignored, 0 skipped. 2.65 s. | | `XCL_DIRECT_DXIL=1` (direct DXIL) | 1 passed, 0 failed, 0 ignored, 0 skipped. 1.04 s. | The test executed on both backends. The elapsed times are single test runs rather than a performance comparison. Stale build-script artifacts prevented the initial launch. Refreshing Cargo's input timestamps fixed the build without source edits. **Not tested** the PR base, CPU mirror test, full suite, retail smoke or native AMD behavior. **AI use** Codex in T3 Code (`gpt-6.2-sol`) ran the tests and prepared the report. The coordinator verified both logs and the PR head.
raylitebull commented 2026-11-25 01:11:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T01:08:32Z.


Vertex selection across bvh.rs, emit.rs, and lower_image.rs ((0, 12, 24), (12, 36, 24), (24, 36, 48), (24, 48, 0)), Build and test + PR description, and AMD + NVIDIA + Intel verification all pass on f7bd213.

Remaining before merge: please let us know if you plan to address @maritzaloas96-ship-it's two minor test nits (dropping the redundant assert!(hit2[1] != 1.0 || ...) check in bvh.rs and adding a type-3 outside miss ray in gpu_bvh_triangle_types_2_and_3), or if this head is final.

<!-- greyfinch-sync:ivall/xcl:comment:7149247605 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1959#issuecomment-7149247605). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T01:08:32Z. --- Vertex selection across `bvh.rs`, `emit.rs`, and `lower_image.rs` (`(0, 12, 24)`, `(12, 36, 24)`, `(24, 36, 48)`, `(24, 48, 0)`), `Build and test` + `PR description`, and AMD + NVIDIA + Intel verification all pass on `f7bd213`. **Remaining before merge:** please let us know if you plan to address @maritzaloas96-ship-it's two minor test nits (dropping the redundant `assert!(hit2[1] != 1.0 || ...)` check in `bvh.rs` and adding a type-3 outside miss ray in `gpu_bvh_triangle_types_2_and_3`), or if this head is final.
upstream-sync closed this pull request 2026-11-25 02:07:58 +00:00
n-romanovich commented 2026-11-25 02:08:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by n-romanovich on 2026-11-25T01:12:10Z.


@raylitebull, this head (f7bd213) is final — both points are minor test-only nits, and all code and hardware checks are already green on it. Happy to leave it as-is for merge.

<!-- greyfinch-sync:ivall/xcl:comment:7149308719 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1959#issuecomment-7149308719). Originally posted by [n-romanovich](https://github.com/n-romanovich) on 2026-11-25T01:12:10Z. --- @raylitebull, this head (`f7bd213`) is final — both points are minor test-only nits, and all code and hardware checks are already green on it. Happy to leave it as-is for merge.
DavidM1911 commented 2026-11-25 03:05:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T02:59:26Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7151473766 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1959#issuecomment-7151473766). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T02:59:26Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
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
xcl-dev/xcl!1949
No description provided.