Files
compute-runtime/shared/test/common/os_interface/windows/options.cpp
Kamil Diedrich 1c9f17844b Add wddm ult for wsl build [2/n]
Related-To: NEO-6066
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-12-07 14:42:49 +01:00

37 lines
1.2 KiB
C++

/*
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/mock_gdi/mock_os_library.h"
#include "common/gtsysinfo.h"
#include "igfxfmid.h"
namespace Os {
///////////////////////////////////////////////////////////////////////////////
// These options determine the Windows specific behavior for
// the runtime unit tests
///////////////////////////////////////////////////////////////////////////////
const char *frontEndDllName = "";
const char *igcDllName = "";
const char *gdiDllName = "";
const char *dxcoreDllName = "";
const char *testDllName = "test_dynamic_lib.dll";
const char *metricsLibraryDllName = "";
} // namespace Os
NEO::OsLibrary *setAdapterInfo(const PLATFORM *platform, const GT_SYSTEM_INFO *gtSystemInfo, uint64_t gpuAddressSpace) {
NEO::OsLibrary *mockGdiDll;
mockGdiDll = NEO::MockOsLibrary::load("");
typedef void (*pfSetAdapterInfo)(const void *, const void *, uint64_t);
pfSetAdapterInfo setAdapterInfo = reinterpret_cast<pfSetAdapterInfo>(mockGdiDll->getProcAddress("mockSetAdapterInfo"));
setAdapterInfo(platform, gtSystemInfo, gpuAddressSpace);
return mockGdiDll;
}