Skip to content

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

Closed
Anon64 wants to merge 1 commit into
xcl-dev:mainfrom
Anon64:tests/rerouted-marker-byte
Closed

Anon64 wants to merge 1 commit into
xcl-dev:mainfrom
Anon64:tests/rerouted-marker-byte

Conversation

@Anon64

@Anon64 Anon64 commented Nov 25, 2026

Copy link
Copy Markdown

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 Tests: align device_x UAV strip and pso cache marker tests with main #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

rerouted_disk_entries_follow_the_direct_translator (xcl-dev#2120) read its
marker from dxil[0]. xcl-dev#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 <noreply@anthropic.com>
@Anon64

Anon64 commented Nov 25, 2026

Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant