From: Józef Kucia Subject: [PATCH vkd3d 6/7] tests: Detect device vendor only on Windows. Message-Id: <20181213092842.17876-6-joseph.kucia@gmail.com> Date: Thu, 13 Dec 2018 10:28:41 +0100 From: Józef Kucia For running cross-compiled tests in Wine. Signed-off-by: Józef Kucia --- 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); -- 2.19.2