Tests: gpu_large_mixed_upload test fails on Pascal under Linux/wine with DXGI_ERROR_SDK_COMPONENT_MISSING #2238

Closed
opened 2026-11-26 05:24:11 +00:00 by github-bot · 3 comments
Owner

@⁠SlopTart on GitHub · 2026-11-25 11:01 UTC · original

Observed. gpu::texture::tests::gpu_large_mixed_upload_keeps_tight_staging_and_exact_pixels fails on an NVIDIA card under Linux/wine:

  • GTX 1070 (Pascal), driver 550.163.01 (proprietary), Debian 13, Debian wine 10.0, main at 568e7db, no local changes
  • release: 7/7 failures, deterministic, solo and inside the gpu_ subset
  • debug: fails inside the gpu_ subset too
  • panic at crates/xcl/src/gpu/texture.rs:837:63 with DXGI factory: Error { code: HRESULT(0x887A0004), message: "" }, so the test dies getting the DXGI factory rather than on a pixel mismatch; 0x887A0004 is DXGI_ERROR_SDK_COMPONENT_MISSING
  • the failure persists after copying the same xcl-patched d3d12.dll, d3d12core.dll, dxgi.dll used on the working rig and setting WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b" plus VKD3D_CONFIG=ignore_shared_fence

Contrast. The same test at the same commit passes on RX 7900 XT (RDNA3), Mesa 26.2.5, Proton Experimental (wine-11.0), 1 passed 0 failed. It is the only failure of the NVIDIA run's 135-test gpu_ subset (134 passed, 1 ignored). No report I can find mentions this test.

Given the SDK_COMPONENT_MISSING code this may well be a wine/prefix artifact on the Debian side rather than a Pascal bug; posting the counts so the table is honest, and I can try a proton-backed prefix on that machine if useful.

Counts only, no game data.

AI use: Hermes agent (local Qwen-class) ran both machines' suites and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-25 11:01 UTC · [original](https://github.com/xcl-dev/xcl/issues/2238) **Observed.** `gpu::texture::tests::gpu_large_mixed_upload_keeps_tight_staging_and_exact_pixels` fails on an NVIDIA card under Linux/wine: - GTX 1070 (Pascal), driver 550.163.01 (proprietary), Debian 13, Debian wine 10.0, `main` at `568e7db`, no local changes - release: 7/7 failures, deterministic, solo and inside the `gpu_` subset - debug: fails inside the `gpu_` subset too - panic at `crates/xcl/src/gpu/texture.rs:837:63` with `DXGI factory: Error { code: HRESULT(0x887A0004), message: "" }`, so the test dies getting the DXGI factory rather than on a pixel mismatch; `0x887A0004` is `DXGI_ERROR_SDK_COMPONENT_MISSING` - the failure persists after copying the same xcl-patched `d3d12.dll`, `d3d12core.dll`, `dxgi.dll` used on the working rig and setting `WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b"` plus `VKD3D_CONFIG=ignore_shared_fence` **Contrast.** The same test at the same commit passes on RX 7900 XT (RDNA3), Mesa 26.2.5, Proton Experimental (wine-11.0), 1 passed 0 failed. It is the only failure of the NVIDIA run's 135-test `gpu_` subset (134 passed, 1 ignored). No report I can find mentions this test. Given the `SDK_COMPONENT_MISSING` code this may well be a wine/prefix artifact on the Debian side rather than a Pascal bug; posting the counts so the table is honest, and I can try a proton-backed prefix on that machine if useful. Counts only, no game data. **AI use:** Hermes agent (local Qwen-class) ran both machines' suites and drafted this; I checked it before posting.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:24:11 +00:00
Author
Owner

@⁠SlopTart on GitHub · 2026-11-25 11:13 UTC · original

Follow-up: tried to reproduce the failure away from the original Debian/wine stack, per the SDK_COMPONENT_MISSING suspicion.

Attempt 1, same box, rig DLLs into the Debian prefix. Copying the xcl-patched d3d12.dll, d3d12core.dll, dxgi.dll from the working rig into ~/.xcl-prefix and setting WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b" + VKD3D_CONFIG=ignore_shared_fence: still FAILED, same panic site, same 0x887A0004 (the pre-change count was 7/7 in release, one further post-change run also failed, 8/8 total).

