diff options
| author | Ayoze Torres <53948812+ayozetr@users.noreply.github.com> | 2026-11-22 02:35:40 +0000 |
|---|---|---|
| committer | Ayoze Torres <53948812+ayozetr@users.noreply.github.com> | 2026-11-22 03:46:44 +0000 |
| commit | 694ae035adf36e7d72d12e4d3781214a8d89e4f8 (patch) | |
| tree | 1661a8a097cf758403065a48ddfd1b12977a630e /runtime/test/device_proxy_test.cpp | |
| parent | 4a36bb19979b611f525d027f92e0fefad1626546 (diff) | |
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.
Diffstat (limited to 'runtime/test/device_proxy_test.cpp')
| -rw-r--r-- | runtime/test/device_proxy_test.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
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() { | |||
| 115 | check(SUCCEEDED(hr) && factory, "DXGI factory created"); | 115 | check(SUCCEEDED(hr) && factory, "DXGI factory created"); |
| 116 | ComPtr<IDXGIAdapter> warp; | 116 | ComPtr<IDXGIAdapter> warp; |
| 117 | if (factory) hr = factory->EnumWarpAdapter(IID_PPV_ARGS(warp.GetAddressOf())); | 117 | if (factory) hr = factory->EnumWarpAdapter(IID_PPV_ARGS(warp.GetAddressOf())); |
| 118 | check(SUCCEEDED(hr) && warp, "WARP adapter enumerated"); | 118 | if (!factory) { |
| 119 | if (!warp) { | 119 | std::printf("device_proxy_test: FAILED (no DXGI factory)\n"); |
| 120 | std::printf("device_proxy_test: FAILED (no WARP)\n"); | ||
| 121 | return 1; | 120 | return 1; |
| 122 | } | 121 | } |
| 122 | if (!warp) { | ||
| 123 | // Windows always has WARP; Wine doesn't. CTest reads exit code 77 as a skip (SKIP_RETURN_CODE). | ||
| 124 | std::printf("SKIP device_proxy_test: no WARP adapter (0x%08lX)\n", static_cast<unsigned long>(hr)); | ||
| 125 | return 77; | ||
| 126 | } | ||
| 127 | check(true, "WARP adapter enumerated"); | ||
| 123 | 128 | ||
| 124 | auto create_device = reinterpret_cast<XboxCreateDeviceFn>( | 129 | auto create_device = reinterpret_cast<XboxCreateDeviceFn>( |
| 125 | rt::shims::find("d3d12_xs.dll", "D3D12XboxCreateDevice")); | 130 | rt::shims::find("d3d12_xs.dll", "D3D12XboxCreateDevice")); |