Skip to content

D3D12.X: cache direct-DXIL mesh shaders, coalesce shader builds, make MS/GS lazy, and cache two-pass/graphics PSO blobs - #1836

Merged
raylitebull merged 1 commit into
xcl-dev:mainfrom
raylitebull:perf/pso-direct-dxil-speedup
Nov 25, 2026
Merged

raylitebull merged 1 commit into
xcl-dev:mainfrom
raylitebull:perf/pso-direct-dxil-speedup

Conversation

@raylitebull

@raylitebull raylitebull commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Speeds up PSO and direct-DXIL compilation throughput by caching direct-DXIL mesh shaders in ShaderCache, coalescing concurrent identical shader builds, raising ShaderCache's entry cap to 4096 (bounded by the 64 MiB byte cap), making console MS/GS two-pass translation lazy on first use, and caching two-pass/graphics PSO driver blobs to disk.

Part of #1269 and #1673.

What is in it

  • crates/xcl/src/gpu/recomp/pso.rs: add Stage::Mesh caching to ShaderCache, raise SHADER_CACHE_MAX_ENTRIES to 4096 with compact_lru, add per-ShaderKey shader_flight coalescing so concurrent threads share in-flight compilations, skip synchronous compilation when dxc::defer() is active during preload, and add shader_cache_coalesces_concurrent_same_key_compiles.
  • crates/xcl/src/hle/d3d12x/real.rs: make two_pass_of / build_mesh_or_gs translation lazy at first use instead of eagerly blocking preload, and add GRAPHICS_BLOBS (256 MiB bounded) + disk driver-blob caching (graphics_path, keep_graphics_blob, graphics_blob_key) alongside keep_compute_blob; hash D3D12_BLEND_DESC, D3D12_RASTERIZER_DESC, and D3D12_DEPTH_STENCIL_DESC field-by-field (avoiding uninitialized struct padding bytes caught in review by @WebIdentity1), with graphics_blob_key_tracks_shaders_samplers_and_state and graphics_blob_key_ignores_struct_padding_bytes.

Tested

  • Hardware & toolchain: AMD Radeon RX 9070 XT (16191 MiB VRAM, RDNA4, native wave64), Windows 11 x64 (10.0.22631.0), rustc 1.99.1 (58cf8f9c3 2026-10-13), release & debug builds, rebased onto 689f2db (04f34ce).
  • On 04f34ce: cargo test -p xcl --lib hle::d3d12x::real::graphics_blob_tests: 2 passed, 0 failed (graphics_blob_key_ignores_struct_padding_bytes + graphics_blob_key_tracks_shaders_samplers_and_state); cargo test -p xcl --lib gpu::recomp::pso::: 14 passed, 0 failed; independent verification on RTX 3080 Ti (@thehollowedone: graphics_blob_key_ 2/2, shader_cache_coalesces_concurrent_same_key_compiles 1/1, e2e 3/3 D3D12 debug-layer pass).
  • On previous head c6c9825: cargo test -p xcl --test e2e -- --test-threads=1: 3 passed, 0 failed (0 D3D12 debug-layer errors), plus a clean RTX 3060 60 s scripts/smoke.ps1 pair from @Anon64 (1493/1476 frames, 0 removals/crashes).

Regression run
main:

xcl-smoke v1
commit: 689f2db477c3c062cf162649781640ef8a977c18
gpu: AMD Radeon RX 9070 XT
title: 29e814f5
seconds: 60
exit: 0x0
frames shown: 1597 (PresentX 1597)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 20713 MB

PR:

xcl-smoke v1
commit: 04f34ce6d8722e8fcf27567e9ca4f421411b6196
gpu: AMD Radeon RX 9070 XT
title: 29e814f5
seconds: 60
exit: 0x0
frames shown: 1572 (PresentX 1575)
presents per 2 s (last 3): 55 43 60
device removals: 0
crashes: 0
peak commit: 20489 MB

Not tested

  • Cold/warm multi-boot PSO cache persistence on 04f34ce past the 60 s smoke window, scripts/smoke.ps1 on NVIDIA or Intel GPUs on 04f34ce, full cargo test --workspace run on 04f34ce, wave32-only AMD adapters, and Linux/Wine/vkd3d-proton.

