Józef Kucia : tests: Detect device vendor only on Windows.
Module: vkd3d Branch: master Commit: 6cd06fa8747e107d640b9b5c9f41abf42ce01235 URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=6cd06fa8747e107d640b9b5c... Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Thu Dec 13 10:28:41 2018 +0100 tests: Detect device vendor only on Windows. For running cross-compiled tests in Wine. Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tests/d3d12_crosstest.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/d3d12_crosstest.h b/tests/d3d12_crosstest.h index ee12c89..6357d48 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);
participants (1)
-
Alexandre Julliard