Shaders: precompile FSPX-only compute shaders from folders #2822
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!2822
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2822"
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?
@CryingLaughing on GitHub · 2026-11-26 14:35 UTC · original
CryingLaughing:fix/precompile-fspx-compute→main· +78 −6 · 3 files · 1 commits · openPart of #2453. This addresses the separate FSPX input-admission gap. #2515 covers native descriptor and cache-key parity.
Folder precompile skipped valid ACCC/FSPX compute shaders when the Xbox parser found no XDAT. Admit them as compute shaders and pass them through the same stage filter, used-shader filter, translation, and optional native pipeline build.
What is in it
Tested
Head
74843bdc52bc8503cf5a0d1565a42a76cf8e0ec9onb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. Windows 11 25H2 build 26200.9974, Core i5-13600K, RTX 4080 driver 621.01, Rust 1.100.0 x64 MSVC, DXC/DXIL 1.8.2502.11, debug.With the same fixture on
main,--precompile --only csreported zero compiled and zero errors, failing the focused assertion (0/1/0). On the fixed tree the fixture passed 1/0/0 with no capability skips.--only cscompiled one shader,--only pscompiled zero, and--only cs --pipelinesbuilt one native PSO, refused zero, and saved one nonempty driver blob from a cold cache.cargo build --workspace --locked -j 4passed.cargo test --workspace --locked -j 4 -- --test-threads=4 --show-outputreported 1,436 passed, 0 failed, 47 ignored across 37 harnesses. The pass count includes 29 capability skips.Independent RTX 5070 Ti Laptop verification passed the exact CLI fixture. Additional checks filtered a nonmatching
--used-onlykey and reused the driver blob in the second process with a matching key. Both direct-mode settings agreed, and the direct-enabled run reported the HLSL fallback for this input. Independent CLI checkRegression run
Independent retail smoke by Anon64 compared release builds of main and this exact head on an RTX 3060 12 GB (driver 581.80), Core i9-14900KF, and Windows 11 build 26200. The 60-second runs used the same title. The head retained 99.4% of the baseline frames and used 97.6% of its peak commit, with zero crashes or device removals. The run did not establish whether the title reached the changed code.
main:
PR:
Not tested
@ettehn on GitHub · 2026-11-26 14:41 UTC · original
Independent Windows check on
74843bdc52bc8503cf5a0d1565a42a76cf8e0ec9againstb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. RTX 5070 Ti Laptop (621.24), Windows 11 x64 build 26200, Rust 1.97.1 MSVC, DXC/DXIL 1.8.2502.11.cargo test --locked --offline -p xcl --test gpu_compute_e2e -j 2 folder_precompile_includes_fspx_only_compute -- --test-threads=1 --nocapture: 1 passed, 0 failed, 0 ignored, no capability skips. The same synthetic ACCC-only input gavecompiled 0, errors 0on the base with--precompile --only cs --split 1.--precompile --only cs --split 1 --used-only: a nonmatchingused-pipelines.txtentry skipped the shader. With the matching key,--pipelinesmade 1 PSO and refused 0. The driver-cache counter was 0 on the first run and 1 on the second, in separate processes. Results matched withXCL_DIRECT_DXIL=0and=1. With=1the cold log explicitly showed the HLSL fallback for this container.The checks used a synthetic shader. No retail smoke run. OpenAI Codex (6.2sol) assisted with verification.
@Anon64 on GitHub · 2026-11-26 14:55 UTC · original
Regression run of
74843bdon a newer retail title: no device removal, no crash, frames and commit within the limits.Setup: RTX 3060 12 GB (NVIDIA 581.80), i9-14900KF, Windows 11 26200, release builds of main
b49be18(this PR's base) and of this PR's exact head,scripts/smoke.ps1 -Game <title>for 60 s withXCL_NETWORK=0and A pressed every 4 s from 20 s. Main ran before and after this PR and peaked at 24,953 and 25,032 MB.main:
this PR:
99 % of main's frames, 97 % of its peak commit. One run each.
Not tested: the suite on this head; whether the title reaches the code this PR changes in its first 60 s; AMD.
AI use: Claude Code (Claude Opus 5.5) ran these runs on this machine and wrote this report.
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.