Shaders: reuse offline compute PSOs and compact repeated atomic shaders #2371
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!2371
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2371/head"
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?
@bmjask on GitHub · 2026-11-25 16:59 UTC · original
bmjask:perf/offline-compute-pipelines→main· +643 −22 · 12 files · 3 commits · merged 2026-11-26 00:48 UTCSplit-eligible compute programs can use an offline whole-pipeline blob at runtime. A missing or rejected blob falls back to building the split pieces. Part of #2088.
What is in it
Tested
f8f9de65, Windows 11 build 26200, Core i9-12900K, RTX 4090 driver 610.88, Rust 1.100.0.cargo build --locked --workspace;cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output(debug): 1,435 passed, 0 failed, 47 ignored. 25 explicit GPU skip messages across 15 tests, including wave64 and unavailable instruction forms. The bridged-mask barrier regression passed on this head.cargo test --locked -p xcl --test gpu_compute_e2e -- --test-threads=1 --show-outputwithXCL_HEAP_WINDOWS=1: 7 passed, 0 failed, 0 ignored, 0 skipped for each ofXCL_DIRECT_DXIL=0and1.fa14dc47: five cold trials per form on each of two recorded shaders. Median driver creation fell from 4.07 s to 0.60 s and from 4.07 s to 0.52 s. Output counters and IDs matched; these measurements predate the rebase.Regression run
Release, same title, machine and 60-second guest interval, using
scripts/smoke.ps1.Main
PR head
Not tested
AI use
OpenAI Codex, GPT-6: implementation, test harness, upstream conflict resolution, fixture update, validation and PR description.
@DavidM1911 on GitHub · 2026-11-25 18:56 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
@SlopTart on GitHub · 2026-11-25 19:06 UTC · original
Tested: current PR head merged onto current
origin/main(clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo targetx86_64-pc-windows-gnurun under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).One red on this lane, and it is invisible to the usual
gpu_sweep because the test name does not containgpu_:gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierfails deterministically, 3/3 solo at--test-threads=1with a cold cache:The disassembled
compute_splitprogram contains threecall void @dx.op.barrier(i32 80, i32 9)where the test expects only the one at the start. The barrier count is taken over XCL's own lowering disassembly, so DXC does not compile this step; the run uses the pinned official DXC build the lane normally runs (the same one other checks here pass with). The companion new testrecorded_split_selects_cached_whole_or_piecespasses 4/4, and thed3d12core.dll + 0x1AB118crash site from #2338/#2344/#2349 does not reproduce at this head.Not tested: retail titles (no title data on this lane, counts only).
AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
@DavidM1911 on GitHub · 2026-11-26 00:23 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earliera_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierfailure is fixed.Thanks!
— Devin