Skip to content

dxil: eliminate giant-shader IR and CFG blowup in FormatLoad and multi-window memory - #1748

Merged
raylitebull merged 1 commit into
xcl-dev:mainfrom
raylitebull:fix/direct-dxil-size-oom
Nov 24, 2026
Merged

raylitebull merged 1 commit into
xcl-dev:mainfrom
raylitebull:fix/direct-dxil-size-oom

Conversation

@raylitebull

Copy link
Copy Markdown
Member

Eliminates giant-shader IR and CFG blowup in the direct RDNA2 -> DXIL backend for FormatLoad and multi-window memory accesses, cutting ActivateProbes (56c0cd3b82a00c6e) from 14.77 MB to 3.76 MB (-74.5%) and ActivateRays (95cc13288a27a96e) from 10.73 MB to 3.73 MB (-65.2%).

Why this exceeds ~800 lines (+1136/-362): the size reduction requires landing three co-dependent pieces together—hoisting and caching decoded format descriptors (FmtDesc/FmtComp1) in d3's defining block, unifying multi-window memory/format dispatch (with_mem_many_tys, which replaces lower_window::with_heap_mem across both heap-window and switch paths), and folding constant global pointers in module/opt.rs—alongside core_tests.rs validation tests.

What is in it

  • crates/xcl/src/gpu/dxil/kernel.rs & lower.rs: bump TRANSLATOR_VERSION to 6; add fmt_desc_cache, fmt_comp1_cache, and uma_base_val on Lw.
  • crates/xcl/src/gpu/dxil/lower_window.rs: hoist uma_base() (IO_UMA_BASE_HI) once to the entry block and remove the duplicated with_heap_mem helper.
  • crates/xcl/src/gpu/dxil/lower_mem.rs & lower_image.rs: add with_mem_many_tys / with_mem_i32s / with_mem_void (guarding and dispatching heap-window or switch windows per multi-dword op), hoist FmtDesc/FmtComp1, and compact small-float / component decoding (uf_small_bits, fmt_comp, fmt_comp_dyn).
  • crates/xcl/src/gpu/dxil/module.rs & module/opt.rs: add def_block / set_insert_before_term insertion helpers and constant-global pointer simplification (is_const_global_ptr, simplify_op).
  • crates/xcl/src/gpu/dxil/core_tests.rs: add uf_small_ieee_bit_math_matches_exact_formula and multi_window_mem_format_and_bvh_validate.

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.
  • cargo test -p xcl --lib gpu::dxil::: 80 passed, 0 failed on b9b6ea6 (gpu::recomp::: 107 passed, 0 failed; cargo check --workspace green).
  • DXIL 1.8 container validation (shaders.rpf): 56c0cd3b82a00c6e 14.77 MB -> 3.76 MB (3,939,588 B, -74.5%, validated in 897 ms); 95cc13288a27a96e 10.73 MB -> 3.73 MB (3,914,652 B, -65.2%, validated in 940 ms).

Regression run
main:

xcl-smoke v1
commit: b9b6ea62080cc62fc19e212033372d01c6214e5c
gpu: AMD Radeon RX 9070 XT
title: Game Assets
seconds: 60
exit: 0x0
frames shown: 1638 (PresentX 1638)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14896 MB

PR:

xcl-smoke v1
commit: 0b64aa04c6b3caa8c0bd2a4e5ab38741b2d12195
gpu: AMD Radeon RX 9070 XT
title: Game Assets
seconds: 60
exit: 0x0
frames shown: 1638 (PresentX 1638)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14829 MB

Not tested

  • NVIDIA and Intel GPUs, wave32-only adapters, and Linux/Wine/vkd3d-proton.
  • Full cargo test --workspace run; also the 60 s smoke.ps1 regression run uses default XCL_DIRECT_DXIL=0 on the Account Picker UI and does not exercise cold XCL_DIRECT_DXIL=1 runtime driver compiles across the full world shader set.

AI use

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

@nnonno91

Copy link
Copy Markdown

