mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
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:
parent
ce39464192
commit
6cd06fa874
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user