Repository navigation
Tests: two expectations that no longer match the code - #2245
Conversation
Both tests fail on unmodified `main` (9633138), so every PR's suite is red for reasons that have nothing to do with the PR: - rerouted_disk_entries_follow_the_direct_translator read the marker at byte 0 of the synthetic DXIL `compiled()` builds. Since the translated cache began checking that an entry is a DXIL container, marker 1 sits at byte 67 and byte 0 is 'D' (68), so the test compared 68 with 1. - pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa required formats 85 (B5G6R5) and 88 (B8G8R8X8) to come through unchanged. `pc_resource_desc` promotes them to 28 (R8G8B8A8) and 87 (B8G8R8A8) because a PC driver takes neither as a UAV, and ALLOW_UNORDERED_ACCESS is valid on the promoted format - so it stays there, and the flag assertion only holds for the formats that are left as they are. Test-only: the two tests pass here, and the suite goes from 2 failed to 0. Assisted-by: OpenCode (Claude Fable 5.2)
|
Merged as Tested the merged tree ( @raylitebull #2233 fixes the same two tests. I took this one because its checks were green and it also checks that 85 and 88 become 28 and 87 with the flag kept. Please close #2233 if you agree. AI use: Claude Code (Claude Opus 5.5) read the diffs, ran the tests and wrote this on the maintainer's behalf. |
) Incorporates: - xcl-dev#2245 (commit 0d13b07 by @b3IKK): update DXIL container synthetic test marker offset and format-stripping expectations to match current codebase. - xcl-dev#1963 (commit 513a18e by @heditrigui): launcher end-to-end integration tests for target selection and error handling. Assisted-by: Antigravity (Gemini 4)
Fixes #2242.
Fixes #2248.
main(9633138) fails two of its own tests on this machine, so every PR's.\scripts\test.ps1is red for reasons unrelated to the PR:gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translatorread the marker at byte 0 of the synthetic DXIL thatcompiled()builds. Since the translated cache checks that an entry is a DXIL container, marker1sits at byte 67 and byte 0 is'D'(68): the test compared68with1(left: 68, right: 1).hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaarequired formats 85 (B5G6R5) and 88 (B8G8R8X8) to come through unchanged.pc_resource_descpromotes them to 28 (R8G8B8A8) and 87 (B8G8R8A8) — a PC driver takes neither as a UAV — andALLOW_UNORDERED_ACCESSis valid on the promoted format, so it stays. The flag assertion only holds for the formats left as they are (left: 4, right: 0at format 85).Both are stale expectations of the tests, not regressions of the code: the promotions and the container check are deliberate and are what their own tests elsewhere assert (28 for a B5G5R5A1 target at
pc_resource_desc, and the 68-byte synthetic container).What is in it
crates/xcl/src/gpu/recomp/pso.rs: read the marker at byte 67, with a comment saying why.crates/xcl/src/hle/d3d12x/device_x.rs: in the loop over formats without typed-UAV support, assert the flag is kept for the two promoted formats and stripped (and the format unchanged) for the rest.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4) on this head: 1243 passed, 0 failed, 46 ignored (the same command on unmodifiedmain9633138here: 2 failed)Regression run
main (
9633138, clean tree, no local changes):PR (
0d13b07, clean tree, no local changes):Not tested
AI use
main's suite, traced both failures to the tests' expectations, fixed them, ran the suite again and thescripts/smoke.ps1pair.