Tests: verify offline compute pipeline blobs are reused at runtime #1459
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1469"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by AkshatPal2007 on 2026-11-24T16:35:26Z.
Part of #1269. Verify that a compute pipeline precompiled offline is reused by the runtime. A successful fallback compile can produce correct output even when the cache handoff fails, so the test requires both a driver blob hit and correct GPU readback.
What is in it
Tested
188f8ac, based on upstreammainatb7aa9f3. Windows 11 build 26300, Intel Core i9-14900HX, NVIDIA RTX 4070 Laptop GPU with driver32.0.16.1656, Rust1.100.0MSVC, DXC1.8.2502.11, debug build.cargo build --locked --workspacesucceeded.cargo test --locked --workspace --no-fail-fast -- --test-threads=4reported 770 passed, 0 failed, and 41 ignored. Two GPU tests counted among passes skipped their checks because they require native wave64. The new cache handoff check ran and passed on the RTX 4070.Regression run
Not required. The change only touches an integration test.
Not tested
AMD hardware, release builds, and retail titles.
AI use
Codex (gpt-6.2-sol) checked for overlapping work, implemented the test, ran local verification.
Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-24T16:39:32Z.
Cache handoff on AMD and RTX 5090 at
188f8acThe runtime reused the offline driver blob and returned the expected GPU results on both adapters. I also disabled the disk PSO cache in just the runtime child process as a negative control. The child still passed the GPU readback, and the outer test failed at
runtime did not dispatch with the precompiled driver blob. The clean test passed again after restoring it.Tested
188f8ac84f4b2093c7730013e41f3d5420a866b4, Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62), RTX 5090 (617.42), Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug/test profiles.XCL_ADAPTERselecting each GPU,cargo test --locked -p xcl --test gpu_compute_e2e offline_compute_pipeline_is_reused_by_the_runtime -- --exact --nocapture --test-threads=1reported 1 passed, 0 failed on each, with no skips. On AMD, changing only the runtime child’sXCL_PSO_DISK_CACHEfrom1to0produced the expected negative result above. That edit was temporary.cargo build --workspace --lockedandcargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputpassed on AMD. Total 770 passed, 0 failed, 41 ignored with no reported hardware skips. The synthetic end-to-end title also passed.Not tested
AI use
Imported from ivall/xcl. Originally posted by SpositoDouglas on 2026-11-24T17:08:26Z.
The cache handoff test passed on a Radeon RX 9060 XT. A fresh runtime process reused the offline driver blob and the compute dispatch returned the expected values.
Tested
b7aa9f3with the PR's sole changed file verified against its Git blob at head188f8ac84f.cargo test --locked -p xcl --test gpu_compute_e2e offline_compute_pipeline_is_reused_by_the_runtime -- --exact --nocapture --test-threads=1— 1 passed, 0 failed, 0 ignored, 0 hardware skips, 2 filtered out.Not tested
Full suite, release build, retail titles, and loading-time impact.
AI use
OpenAI Codex (GPT-6) prepared the isolated source copy, ran the test, and wrote this report.
Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-24T17:43:23Z.
Independent Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, wave32) test report on clean head
188f8ac84f4b2093c7730013e41f3d5420a866b4.Tested
188f8ac84f4b2093c7730013e41f3d5420a866b4(clean tree)8024 MiB VRAM, driver32.0.16.2101),rustc 1.100.0(x86_64-pc-windows-msvc, MSVC14.44.35207), DXC1.9.2602.17(SDK10.0.26100.0),--releasecargo build --release --workspace: ok (exit 0)cargo test --workspace --release --no-fail-fast -- --test-threads=4: 770 passed, 0 failed, 41 ignored, exit0offline_compute_pipeline_is_reused_by_the_runtime(tests/gpu_compute_e2e.rs)SKIPPED(no wave64):gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardwareNot tested: debug build, AMD / Intel / native wave64 hardware, Linux / Wine.
AI use: Antigravity (
Gemini 4 Neon) ran the build and tests and drafted this report from the command outputs.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:07Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by malzaharhub-ctrl on 2026-11-24T20:14:11Z.
Additional AMD RDNA 3 testing – RX 7900 XTX
I've been independently testing XCL's Direct DXIL backend on an AMD Radeon RX 7900 XTX.
Hardware and environment
c160d86Test results
With
XCL_DIRECT_DXIL=1:XCL_REQUIRE_GPU=wave64: 194 passed, 0 failed, 18 ignored.The integration suite included:
The optional heap-window test was explicitly skipped because
XCL_HEAP_WINDOWS=1was not enabled.Additional cache-layout finding
On my local checkout at
c160d86, the original offline cache test failed with Direct DXIL because it expected a.dxilfile directly inside the cache root.The actual Direct DXIL cache layout contained:
cache\translated\v2\...for translated shader data.cache\driver\...psofor driver pipeline blobs.I adjusted the local test to locate the generated
.psofile in the driver cache directory while retaining the second-process cache-hit and corrupted-cache recovery assertions.The revised test passed with both the standard HLSL backend and Direct DXIL enabled.
Limitations: These were synthetic shader and integration tests, not retail GTA VI gameplay tests. I have not independently tested the current PR head.
AI assistance: ChatGPT helped analyse the test output and prepare this report. I performed the local builds, commands and hardware testing.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:52:30Z.
Triage (#1607) – head
188f8acNo open or merged PR adds this runtime check. Main's
offline_compute_pipeline_is_reused_by_a_second_processstill checks only thexcl shadersreruns, not a dispatch through the PSO hook.The PR conflicts with main, which has since added the stale/repaired-blob reruns to this test. After the rebase the new assertion will fail: it looks for
compute pipelines made from the driver's blob of an earlier run, but main'sreal.rsnow logs{n} pipelines made from the driver's blob of an earlier run(the wordcomputewas removed). CI has no GPU, so this test was skipped there.Recommendation: keep open (rebase and update the expected log line).
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.