From 694ae035adf36e7d72d12e4d3781214a8d89e4f8 Mon Sep 17 00:00:00 2001 From: Ayoze Torres <53948812+ayozetr@users.noreply.github.com> Date: Sun, 22 Nov 2026 02:35:40 +0000 Subject: tests: D3D12 tests skip without WARP and on host-dependent serializer checks device_proxy and d3d12_xs_root_signature need a WARP adapter, which Wine doesn't have: without one they exit 77, which CTest reads as a skip (SKIP_RETURN_CODE). A missing DXGI factory still fails. root_sig_test checked that the host serializer rejects the Xbox flag byte. Microsoft's d3d12.dll does; Wine's (vkd3d) doesn't validate it. That is a property of the host, not of the shim, so a host that accepts it is reported as a skip, as the deserializer check already does. --- runtime/test/device_proxy_test.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'runtime/test/device_proxy_test.cpp') diff --git a/runtime/test/device_proxy_test.cpp b/runtime/test/device_proxy_test.cpp index 748cc2e99..fe17d2833 100644 --- a/runtime/test/device_proxy_test.cpp +++ b/runtime/test/device_proxy_test.cpp @@ -115,11 +115,16 @@ int main() { check(SUCCEEDED(hr) && factory, "DXGI factory created"); ComPtr warp; if (factory) hr = factory->EnumWarpAdapter(IID_PPV_ARGS(warp.GetAddressOf())); - check(SUCCEEDED(hr) && warp, "WARP adapter enumerated"); - if (!warp) { - std::printf("device_proxy_test: FAILED (no WARP)\n"); + if (!factory) { + std::printf("device_proxy_test: FAILED (no DXGI factory)\n"); return 1; } + if (!warp) { + // Windows always has WARP; Wine doesn't. CTest reads exit code 77 as a skip (SKIP_RETURN_CODE). + std::printf("SKIP device_proxy_test: no WARP adapter (0x%08lX)\n", static_cast(hr)); + return 77; + } + check(true, "WARP adapter enumerated"); auto create_device = reinterpret_cast( rt::shims::find("d3d12_xs.dll", "D3D12XboxCreateDevice")); -- cgit v1.2.3