From: Józef Kucia jkucia@codeweavers.com
For running cross-compiled tests in Wine.
Signed-off-by: Józef Kucia jkucia@codeweavers.com ---
In Wine tests we do a similar thing.
--- tests/d3d12_crosstest.h | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/tests/d3d12_crosstest.h b/tests/d3d12_crosstest.h index ee12c891b290..6357d48fe7ea 100644 --- a/tests/d3d12_crosstest.h +++ b/tests/d3d12_crosstest.h @@ -303,6 +303,9 @@ static inline bool is_amd_device(ID3D12Device *device) HRESULT hr; LUID luid;
+ if (!vkd3d_test_platform_is_windows()) + return false; + luid = ID3D12Device_GetAdapterLuid(device);
hr = CreateDXGIFactory1(&IID_IDXGIFactory4, (void **)&factory);