tests: Detect device vendor only on Windows.

For running cross-compiled tests in Wine.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-12-13 10:28:41 +01:00 committed by Alexandre Julliard
parent ce39464192
commit 6cd06fa874

View File

@ -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);