Tests: gpu_large_mixed_upload test fails on Pascal under Linux/wine with DXGI_ERROR_SDK_COMPONENT_MISSING #2238
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#2238
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@SlopTart on GitHub · 2026-11-25 11:01 UTC · original
Observed.
gpu::texture::tests::gpu_large_mixed_upload_keeps_tight_staging_and_exact_pixelsfails on an NVIDIA card under Linux/wine:mainat568e7db, no local changesgpu_subsetgpu_subset toocrates/xcl/src/gpu/texture.rs:837:63withDXGI factory: Error { code: HRESULT(0x887A0004), message: "" }, so the test dies getting the DXGI factory rather than on a pixel mismatch;0x887A0004isDXGI_ERROR_SDK_COMPONENT_MISSINGd3d12.dll,d3d12core.dll,dxgi.dllused on the working rig and settingWINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b"plusVKD3D_CONFIG=ignore_shared_fenceContrast. 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_MISSINGcode 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:13 UTC · original
Follow-up: tried to reproduce the failure away from the original Debian/wine stack, per the
SDK_COMPONENT_MISSINGsuspicion.Attempt 1, same box, rig DLLs into the Debian prefix. Copying the xcl-patched
d3d12.dll,d3d12core.dll,dxgi.dllfrom the working rig into~/.xcl-prefixand settingWINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b"+VKD3D_CONFIG=ignore_shared_fence: still FAILED, same panic site, same0x887A0004(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 othergpu_test reportsSKIPPED ... no GPUunder 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 onLD_LIBRARY_PATH/WINEDLLOVERRIDESnormalized. 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.
@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:
0x887A0004isDXGI_ERROR_UNSUPPORTED(rather thanDXGI_ERROR_SDK_COMPONENT_MISSING,0x887A002D).crates/xcl/src/gpu/texture.rs:837is the only call site in the repo requestingIDXGIFactory6via DXGI 1.1CreateDXGIFactory1().expect("DXGI factory")— all 7 otherIDXGIFactory6sites (includingrunner.rs:92, which all 134 othergpu_tests use) callCreateDXGIFactory2::<IDXGIFactory6>(DXGI_CREATE_FACTORY_FLAGS(0))and handle factory errors cleanly without panicking..expect(...)instead of falling back toagility::create_device(None, D3D_FEATURE_LEVEL_11_0)underSelector::Auto(liketexture.rs:670) or skipping viarunner::skip_test, both WineCreateDXGIFactory1::<IDXGIFactory6>()DXGI_ERROR_UNSUPPORTEDand prefix factoryE_FAILerrors panic instead of running or skipping; it also ignoresSelector::Warp.Plan (
#[cfg(test)]only,< 90lines):texture.rs:837toCreateDXGIFactory2::<IDXGIFactory6>(DXGI_CREATE_FACTORY_FLAGS(0))inside a closure-injectableselect_large_upload_device_withhelper: honorSelector::WarpviaEnumWarpAdapter, fall back toagility::create_device(None, D3D_FEATURE_LEVEL_11_0)only when factory creation fails underSelector::Auto(preserving headless-CIno GPUskips when factory succeeds with 0 hardware adapters and never ignoring an explicitXCL_ADAPTER), and callrunner::skip_testif unavailable.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.
@Lum7nt on GitHub · 2026-11-25 14:55 UTC · original
Verified PR #2324 (\