shader: regression tests for cube faces past 5 and compute sample levels #7

Manually merged
github merged 1 commit from github-bot/gh-7 into main 2026-11-27 12:54:57 +00:00 AGit
Owner

@⁠LordLoon on GitHub · 2026-11-27 07:06 UTC · original
LordLoon:shader-cube-array-compute-lod → main · +178 −3 · 2 files · 1 commits · merged 2026-11-27 12:46 UTC

What changed

  • Two D3D12 regression tests in cube_lod_tests.rs, #[ignore]d until their fixes land.
  • A View::CubeArray test-harness view in emit/host.rs, so the face test binds a real cube array.

Why changed

  • Issue #5: cube-array face operands past 5 read +X of slice 0, and implicit-LOD samples in compute programs always read level 0.
  • Requested in #5 as regression tests for the fixes.

Testing

  • cargo test -p victory-shader --locked --lib cube_: 1 passed, 2 ignored.
  • With -- --ignored: both fail as described in #5 (slice 1 faces read +X; levels 0 instead of 4), on WARP and hardware.
  • cargo test --workspace --locked, cargo clippy --workspace --all-targets --locked (no new warnings), cargo xtask policy.

Refs #5.

AI-assisted.

**@⁠LordLoon** on GitHub · 2026-11-27 07:06 UTC · [original](https://github.com/brothernog/rota/pull/7) `LordLoon:shader-cube-array-compute-lod` → `main` · +178 −3 · 2 files · 1 commits · merged 2026-11-27 12:46 UTC ## What changed - Two D3D12 regression tests in `cube_lod_tests.rs`, `#[ignore]`d until their fixes land. - A `View::CubeArray` test-harness view in `emit/host.rs`, so the face test binds a real cube array. ## Why changed - Issue #5: cube-array face operands past 5 read +X of slice 0, and implicit-LOD samples in compute programs always read level 0. - Requested in #5 as regression tests for the fixes. ## Testing - `cargo test -p victory-shader --locked --lib cube_`: 1 passed, 2 ignored. - With `-- --ignored`: both fail as described in #5 (slice 1 faces read +X; levels 0 instead of 4), on WARP and hardware. - `cargo test --workspace --locked`, `cargo clippy --workspace --all-targets --locked` (no new warnings), `cargo xtask policy`. Refs #5. AI-assisted.
Two D3D12 tests in cube_lod_tests.rs, ignored until their fixes land
(issue #5):

- A cube-array sample whose face operand is 8 x slice + face reads that
  slice's face; today faces past 5 read +X of slice 0. The test harness
  gains a cube-array view (View::CubeArray) for it.
- An implicit-LOD sample in a compute program takes its level from the
  quad's lanes (8 and 16 texels apart: level 4); today every lane reads
  level 0. The test also checks that the lanes' coordinates differ.

`cargo test -p victory-shader --lib cube_ -- --ignored` shows both
failing on WARP and on hardware.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 07:12:58 +00:00
Author
Owner

@⁠brothernog on GitHub · 2026-11-27 07:10 UTC · original

Thanks, this is useful: tests that fail today and turn into proof once the fixes land. The maintainer will review and merge it; the fixes themselves (quad-derived LOD in compute, cube-array views) are queued behind switches here so they can be A/B'd against these tests.

This comment was AI-assisted.

**@⁠brothernog** on GitHub · 2026-11-27 07:10 UTC · [original](https://github.com/brothernog/rota/pull/7#issuecomment-7212212454) Thanks, this is useful: tests that fail today and turn into proof once the fixes land. The maintainer will review and merge it; the fixes themselves (quad-derived LOD in compute, cube-array views) are queued behind switches here so they can be A/B'd against these tests. This comment was AI-assisted.
github manually merged commit 68f20a55ad into main 2026-11-27 12:54:57 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.