Attempt 2, same box, verbatim rig prefix. Tar-copied the whole working rig prefix (678 MB, Proton Experimental wine-11.0) to the Debian machine and ran with it: the texture test fails at the same site but the HRESULT changes to E_FAIL (0x80004005), and every other gpu_ test reports SKIPPED ... no GPU under that prefix, so the prefix is not portable across machines and this leg does not re-run the suite cleanly. The only clean signal: the factory error differs by prefix, so prefix contents do matter.

Attempt 3, same box, GE-Proton11-14 wine (wine-11.0 Staging). Prefix boots after adding libc6-i386 (GE wine needs /lib/ld-linux.so.2), but the test executable dies at wine exit status 53 before the harness prints anything, with and without GE's bundled libs on LD_LIBRARY_PATH/WINEDLLOVERRIDES normalized. No test data from this leg; noting it so nobody assumes a Proton prefix on that box was a clean success.

What stands: the failing configuration is the original one (Debian wine 10 + NVIDIA 550 + that box's prefix), 7/7 deterministic in release; the AMD rig (Mesa 26.2.5, Proton Experimental) passes the same test at the same commit. All 134 other gpu_ tests pass on the Debian/NVIDIA box with its own prefix, including everything that creates d3d12 devices, so plain Vulkan/vkd3d is healthy there; only this test's DXGI factory call path fails, with a code (DXGI_ERROR_SDK_COMPONENT_MISSING) that points at the stack rather than pixels.

Counts only, no game data.

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-25 11:13 UTC · [original](https://github.com/xcl-dev/xcl/issues/2238#issuecomment-7160767202) Follow-up: tried to reproduce the failure away from the original Debian/wine stack, per the `SDK_COMPONENT_MISSING` suspicion. **Attempt 1, same box, rig DLLs into the Debian prefix.** Copying the xcl-patched `d3d12.dll`, `d3d12core.dll`, `dxgi.dll` from the working rig into `~/.xcl-prefix` and setting `WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b"` + `VKD3D_CONFIG=ignore_shared_fence`: still FAILED, same panic site, same `0x887A0004` (the pre-change count was 7/7 in release, one further post-change run also failed, 8/8 total). **Attempt 2, same box, verbatim rig prefix.** Tar-copied the whole working rig prefix (678 MB, Proton Experimental wine-11.0) to the Debian machine and ran with it: the texture test fails at the same site but the HRESULT changes to `E_FAIL (0x80004005)`, and every other `gpu_` test reports `SKIPPED ... no GPU` under that prefix, so the prefix is not portable across machines and this leg does not re-run the suite cleanly. The only clean signal: the factory error differs by prefix, so prefix contents do matter. **Attempt 3, same box, GE-Proton11-14 wine (wine-11.0 Staging).** Prefix boots after adding `libc6-i386` (GE wine needs `/lib/ld-linux.so.2`), but the test executable dies at wine exit status 53 before the harness prints anything, with and without GE's bundled libs on `LD_LIBRARY_PATH`/`WINEDLLOVERRIDES` normalized. No test data from this leg; noting it so nobody assumes a Proton prefix on that box was a clean success. **What stands:** the failing configuration is the original one (Debian wine 10 + NVIDIA 550 + that box's prefix), 7/7 deterministic in release; the AMD rig (Mesa 26.2.5, Proton Experimental) passes the same test at the same commit. All 134 other `gpu_` tests pass on the Debian/NVIDIA box with its own prefix, including everything that creates d3d12 devices, so plain Vulkan/vkd3d is healthy there; only this test's DXGI factory call path fails, with a code (`DXGI_ERROR_SDK_COMPONENT_MISSING`) that points at the stack rather than pixels. Counts only, no game data. AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
Author
Owner

@⁠Decodere on GitHub · 2026-11-25 14:12 UTC · original

Taking #2238 in crates/xcl/src/gpu/texture.rs (#[cfg(test)] only).

Root cause found:

  1. 0x887A0004 is DXGI_ERROR_UNSUPPORTED (rather than DXGI_ERROR_SDK_COMPONENT_MISSING, 0x887A002D).
  2. crates/xcl/src/gpu/texture.rs:837 is the only call site in the repo requesting IDXGIFactory6 via DXGI 1.1 CreateDXGIFactory1().expect("DXGI factory") — all 7 other IDXGIFactory6 sites (including runner.rs:92, which all 134 other gpu_ tests use) call CreateDXGIFactory2::<IDXGIFactory6>(DXGI_CREATE_FACTORY_FLAGS(0)) and handle factory errors cleanly without panicking.
  3. Because line 837 panics on .expect(...) instead of falling back to agility::create_device(None, D3D_FEATURE_LEVEL_11_0) under Selector::Auto (like texture.rs:670) or skipping via runner::skip_test, both Wine CreateDXGIFactory1::<IDXGIFactory6>() DXGI_ERROR_UNSUPPORTED and prefix factory E_FAIL errors panic instead of running or skipping; it also ignores Selector::Warp.

Plan (#[cfg(test)] only, < 90 lines):

  • Switch texture.rs:837 to CreateDXGIFactory2::<IDXGIFactory6>(DXGI_CREATE_FACTORY_FLAGS(0)) inside a closure-injectable select_large_upload_device_with helper: honor Selector::Warp via EnumWarpAdapter, fall back to agility::create_device(None, D3D_FEATURE_LEVEL_11_0) only when factory creation fails under Selector::Auto (preserving headless-CI no GPU skips when factory succeeds with 0 hardware adapters and never ignoring an explicit XCL_ADAPTER), and call runner::skip_test if unavailable.
  • Verify with pure-CPU unit tests covering all 5 selection paths plus live RTX 4060 and WARP runs of gpu_large_mixed_upload_keeps_tight_staging_and_exact_pixels.

AI use: drafted with Google Antigravity (Gemini 4 Neon); implementation and Windows tests will run locally.

**@⁠Decodere** on GitHub · 2026-11-25 14:12 UTC · [original](https://github.com/xcl-dev/xcl/issues/2238#issuecomment-7164910298) Taking **#2238** in `crates/xcl/src/gpu/texture.rs` (`#[cfg(test)]` only). **Root cause found:** 1. `0x887A0004` is `DXGI_ERROR_UNSUPPORTED` (rather than `DXGI_ERROR_SDK_COMPONENT_MISSING`, `0x887A002D`). 2. `crates/xcl/src/gpu/texture.rs:837` is the **only** call site in the repo requesting `IDXGIFactory6` via DXGI 1.1 `CreateDXGIFactory1().expect("DXGI factory")` — all 7 other `IDXGIFactory6` sites (including `runner.rs:92`, which all 134 other `gpu_` tests use) call `CreateDXGIFactory2::<IDXGIFactory6>(DXGI_CREATE_FACTORY_FLAGS(0))` and handle factory errors cleanly without panicking. 3. Because line 837 panics on `.expect(...)` instead of falling back to `agility::create_device(None, D3D_FEATURE_LEVEL_11_0)` under `Selector::Auto` (like `texture.rs:670`) or skipping via `runner::skip_test`, both Wine `CreateDXGIFactory1::<IDXGIFactory6>()` `DXGI_ERROR_UNSUPPORTED` and prefix factory `E_FAIL` errors panic instead of running or skipping; it also ignores `Selector::Warp`. **Plan (`#[cfg(test)]` only, `< 90` lines):** - Switch `texture.rs:837` to `CreateDXGIFactory2::<IDXGIFactory6>(DXGI_CREATE_FACTORY_FLAGS(0))` inside a closure-injectable `select_large_upload_device_with` helper: honor `Selector::Warp` via `EnumWarpAdapter`, fall back to `agility::create_device(None, D3D_FEATURE_LEVEL_11_0)` only when factory creation fails under `Selector::Auto` (preserving headless-CI `no GPU` skips when factory succeeds with 0 hardware adapters and never ignoring an explicit `XCL_ADAPTER`), and call `runner::skip_test` if unavailable. - Verify with pure-CPU unit tests covering all 5 selection paths plus live RTX 4060 and WARP runs of `gpu_large_mixed_upload_keeps_tight_staging_and_exact_pixels`. _AI use: drafted with Google Antigravity (Gemini 4 Neon); implementation and Windows tests will run locally._
Author
Owner

@⁠Lum7nt on GitHub · 2026-11-25 14:55 UTC · original

Verified PR #2324 (\

**@⁠Lum7nt** on GitHub · 2026-11-25 14:55 UTC · [original](https://github.com/xcl-dev/xcl/issues/2238#issuecomment-7166029707) Verified PR #2324 (\
This discussion has been locked. Commenting is limited to contributors.
No description provided.