AI use

  • Antigravity (Claude Opus 4.6) assisted with implementation, profiling, and test verification; the author reviewed the diff and results.

@Anon64

Anon64 commented Nov 24, 2026

Copy link
Copy Markdown

Regression run for this PR: head c6c9825, based on main c4d37be. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release, XCL_NETWORK=0, A pressed every 4 s from 20 s, scripts/smoke.ps1 on a retail title for 60 s, back to back with the main run.

main c4d37be:

xcl-smoke v1
commit: c4d37bec1bb4286eb373aea963404a23f13401fa
gpu: NVIDIA GeForce RTX 3060
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1476 (PresentX 1477)
presents per 2 s (last 3): 34 0 7
device removals: 0
crashes: 0
peak commit: 24106 MB

this PR:

xcl-smoke v1
commit: c6c98255682406235fe20b9503968fb004d3bc4a
gpu: NVIDIA GeForce RTX 3060
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1493 (PresentX 1493)
presents per 2 s (last 3): 40 4 0
device removals: 0
crashes: 0
peak commit: 21604 MB

No device removals or crashes; 101 % of main's frames, 90 % of its peak commit.

Not tested: the whole suite; world loading with this PR; whether the title reaches all of the changed code in these 60 s (default settings, so the direct DXIL path is off).

Written with Claude Code (Claude Opus 5.5) from runs on this machine.

@WebIdentity1

Copy link
Copy Markdown

I found a deterministic cache-key miss on exact head c6c98255682406235fe20b9503968fb004d3bc4a. graphics_blob_key hashes the raw D3D12_DEPTH_STENCIL_DESC bytes. On Windows x64 that struct has two padding bytes between StencilWriteMask and FrontFace; they are not D3D12 state. Two descriptors with identical fields but different padding generated different keys, so the same graphics PSO can get different in-memory/disk cache names.

I added a 20-line synthetic regression that sets only those two padding bytes differently and checks the descriptors' semantic fields are equal. On unchanged #1836 + test, Windows returned 0 passed / 1 failed / 0 ignored as expected (key hashes 17135582160965048857 vs 18380725938958333703, same 4-byte shader inputs). Replacing the raw depth-stencil hash with field-by-field hashing made that regression and your existing graphics_blob_key_tracks_shaders_samplers_and_state test pass: 2/0/0. Changing a real depth field still changes the key.

I also ran a matched desktop-session RTX 3090 full workspace pair, cargo build --locked --workspace then cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output, after refreshing source timestamps for the shared Cargo target. Both builds exited 0. Across 20 targets, control (your head + regression) was 960 passed / 2 failed / 43 ignored; local fix was 961 passed / 1 failed / 43 ignored; 25 explicit skips each. The only remaining failure on the fix is the existing gpu_clamp_and_omod_per_instruction failure, which also failed on control. All 303 tracked Windows source files matched their SHA-256 manifests before and after, and there was no timeout or candidate-only failure.

This verifies cache-key identity and the broader synthetic suite; it does not measure a cold/warm graphics PSO driver hit, compilation-time improvement, or retail rendering. The PR author still needs the required exact-head smoke after integrating any runtime change. I have kept the patch local for your PR rather than opening a competing one.

