Tests: read the rerouted cache test's marker from byte 67 #2243

Closed
github-bot wants to merge 1 commit from gh-pr/2243/head into gh-pr/2243/base
Owner

@⁠Anon64 on GitHub · 2026-11-25 11:09 UTC · original
Anon64:tests/rerouted-marker-byte → main · +1 −1 · 1 files · 1 commits · closed without merging

gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator fails on main (f087b99) with left: 68, right: 1 at pso.rs:1360. Two PRs crossed. The test came in with #2120 and reads its marker from dxil[0]. #2064 changed the shared compiled() helper to build a synthetic DXIL container (synthetic_dxil) with the marker at byte 67. Byte 0 is now the D of DXBC (68). The other tests of the module already read dxil[67]. This makes the rerouted test read byte 67 too.

What is in it

  • crates/xcl/src/gpu/recomp/pso.rs: the test's go closure reads dxil[67] instead of dxil[0]. Test-only change.

Tested

  • NVIDIA GeForce RTX 3060 12 GB, Windows 11, Rust 1.100.0, release.
  • cargo test -p xcl --release --lib rerouted_disk_entries: fails on main f087b99 (twice), passes with this change.
  • cargo test -p xcl --release --lib shader_cache_tests: 20 passed, 0 failed.
  • cargo test --workspace --release --no-fail-fast -- --test-threads=4: 1236 passed, 1 failed, 46 ignored. The failure is hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa, which also fails on main and is fixed by #2233.
  • SKIPPED: 23 tests "no wave64" (NVIDIA), 1 "no heap windows".

Regression run

  • Not needed: the change is inside #[cfg(test)] mod shader_cache_tests, no runtime code changes.

Not tested

  • AMD GPUs; the test does not use the GPU.

AI use

  • Claude Code (Claude Opus 5.5) found the failure in a full-suite run, traced it to the two PRs, made the change and ran the tests.

🤖 Generated with Claude Code

**@⁠Anon64** on GitHub · 2026-11-25 11:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2243) `Anon64:tests/rerouted-marker-byte` → `main` · +1 −1 · 1 files · 1 commits · closed without merging `gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator` fails on `main` (`f087b99`) with `left: 68, right: 1` at `pso.rs:1360`. Two PRs crossed. The test came in with #2120 and reads its marker from `dxil[0]`. #2064 changed the shared `compiled()` helper to build a synthetic DXIL container (`synthetic_dxil`) with the marker at byte 67. Byte 0 is now the `D` of `DXBC` (68). The other tests of the module already read `dxil[67]`. This makes the rerouted test read byte 67 too. **What is in it** - `crates/xcl/src/gpu/recomp/pso.rs`: the test's `go` closure reads `dxil[67]` instead of `dxil[0]`. Test-only change. **Tested** - NVIDIA GeForce RTX 3060 12 GB, Windows 11, Rust 1.100.0, release. - `cargo test -p xcl --release --lib rerouted_disk_entries`: fails on `main` `f087b99` (twice), passes with this change. - `cargo test -p xcl --release --lib shader_cache_tests`: 20 passed, 0 failed. - `cargo test --workspace --release --no-fail-fast -- --test-threads=4`: 1236 passed, 1 failed, 46 ignored. The failure is `hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa`, which also fails on `main` and is fixed by #2233. - SKIPPED: 23 tests "no wave64" (NVIDIA), 1 "no heap windows". **Regression run** - Not needed: the change is inside `#[cfg(test)] mod shader_cache_tests`, no runtime code changes. **Not tested** - AMD GPUs; the test does not use the GPU. **AI use** - Claude Code (Claude Opus 5.5) found the failure in a full-suite run, traced it to the two PRs, made the change and ran the tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
rerouted_disk_entries_follow_the_direct_translator (#2120) read its
marker from dxil[0]. #2064 changed the shared compiled() helper to a
synthetic DXIL container with the marker at byte 67, so byte 0 is now
the 'D' of DXBC (68) and the test fails on main with 68 != 1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:24:19 +00:00
github-bot closed this pull request 2026-11-26 05:24:19 +00:00
Author
Owner

@⁠Anon64 on GitHub · 2026-11-25 11:09 UTC · original

Closing as a duplicate: #2233 was updated to make the same dxil[0] -> dxil[67] change in rerouted_disk_entries_follow_the_direct_translator. I checked its diff only after opening this, sorry for the noise. For #2233: on an RTX 3060 (Windows 11, Rust 1.100.0) that change makes the test pass, and it fails on main f087b99 without it.

AI use: Claude Code (Claude Opus 5.5) opened and closed this PR and ran the tests.

**@⁠Anon64** on GitHub · 2026-11-25 11:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2243#issuecomment-7160670954) Closing as a duplicate: #2233 was updated to make the same `dxil[0]` -> `dxil[67]` change in `rerouted_disk_entries_follow_the_direct_translator`. I checked its diff only after opening this, sorry for the noise. For #2233: on an RTX 3060 (Windows 11, Rust 1.100.0) that change makes the test pass, and it fails on `main` `f087b99` without it. AI use: Claude Code (Claude Opus 5.5) opened and closed this PR and ran the tests.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.