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

Closed
Anon64 wants to merge 1 commit from upstream-pr/2243 into main
Anon64 commented 2026-11-25 11:09:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T11:09:22Z.


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

<!-- greyfinch-sync:ivall/xcl:issue:6603122985 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2243). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-25T11:09:22Z. --- `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)
upstream-sync closed this pull request 2026-11-25 11:10:00 +00:00
Anon64 commented 2026-11-25 11:10:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T11:09:33Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7160670954 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2243#issuecomment-7160670954). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-25T11:09:33Z. --- 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

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!2231
No description provided.