One-file patch (34 insertions, 1 deletion)
diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs
index c16dc82..7e94dec 100644
--- a/crates/xcl/src/hle/d3d12x/real.rs
+++ b/crates/xcl/src/hle/d3d12x/real.rs
@@ -4259,7 +4259,18 @@ unsafe fn graphics_blob_key(
     feed_pod(&mut h, &copy.BlendState as *const _ as *const u8, std::mem::size_of::<D3D12_BLEND_DESC>());
     feed_u32(&mut h, copy.SampleMask);
     feed_pod(&mut h, &copy.RasterizerState as *const _ as *const u8, std::mem::size_of::<D3D12_RASTERIZER_DESC>());
-    feed_pod(&mut h, &copy.DepthStencilState as *const _ as *const u8, std::mem::size_of::<D3D12_DEPTH_STENCIL_DESC>());
+    let depth = &copy.DepthStencilState;
+    feed_u32(&mut h, depth.DepthEnable.0 as u32);
+    feed_u32(&mut h, depth.DepthWriteMask.0 as u32);
+    feed_u32(&mut h, depth.DepthFunc.0 as u32);
+    feed_u32(&mut h, depth.StencilEnable.0 as u32);
+    feed(&mut h, &[depth.StencilReadMask, depth.StencilWriteMask]);
+    for face in [&depth.FrontFace, &depth.BackFace] {
+        feed_u32(&mut h, face.StencilFailOp.0 as u32);
+        feed_u32(&mut h, face.StencilDepthFailOp.0 as u32);
+        feed_u32(&mut h, face.StencilPassOp.0 as u32);
+        feed_u32(&mut h, face.StencilFunc.0 as u32);
+    }
     feed_u32(&mut h, copy.InputLayout.NumElements);
     if copy.InputLayout.NumElements > 0 && !copy.InputLayout.pInputElementDescs.is_null() {
         let elems = std::slice::from_raw_parts(copy.InputLayout.pInputElementDescs, copy.InputLayout.NumElements as usize);
@@ -4296,6 +4307,28 @@ unsafe fn graphics_blob_key(
 mod graphics_blob_tests {
     use super::*;
 
+    #[test]
+    fn graphics_blob_key_ignores_depth_stencil_padding() {
+        unsafe {
+            let mut a = D3D12_GRAPHICS_PIPELINE_STATE_DESC::default();
+            a.SampleDesc.Count = 1;
+            let mut b = a.clone();
+            let start = std::mem::offset_of!(D3D12_DEPTH_STENCIL_DESC, StencilWriteMask) + 1;
+            let end = std::mem::offset_of!(D3D12_DEPTH_STENCIL_DESC, FrontFace);
+            assert_eq!(end - start, 2);
+            let a_bytes = &mut a.DepthStencilState as *mut _ as *mut u8;
+            let b_bytes = &mut b.DepthStencilState as *mut _ as *mut u8;
+            std::ptr::write_bytes(a_bytes.add(start), 0, end - start);
+            std::ptr::write_bytes(b_bytes.add(start), 0xa5, end - start);
+            assert_eq!(a.DepthStencilState, b.DepthStencilState);
+            let ka = graphics_blob_key(&a, b"vs", Some(b"ps"), None, &[]);
+            let kb = graphics_blob_key(&b, b"vs", Some(b"ps"), None, &[]);
+            assert_eq!(ka, kb, "identical D3D12 states must share a driver-cache key");
+            b.DepthStencilState.DepthEnable = true.into();
+            assert_ne!(ka, graphics_blob_key(&b, b"vs", Some(b"ps"), None, &[]));
+        }
+    }
+
     #[test]
     fn graphics_blob_key_tracks_shaders_samplers_and_state() {
         unsafe {

… MS/GS lazy, and cache two-pass/graphics PSO blobs
@raylitebull
raylitebull force-pushed the perf/pso-direct-dxil-speedup branch from c6c9825 to 04f34ce Compare November 24, 2026 22:17
@raylitebull

Copy link
Copy Markdown
Member Author

@WebIdentity1 Thank you for catching that! You're completely right — D3D12_DEPTH_STENCIL_DESC (and D3D12_BLEND_DESC::RenderTarget too) contains compiler padding bytes that aren't part of D3D12 state.

Updated #1836 in 04f34ce (rebased onto 689f2db):

  • Replaced the raw feed_pod calls in graphics_blob_key (crates/xcl/src/hle/d3d12x/real.rs) with explicit field-by-field hashing across D3D12_DEPTH_STENCIL_DESC, D3D12_BLEND_DESC, and D3D12_RASTERIZER_DESC.
  • Added graphics_blob_key_ignores_struct_padding_bytes (poisoning DepthStencilState and BlendState with 0xAA vs 0x55 before setting identical fields) — graphics_blob_tests (2 passed, 0 failed) and gpu::recomp::pso:: (14 passed, 0 failed) pass.
  • Will follow up with an exact-head 60 s scripts/smoke.ps1 regression pair on 04f34ce vs 689f2db.

@thehollowedone

thehollowedone commented Nov 24, 2026 •

Copy link
Copy Markdown

Independent Windows check of 04f34ce on an RTX 3080 Ti (621.35), Windows 11 build 26300, Rust 1.99.1 MSVC, debug.

  • cargo build --offline --locked --workspace succeeded.
  • cargo test --offline --locked -p xcl --lib graphics_blob_key_ -- --nocapture --test-threads=1: 2 passed, including the padding regression.
  • cargo test --offline --locked -p xcl --lib shader_cache_coalesces_concurrent_same_key_compiles -- --nocapture --test-threads=1: 1 passed.
  • cargo test --offline --locked -p xcl --test e2e -- --nocapture --test-threads=1: 3 passed, including the bundled title's D3D12 debug-layer draw. The tests reported zero skips.

This run covered synthetic inputs. Retail world load and persistent cache hit rate were outside its scope.

AI-assisted. Codex (GPT-6 family, exact variant unavailable) ran the tests and drafted this report.

Graphics cache accounting follow-up on 80f4819

Two workers can both miss the same graphics PSO key before either acquires the insertion lock. I ran the original locked insertion with two synthetic results for one key. The map retained one 3-byte blob while the budget charged 5 bytes. That extra charge can cause later cache entries to be refused before the 256 MiB budget is actually used. The compute version is already tracked in #826. Graphics insertion on main

A graphics-only local patch charges the bytes only when the key is vacant under the insertion lock. The new regression preserved the first blob and charged it once. Windows 11 build 26300, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC and DXC 1.8.2502.11. The offline locked release workspace build passed. cargo test --offline --locked --release -p xcl --lib <filter> -- --nocapture --test-threads=1 passed for graphics_blob_tests (3/3), compute_blob_tests (1/1), and driver_cache::tests (4/4). The release --test e2e target passed 3/3, including the D3D12 debug-layer draw. These are synthetic checks. Retail impact has not been measured.

AI-assisted. Codex (GPT-6 family, exact variant unavailable) prepared the local patch, ran the tests, and drafted this update.

@eizispark

Copy link
Copy Markdown

Hardware test report — commit 04f34ce

Verified 04f34ce6d8722e8fcf27567e9ca4f421411b6196 (rebased onto main 689f2db477c3c062cf162649781640ef8a977c18, clean merge): pass (0 new failures vs main 689f2db).

Tested

  • Hardware: AMD Radeon RX 9070 XT (RDNA4, native wave32 + wave64, driver 32.0.32015.16001), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11 x64 (stable-x86_64-pc-windows-msvc, rustc 1.100.0 (0ef1bc386 2026-11-09)), debug tests + release smoke
  • cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::msaa_tests::gpu_direct_msaa_image_loads: 975 passed, 2 failed, 45 ignored (8 skipped), vs main 689f2db 972 passed, 2 failed, 45 ignored (8 skipped) on this adapter:
    • Skipped filter (--skip gpu::dxil::msaa_tests::gpu_direct_msaa_image_loads) and the 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3) are pre-existing on main 689f2db (#1679) on RDNA4; 0 new failures
    • 8 skipped: 6 gpu::recomp::lower_dxil::tests f16/f32 direct-DXIL per-lane cases refused where #1426 semantics differ from the console's; shaders::tests::pso_measurement_compiles_an_exact_synthetic_record (Windows Developer Mode required, 0x887A002D); heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
  • gpu::recomp::pso::shader_cache_tests::shader_cache_coalesces_concurrent_same_key_compiles, hle::d3d12x::real::graphics_blob_tests (graphics_blob_key_tracks_shaders_samplers_and_state, graphics_blob_key_ignores_struct_padding_bytes), test_title_runs_and_game_folder_is_untouched, and native RDNA4 wave64 GPU tests (gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, console_wave64_compute_through_the_pso_hook_dispatch_and_read_back) all passed

Regression run (scripts/smoke.ps1, 60 s, warm shader/driver cache)
main (689f2db477c3c062cf162649781640ef8a977c18):

xcl-smoke v1
commit: 689f2db477c3c062cf162649781640ef8a977c18
gpu: AMD Radeon RX 9070 XT
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1674 (PresentX 1674)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14862 MB

PR (04f34ce6d8722e8fcf27567e9ca4f421411b6196):

xcl-smoke v1
commit: 04f34ce6d8722e8fcf27567e9ca4f421411b6196
gpu: AMD Radeon RX 9070 XT
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1672 (PresentX 1672)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14863 MB

Not tested

  • cold-cache graphics/two-pass PSO blob write + reload across runs in gameplay past the menus, NVIDIA/Intel GPUs, Wine/vkd3d-proton

AI use

  • Verified and formatted with Antigravity (Google DeepMind, Gemini 4 Carbon).

@grahamster2

Copy link
Copy Markdown
Collaborator

Test report for c6c9825 on NVIDIA.

Tested

  • RTX 3080 10 GB (NVIDIA 610.88), Ryzen 5 7600X, 32 GB RAM, Windows 11 build 26200, rustc 1.94.0. Baseline: main 1d027e5 (one CI-only commit after your base c4d37be).
  • cargo build --workspace then cargo test --workspace --no-fail-fast -- --test-threads=4: 961 passed, 0 failed, 43 ignored. main: 959 passed, 0 failed, 43 ignored. Same 22 SKIPPED lines on both (no wave64 / refused / no heap windows).
  • scripts/smoke.ps1, 60 s, same title:

main:

xcl-smoke v1
commit: 1d027e5c76c9a86a7ee2ca1cc677edf0be95d331
gpu: NVIDIA GeForce RTX 3080
title: 5d6132ca
seconds: 60
exit: 0x0
frames shown: 1590 (PresentX 1590)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15663 MB

PR:

xcl-smoke v1
commit: c6c98255682406235fe20b9503968fb004d3bc4a
gpu: NVIDIA GeForce RTX 3080
title: 5d6132ca
seconds: 60
exit: 0x0
frames shown: 1636 (PresentX 1636)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15726 MB
  • 180 s world runs, XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50. The first run of each build had its own empty driver-blob cache and the NVIDIA DXCache cleared. The second run reused that build's cache.
    • First run: main 48 compute driver compiles (235 s summed), PR 52 (261 s). The PR run wrote 77 graphics driver blobs to disk (main writes none). Main ended in a title crash (0xc0000005 null write) at 148 s. This PR ended in device removed 0x887a0007 at 136.8 s, then a title crash at a different address. Main, dxil: collapse forward s_cbranch_execz regions and make read-only loads branchless #1834 and D3D12.X: pack sub-64 KiB sampled textures into 4 KiB-aligned VRAM heaps #1835 all ended in the same title crash, not a device removal.
    • Second run, main: device removed 0x887a0006 at 137 s.
    • Second run, PR, twice. Run A: access violation in VCRUNTIME140.dll (memcpy read at 0xc804f6000) at 58 s, before the world loaded. Run B: device removed 0x887a0006 at 128 s, like main.
    • Blob reuse: both builds made at least 128 compute pipelines from blobs kept on disk in the second run. The big programs (600 KB to 1.5 MB) took 30-220 ms in the PR's run B against 11-33 s in main's second run, but main's run went first and filled the NVIDIA DXCache with the same DXIL. So I can't credit that to this PR. Nothing in the log says when a graphics blob is reused, so I could not count those.
    • Pending ExecuteIndirect drained: main has no counter for it. Skipped dispatches at the last log line: main second run 356 of 12,747, PR run B 44 of 10,828.
    • Presents in the world: no change (about one every 30 s, black).

Not tested

  • AMD; whether the 0x887a0007 in the first run and the VCRUNTIME140 crash are caused by this PR (one run each); graphics-blob hit counts; a second run with the NVIDIA DXCache cleared.

AI use

  • Claude Code with Claude Opus 5.5 ran the builds, tests and game runs and wrote this report.

@raylitebull

Copy link
Copy Markdown
Member Author

@grahamster2 Thank you for running the 180 s RTX 3080 checks on c6c9825. We audited 04f34ce (ShaderCache / shader_flight in crates/xcl/src/gpu/recomp/pso.rs and own_graphics / own_stream / graphics_blob_key in crates/xcl/src/hle/d3d12x/real.rs) regarding the 58 s VCRUNTIME140.dll access violation (read at 0xc804f6000):

  • 0xc804f6000 (0xc_xxxx_xxxx) is inside the guest title's own CPU virtual address range, which #1836's shader/PSO caching code never reads or memcpys (own_graphics and own_stream only copy owned D3D12_INPUT_ELEMENT_DESC, SemanticName, and subobject slices out of D3D12 PSO descriptors, and graphics_blob_key hashes fields in safe Rust).
  • Note also that the c6c9825 commit tested there predates 04f34ce, which replaced raw feed_pod struct hashing with field-by-field hashing to fix the struct-padding cache-key bug (and passed gpu::recomp::pso:: 14/14, graphics_blob_tests 2/2, RTX 3080 Ti e2e 3/3, and RX 9070 XT 60 s smoke).

@Eterst

Eterst commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Test report: the graphics driver blobs on a 32-lane NVIDIA card, retail title, world load

Tree: main 689f2db + this PR (04f34ce, applied cleanly) + #684, #1273, #1741 and local diagnostics (dispatch markers, logging). This is not the PR's head on its own. XCL_DIRECT_DXIL=1, compute pipelines precompiled beforehand.

Hardware: NVIDIA GeForce RTX 4070 SUPER 12 GB (driver 616.92, 32-lane waves), Ryzen 7 5700X, 32 GB RAM, Windows 10 22H2 (19045), release build.

Tests: cargo test --release -p xcl --lib -- graphics_blob shader_cache gpu::recomp::pso:: culprit: 21 passed, 0 failed, 1 ignored.

Runs (same title, same scripted input, 420 s each, the same tree with and without this PR):

graphics PSO driver compiles time per compile
without this PR, 1st run 35 (after the world load starts) 7–10 s (≈300 KB DXIL each)
without this PR, 2nd run 88 median 4.1 s, max 18.3 s (the driver's own disk cache did not keep them between runs)
with this PR, 1st run 107, all driver blob absent; dxil\driver grew from 825 to 866 files as before
with this PR, 2nd run 295 creations with driver blob supplied median 3 ms, max 6 ms

Without the PR the title's recording thread waited in bind::execute_indirect → pso_async::resolve_wait for these graphics pipelines and presented nothing from a few seconds into its world load to the end of the run. With the PR's blobs on disk that wait was gone in the second run: frames went on after the point where the runs without it had stopped. That run later ended in an unrelated GPU timeout (a device removal during a compute pass), which this PR does not touch.

Not tested: the PR's head alone, AMD, the HLSL path for compute (XCL_DIRECT_DXIL unset), Wine.

AI use: Claude Code (Claude Opus 5.5) ran the builds, the tests and the runs, read the logs and wrote this report.

@raylitebull
raylitebull merged commit 80f4819 into xcl-dev:main Nov 25, 2026
2 of 4 checks passed
anoyarou added a commit to anoyarou/xcl that referenced this pull request Nov 25, 2026
Brings main to full parity with upstream/main (80f4819):
- xcl-dev#1836: cache direct-DXIL mesh shaders, coalesce shader builds,
  make MS/GS lazy, and cache two-pass/graphics PSO blobs

Conflict in crates/xcl/src/gpu/recomp/pso.rs resolved by keeping both xcl-dev#1836's
Vertex|Pixel stage check + dxc::defer() guard and xcl-dev#1913's split_wave64 argument
to direct_graphics.

Assisted-by: Antigravity (Gemini 4)
gustavsi added a commit to gustavsi/xcl that referenced this pull request Nov 25, 2026
Pulls in xcl-dev#1836 (graphics and two-pass PSO disk cache + lazy MS/GS + shader build coalescing), xcl-dev#1930 (DXIL CSE across discard), xcl-dev#1900, xcl-dev#1005, xcl-dev#1053, xcl-dev#1864, xcl-dev#1866, xcl-dev#1869, xcl-dev#1876, and xcl-dev#1898 while keeping our RDNA4 MSAA clamp (xcl-dev#1908), wave64 graphics Direct DXIL guard (xcl-dev#1913), atomic writable-range tracking, static-sampler cache keys, and 4M-group indirect dispatch clamp.
@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants