[PATCH vkd3d 6/7] tests: Detect device vendor only on Windows.
Józef Kucia
joseph.kucia at gmail.com
Thu Dec 13 03:28:41 CST 2018
From: Józef Kucia <jkucia at codeweavers.com>
For running cross-compiled tests in Wine.
Signed-off-by: Józef Kucia <jkucia at 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);
--
2.19.2
More information about the wine-devel
mailing list