Independent Windows GPU test of 0b64aa04c6b3caa8c0bd2a4e5ab38741b2d12195. The full suite passed on the Radeon iGPU and RTX 5090. A synthetic four-window formatted-load shader produced the expected output in both memory modes and was 41.9% to 45.9% smaller through direct DXIL.

Tested

  • Windows 11 25H2 build 26200.9974, Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62, native wave64) and NVIDIA GeForce RTX 5090 (32.0.16.1742, split wave64). Rust 1.100.0 MSVC, Windows SDK DXC 1.8.2502.11, debug/test profiles. Adapter selected with XCL_ADAPTER.
  • Clean head. cargo build --workspace --locked passed. cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output with default shader settings reported 891 passed, 0 failed, 42 ignored on each GPU. Explicit skips in the pass count on both: heap_window_out_of_memory_falls_back_to_the_switch_form (heap windows off) and pso_measurement_compiles_an_exact_synthetic_record (driver-cache disable returned 0x887A002D on this setup). NVIDIA also skipped gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no native wave64).
  • XCL_DIRECT_DXIL=all with XCL_HEAP_WINDOWS=0 and =1, cargo test --locked -p xcl --lib gpu:: -- --test-threads=4 --show-output. Each of the four runs reported 374 passed, 0 failed, 19 ignored. AMD had no skips, and each NVIDIA run had the same two native-wave64 skips.
  • I temporarily added the same synthetic test on the head and base b9b6ea62080cc62fc19e212033372d01c6214e5c. cargo test --locked -p xcl --test format_windows_gpu_probe -- --exact formatted_loads_use_latest_descriptor_across_windows --test-threads=1 --nocapture reported 1 passed, 0 failed, 0 ignored per invocation, no skips. The shader loaded two descriptors into the same SGPRs in succession, reading 16-bit float data from window 1 and swizzled 8-bit normalized data from window 3. It checked narrow, wide, D16, and out-of-bounds loads. Across wave32, the adapter's wave64 form, both window modes and both translators, 4,608/4,608 output dwords matched the CPU reference per GPU and revision. All direct shaders passed DXIL validation. The probe was removed from both worktrees.
Direct shader Switch windows, bytes before → after Heap windows, bytes before → after
Wave32, both GPUs 26,964 → 14,576 22,908 → 13,180
Native wave64, AMD 26,996 → 14,616 22,944 → 13,216
Split wave64, RTX 5090 27,284 → 14,904 23,248 → 13,500

Not tested

Retail-title behavior, cold driver compilation time, and the full workspace on the baseline.

AI use

OpenAI Codex (GPT-6 family, exact variant unavailable) wrote the temporary probe, ran and checked the tests, and wrote this report.

@raylitebull
raylitebull merged commit 4178e88 into xcl-dev:main Nov 24, 2026
2 checks passed
@raylitebull
raylitebull deleted the fix/direct-dxil-size-oom branch November 24, 2026 20:24
bmjask added a commit to bmjask/xcl that referenced this pull request Nov 24, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ivall

ivall commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Test report for 0b64aa04c (merged locally on main b9b6ea6 together with #1747): the suite passes, the direct path's memory problem on large programs is gone, and it is now faster than HLSL up to ~26 KB of console code.

Tested: AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11.

Suite (debug):

The three largest compute programs (validated, not built by the driver):

console code DXIL before → after translation before → after
488,744 B 14.77 → 3.94 MB 1.23 → 0.43 s
486,624 B 14.72 → 3.91 MB 1.29 → 0.44 s
333,596 B 10.73 → 3.91 MB 1.36 → 0.60 s

Compile times, retail compute programs, release, 4 switch windows, one program at a time, sums per row. "Front" is translation, plus DXC on the HLSL path:

console code programs HLSL: front + driver direct before: front + driver direct with this PR
16–26 KB 4 5.8 + 9.1 s 0.12 + 12.5 s 0.08 + 8.1 s
33–42 KB 3 15.8 + 27.7 s 0.24 + 68.4 s 0.14 + 41.6 s
81–85 KB 3 28.2 + 68.8 s not finished (below) 0.35 + 114.1 s
console code DXIL: HLSL direct before this PR
16–26 KB 841 KB 1084 KB 757 KB
33–42 KB 1473 KB 2076 KB 1218 KB
81–85 KB 2965 KB – 2595 KB
  • Memory: before, the first 85 KB program took the process to 15.3 GB of commit and my memory guard stopped it after about 60 s in the driver. With this PR all three build, with a peak of 4.0 GB (HLSL path: 4.4 GB).
  • Still open, for the next step: at 81–85 KB the driver needs 37–39 s per program against 19–26 s for the HLSL form, although the DXIL is now smaller. One wave64 program of 36,480 B takes 30.2 s against 10.6 s, and it is most of the 33–42 KB row. So the size is no longer what costs the time there; the per-instruction EXEC form is my guess, not measured.

How to read the numbers: one run each, the driver's own cache was not disabled, and the "HLSL" and "direct before" columns are from c160d86 (translator version 4, before #1524's prelude change). The direct-path change between c160d86 and b9b6ea6 is #1693.

