From e22a775246a2ab4b6ebe740a7afd14d851134039 Mon Sep 17 00:00:00 2001 From: RickiNano <81099017+RickiNano@users.noreply.github.com> Date: Sat, 21 Nov 2026 14:19:55 +0100 Subject: [PATCH 1/2] #15929: build the compositor pipelines with FXC once, not twice `pipelines::every_compositor_pipeline_builds` builds every pipeline with FXC on DX12, then again on every backend with `Dx12Compiler::Auto`. Without `dxcompiler.dll` on the search path, as on the Windows runners, `Auto` falls back to FXC, so the second DX12 pass repeated the first. The second pass now names DXC, so DX12 drops out of it when DXC does not load and is built through DXC when it does. The Windows adapter and device checks stay on the FXC pass. --- crates/gpu/tests/it/pipelines.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/crates/gpu/tests/it/pipelines.rs b/crates/gpu/tests/it/pipelines.rs index fa4b684ad9..7d7cde044b 100644 --- a/crates/gpu/tests/it/pipelines.rs +++ b/crates/gpu/tests/it/pipelines.rs @@ -32,21 +32,24 @@ fn every_compositor_pipeline_builds() { // One instance per backend: `Backends::all()` only enables the others on one instance, and // `request_adapter` then returns the single default adapter, so the other backends' own // translation went untested. One adapter per backend keeps a second, unrelated adapter of the - // same backend (a dual-GPU laptop's integrated GPU) out of the run. - for (backends, compiler) in [(wgpu::Backends::DX12, wgpu::Dx12Compiler::Fxc), (wgpu::Backends::all(), wgpu::Dx12Compiler::Auto)] { + // same backend (a dual-GPU laptop's integrated GPU) out of the run. The second pass names DXC + // rather than `Auto`: without `dxcompiler.dll`, as on the Windows runners, `Auto` falls back to + // FXC and built every pipeline with FXC a second time (half of this test's time, #15929), while + // a DXC that does not load leaves DX12 out of that pass. + for (backends, compiler) in [(wgpu::Backends::DX12, wgpu::Dx12Compiler::Fxc), (wgpu::Backends::all(), wgpu::Dx12Compiler::default_dynamic_dxc())] { + let required = cfg!(windows) && matches!(compiler, wgpu::Dx12Compiler::Fxc); for backend in backends.iter() { let instance = wgpu::Instance::new(describe(backend, compiler.clone())); // The Windows runners always have a WARP adapter on DX12, so a missing one there means // the check this test exists for silently did not run. Any other backend is a plain - // skip: `Backends::all()` also names backends this platform does not provide. + // skip: `Backends::all()` also names backends this platform does not provide, and + // DX12 through DXC needs a `dxcompiler.dll`. let Ok(adapter) = pollster::block_on(instance.request_adapter(&wgpu::RequestAdapterOptions::default())) else { - #[cfg(windows)] - assert!(backend != wgpu::Backends::DX12, "no adapter on Windows: the DX12/FXC pipeline check did not run"); + assert!(!required, "no adapter on Windows: the DX12/FXC pipeline check did not run"); continue; }; let Ok((device, _queue)) = pollster::block_on(adapter.request_device(&wgpu::DeviceDescriptor::default())) else { - #[cfg(windows)] - assert!(backend != wgpu::Backends::DX12, "no device on Windows: the DX12/FXC pipeline check did not run"); + assert!(!required, "no device on Windows: the DX12/FXC pipeline check did not run"); continue; }; let info = adapter.get_info(); From 63253358bc4c94cf23b160405057fb3f08eb8559 Mon Sep 17 00:00:00 2001 From: RickiNano <81099017+RickiNano@users.noreply.github.com> Date: Sat, 21 Nov 2026 14:47:00 +0100 Subject: [PATCH 2/2] #15929: drop the time share from the second-pass comment The CI runners saved about a quarter of the test, not half. --- crates/gpu/tests/it/pipelines.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/gpu/tests/it/pipelines.rs b/crates/gpu/tests/it/pipelines.rs index 7d7cde044b..8313213c4d 100644 --- a/crates/gpu/tests/it/pipelines.rs +++ b/crates/gpu/tests/it/pipelines.rs @@ -34,8 +34,8 @@ fn every_compositor_pipeline_builds() { // translation went untested. One adapter per backend keeps a second, unrelated adapter of the // same backend (a dual-GPU laptop's integrated GPU) out of the run. The second pass names DXC // rather than `Auto`: without `dxcompiler.dll`, as on the Windows runners, `Auto` falls back to - // FXC and built every pipeline with FXC a second time (half of this test's time, #15929), while - // a DXC that does not load leaves DX12 out of that pass. + // FXC and built every pipeline with FXC a second time (#15929), while a DXC that does not load + // leaves DX12 out of that pass. for (backends, compiler) in [(wgpu::Backends::DX12, wgpu::Dx12Compiler::Fxc), (wgpu::Backends::all(), wgpu::Dx12Compiler::default_dynamic_dxc())] { let required = cfg!(windows) && matches!(compiler, wgpu::Dx12Compiler::Fxc); for backend in backends.iter() {