Tests: verify offline compute pipeline blobs are reused at runtime #1469
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1469
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@AkshatPal2007 on GitHub · 2026-11-24 16:35 UTC · original
AkshatPal2007:codex/test-offline-pso-runtime-reuse→main· +20 −2 · 1 files · 1 commits · openPart 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.
@nnonno91 on GitHub · 2026-11-24 16:39 UTC · original
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
@SpositoDouglas on GitHub · 2026-11-24 17:08 UTC · original
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.
@LocranKing on GitHub · 2026-11-24 17:43 UTC · original
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.@DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original
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!
@malzaharhub-ctrl on GitHub · 2026-11-24 20:14 UTC · original
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.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.