I also read the whole diff. The format descriptors are hoisted to the block that defines the descriptor word. Every detached phi is placed before a read returns, so def_block is valid when they are cached, and I found no problem there.

Not tested: a title run with XCL_DIRECT_DXIL=1, driver builds of the three largest programs, NVIDIA, Intel, vkd3d-proton.

AI use: Claude Code (Claude Opus 5.5) ran the tests and measurements, read the diff and wrote this report.

anoyarou added a commit to anoyarou/xcl that referenced this pull request Nov 24, 2026
Brings local fork into 100% parity with upstream/main (commit 4178e88),
incorporating PR xcl-dev#1748:

- Direct DXIL: eliminate giant-shader IR and CFG blowup in FormatLoad and
  multi-window memory (xcl-dev#1748). Optimizes SSA lowering in
  crates/xcl/src/gpu/dxil/lower_mem.rs and module/opt.rs, bounding IR node
  allocations and control-flow graph complexity for massive compute shaders.
  (by raylitebull)

Assisted-by: Antigravity
gustavsi added a commit to gustavsi/xcl that referenced this pull request Nov 24, 2026
@Raghav314

Copy link
Copy Markdown

NVIDIA numbers for the open points above (RTX 4090 24 GB, driver 617.14, Windows 11, DXC 1.8.2502.11, release, main 4178e88, split wave64). Each program translated and made into a compute pipeline one at a time, with the driver's shader cache off for the process (ShaderCacheControl), one run each. Harness: xcl shaders --time-forms (branch; the heap form and the size-spread sample are local additions, not pushed yet).

1. The direct-vs-HLSL driver gap at 33–85 KB does not show on NVIDIA. On 13 retail compute programs from 0.6 to 81 KB of console code, both with 4 switch windows, the driver is faster on the direct form in every one: median ratio 0.70, and 0.89 on the 81 KB program (28.3 s vs 31.7 s). Its DXIL has fewer blocks and phi operands than the HLSL form's (median 0.74× / 0.65×, counted from dxc -dumpbin). So the 37–39 s vs 19–26 s you and @kleborgn see looks AMD-specific.

2. Heap windows matter more than the backend on NVIDIA. 14 programs with all four forms timed:

form DXC driver total
direct, heap windows – 17.6 s 18.1 s
direct, 4 windows – 58.4 s 58.9 s
HLSL, heap windows 25.3 s 20.5 s 46.0 s
HLSL, 4 windows 31.9 s 69.6 s 101.8 s

3. Driver builds of the largest programs (direct, heap windows): all build, peak ~3.5 GB.

console code DXIL driver
488,744 B 3.98 MB 103.8 s
486,624 B 3.95 MB 90.6 s
333,596 B 3.32 MB 20.1 s
169,396 B 1.58 MB 28.6 s
140,964 B 1.41 MB 24.7 s

Not tested: the HLSL form of these five (over 4 MB of HLSL, DXC skipped), a title run with XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, correctness of the output (nothing dispatched), AMD.

AI use: Claude Code (Claude Opus 5.5) ran the measurements and drafted this.

@HKEY-Funk-Machine

Copy link
Copy Markdown

@ivall the title run with XCL_DIRECT_DXIL=1 from your "Not tested" line, on AMD RDNA4 (RX 9070). With #1748, cs 56c0cd3b82a00c6e builds in the title. Before, it ran the process out of memory at ~105 GB. cs 95cc13288a27a96e still doesn't build: the AMD driver returned 0x8007000E after 16.6 min, and while it runs, the title's other builds fail with out-of-memory too.

Tested

  • main 4178e88 + D3D12.X: title texture reads outside the coherent window use the safe copy #751, plus two local-only changes: skip InitializeApiImplEx2 in xgameruntime/api.rs (hangs here), and a log line before and after each compute CreateComputePipelineState. Release.
  • AMD Radeon RX 9070 (RDNA4, native wave64), driver 32.0.32015.7029, Ryzen 9 7945HX3D, 32 GB RAM (page file grows to ~120 GB of system commit), Windows 11 Pro 26300, Rust 1.100.0, DXC 1.9.2602.17.
  • Retail title, A pressed on the title screen, XCL_DIRECT_DXIL=1 XCL_TRANSLATED_CACHE=0 XCL_PSO_DISK_CACHE=0 XCL_NETWORK=0, with XCL_HEAP_WINDOWS unset (switch, 4 windows) or =1. Each form ran under an xcl.exe copied to a new name, so the AMD driver's cache was cold for it. Process memory sampled every 2 s.
switch windows (900 s run) XCL_HEAP_WINDOWS=1 (stopped at ~19 min)
cs 56c0cd3b82a00c6e 3 939 588 B, built in 430 s 3 594 476 B, built in 282 s
cs 95cc13288a27a96e 3 914 652 B, still in the driver after 6 min when the run ended 3 324 912 B, 0x8007000E after 996 s
compute builds / driver time, sum 376 / 1 560 s 474 / 2 557 s
builds that returned 0x8007000E 0 39 (all while the program above was in the driver)
peak private bytes / system commit 74.2 GB / 91.6 GB 104.6 GB / 121.7 GB
frames presented before the title waits 2 700 1 800
crash, device removal none none

Not tested

AI use: Claude Code (Claude Opus 5.5) ran the runs and the memory sampling, read the logs and wrote this comment.

@akimfomin

Copy link
Copy Markdown

Independent synthetic performance and output check on RTX 4070 Ti SUPER (617.14), i5-13600KF, Windows build 28000.3501, DXC 1.9.2602.17 and Rust 1.100.0 gnullvm, optimized test builds. Exact base b9b6ea62080cc62fc19e212033372d01c6214e5c and PR 0b64aa04c6b3caa8c0bd2a4e5ab38741b2d12195, with separate build targets.

I generated Wave32 shaders with repeated dynamic BUFFER_LOAD_FORMAT_X over four 1 MiB windows, with separate values in each window. Each load in each lane is checked against its CPU-calculated half-float result. Both paths agreed bit for bit in 36 processes, with 79,872 checked values. This is a reproducible Windows synthetic fixture alongside the reused-output check and RTX 4090 timing.

Loads Binding DXIL bytes Translation ms PSO creation ms
16 switch 60388 → 16684 4.71 → 1.56 359.6 → 82.8
16 heap 52156 → 15052 4.06 → 1.44 283.7 → 71.1
64 switch 233844 → 50556 18.39 → 4.35 2237.7 → 305.5
64 heap 197524 → 45000 15.79 → 3.88 1639.2 → 330.0
128 switch 485024 → 96016 36.30 → 8.35 6593.8 → 843.5
128 heap 409684 → 85244 31.64 → 7.67 4512.3 → 794.0

Translation is the median of five calls after an untimed call in each process, then across three processes. For PSO creation I timed the first creation in each fresh process and alternated the order of both revisions and binding modes. The D3D12 implicit-cache disable request succeeded in every process. Microsoft documents the driver-managed cache flag as a hint. These figures cover pipeline creation for the synthetic inputs. They do not measure frame rate, GPU shader execution time or a whole application.

PortBridge preflight found this exact PR. Codex (GPT-6 family) wrote and ran the harness, with a separate review of the correctness and timing controls.

Source fixture and reproduction

Save as crates/xcl/tests/portbridge_format_windows.rs on each revision. With XCL_ADAPTER=4070, XCL_NETWORK=0, the DXC path set, PORTBRIDGE_FORMAT_LOADS set to 16, 64 or 128 and PORTBRIDGE_FORMAT_MEMORY set to switch or heap, run cargo test --release --locked -p xcl --test portbridge_format_windows -- --exact formatted_load_pipeline_cost_and_output --nocapture --test-threads=1 in a separate process per sample. Use a distinct target directory per revision.

// SPDX-License-Identifier: GPL-2.0-only
// Synthetic cold-PSO and output comparison for XCL #1748.
use std::mem::ManuallyDrop;
use std::time::{Duration, Instant};

use windows::core::Interface;
use windows::Win32::Graphics::{Direct3D::D3D_FEATURE_LEVEL_12_0, Direct3D12::*, Dxgi::*};
use xcl::gpu::dxil::kernel::{translate, KernelOptions};
use xcl::gpu::rdna2::encode;
use xcl::gpu::recomp::{pso, runner, HEAP_WINDOWS};
use xcl::gpu::{adapter, agility, uma::Uma};

const BASE: usize = 0x100;
const WINDOWS: usize = 4;
const LANES: usize = 32;

fn program(loads: usize) -> Vec<u8> {
    let mut code = Vec::new();
    for i in 0..loads {
        code.extend(encode("BUFFER_LOAD_FORMAT_X", "ENC_MUBUF", &[
            ("VDATA", (16 + i) as u64), ("VADDR", 0), ("SRSRC", (3 + i % WINDOWS) as u64),
            ("SOFFSET", 128), ("IDXEN", 1), ("OFFSET", (16 * i) as u64),
        ], None).unwrap());
    }
    code.extend(encode("S_ENDPGM", "ENC_SOPP", &[], None).unwrap());
    code
}

fn half_mantissa(window: usize, index: usize) -> u32 {
    ((3 * index + 211 * window + 1) & 1023) as u32
}

fn check_output(dxil: &[u8], loads: usize) {
    let arena = Uma::with_windows(WINDOWS, 1 << 20).unwrap();
    let mut state = runner::KernelState::default();
    for (lane, regs) in state.vgpr.iter_mut().enumerate() {
        regs[0] = lane as u32;
    }
    let dwords = loads * 4 + LANES;
    for window in 0..WINDOWS {
        let address = arena.window(window).0 + BASE;
        // 16_16_FLOAT with identity selection and a 4-byte stride.
        let desc = [address as u32, ((address >> 32) as u32 & 0xffff) | 4 << 16,
            dwords as u32, 29 << 12 | 7 << 9 | 6 << 6 | 5 << 3 | 4];
        state.sgpr[12 + 4 * window..16 + 4 * window].copy_from_slice(&desc);
        for index in 0..dwords {
            let half = 0x3c00 | half_mantissa(window, index);
            // The arena owns a committed 1 MiB region. These aligned writes stay
            // within its first 4 KiB and finish before the GPU reads the regions.
            unsafe { ((address + 4 * index) as *mut u32).write(half) };
        }
    }
    let output = runner::run_in_arena(dxil, &state, &arena).unwrap();
    for lane in 0..LANES {
        for i in 0..loads {
            let expected = 0x3f80_0000 | half_mantissa(i % WINDOWS, 4 * i + lane) << 13;
            assert_eq!(output.vgpr[lane][16 + i], expected, "lane {lane}, load {i}");
        }
    }
}

fn cache_off_device() -> ID3D12Device {
    let selector = adapter::Selector::from_env_or("auto");
    let factory: IDXGIFactory6 = unsafe { CreateDXGIFactory2(DXGI_CREATE_FACTORY_FLAGS(0)) }.unwrap();
    let (gpu, _) = adapter::candidates(&factory, &selector).into_iter().next().unwrap();
    let device = agility::create_device(&gpu, D3D_FEATURE_LEVEL_12_0).unwrap();
    let device9 = device.cast::<ID3D12Device9>().unwrap();
    let kinds = D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_DRIVER_MANAGED
        | D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CACHE_FOR_DRIVER;
    unsafe { device9.ShaderCacheControl(kinds, D3D12_SHADER_CACHE_CONTROL_FLAG_DISABLE) }
        .expect("cold timing needs process shader-cache control");
    device
}

fn pso_time(device: &ID3D12Device, dxil: &[u8]) -> Duration {
    let mut desc = D3D12_COMPUTE_PIPELINE_STATE_DESC {
        pRootSignature: ManuallyDrop::new(Some(pso::abi_root_signature(device, false).unwrap())),
        CS: D3D12_SHADER_BYTECODE { pShaderBytecode: dxil.as_ptr().cast(), BytecodeLength: dxil.len() },
        ..Default::default()
    };
    let start = Instant::now();
    let pipeline = unsafe { device.CreateComputePipelineState::<ID3D12PipelineState>(&desc) };
    let elapsed = start.elapsed();
    drop(unsafe { ManuallyDrop::take(&mut desc.pRootSignature) });
    drop(pipeline.unwrap());
    elapsed
}

#[test]
fn formatted_load_pipeline_cost_and_output() {
    let name = runner::adapter().unwrap();
    assert!(runner::wave32_supported().unwrap(), "Wave32 unavailable on {name}");
    let device = cache_off_device();
    println!("adapter={name} implicit cache disable request accepted");
    let loads = match std::env::var("PORTBRIDGE_FORMAT_LOADS") {
        Ok(raw) => raw.parse::<usize>().expect("load count"),
        Err(_) => 64,
    };
    assert!((4..=192).contains(&loads) && loads % WINDOWS == 0);
    let code = program(loads);
    let mode = std::env::var("PORTBRIDGE_FORMAT_MEMORY").unwrap_or_else(|_| "switch".to_owned());
    let flags = match mode.as_str() {
        "switch" => 0,
        "heap" => HEAP_WINDOWS,
        _ => panic!("unknown memory mode {mode}"),
    };
    let options = KernelOptions {
        wave64: false, split: false, mem_windows: WINDOWS as u32 | flags, sampler_base: 0,
    };
    let dxil = translate(&code, options).unwrap();
    let mut translation = (0..5).map(|_| {
        let start = Instant::now();
        let output = translate(&code, options).unwrap();
        let elapsed = start.elapsed();
        assert_eq!(output, dxil);
        elapsed.as_secs_f64() * 1e3
    }).collect::<Vec<_>>();
    let compilation = pso_time(&device, &dxil).as_secs_f64() * 1e3;
    check_output(&dxil, loads);
    translation.sort_by(f64::total_cmp);
    println!("mode={mode} loads={loads} code_bytes={} dxil_bytes={} translation_ms={:.3} pso_ms={compilation:.3} checked_values={}",
        code.len(), dxil.len(), translation[translation.len() / 2], loads * LANES);
}

@DavidM1911

Copy link
Copy Markdown
Contributor

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

Rednaxeh added a commit to Rednaxeh/xcl that referenced this pull request Nov 24, 2026
… verdict

The driver's refusal of a translated compute pipeline reached only
note_translation_error: the report's translation_errors, or the notes of a
cached-only attempt, which are dropped when a shader was missing. On an RX
7800 XT a retail title's 13.8 MB compute program (xcl-dev#1332 in the form of xcl-dev#1321)
took the driver 15 - 23 s and ~15 GB of commit in every run and was refused
with E_OUTOFMEMORY; xcl.log showed its `driver compile finish` and, a
millisecond later, the title's dispatch with that pipeline skipped - and
nothing in between. The same with the 3.9 MB form of the direct DXIL backend
(xcl-dev#1748). The verdict had to be taken from `xcl shaders --measure-pso`.

A huge program (`huge_pso_bytes` and up) the driver refuses is now logged with
its record hash, DXIL size, HRESULT and the time the driver took, next to the
compile lines it already has. Logging only; no behaviour changes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.

7 participants