mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Include files are now grouped and sorted in following order: 1. Header file of the class the current file implements 2. Project files 3. Third party files 4. Standard library Change-Id: If31af05652184169f7fee1d7ad08f1b2ed602cf0 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "common/gtsysinfo.h"
|
|
#include "runtime/os_interface/os_library.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 = "gdi32_mock.dll";
|
|
const char *gmmDllName = "mock_gmm.dll";
|
|
const char *gmmEntryName = "openMockGmm";
|
|
const char *testDllName = "test_dynamic_lib.dll";
|
|
} // namespace Os
|
|
|
|
OCLRT::OsLibrary *setAdapterInfo(const PLATFORM *platform, const GT_SYSTEM_INFO *gtSystemInfo) {
|
|
OCLRT::OsLibrary *mockGdiDll;
|
|
mockGdiDll = OCLRT::OsLibrary::load("gdi32_mock.dll");
|
|
|
|
typedef void(__stdcall * pfSetAdapterInfo)(const void *, const void *);
|
|
pfSetAdapterInfo setAdpaterInfo = reinterpret_cast<pfSetAdapterInfo>(mockGdiDll->getProcAddress("MockSetAdapterInfo"));
|
|
|
|
setAdpaterInfo(platform, gtSystemInfo);
|
|
|
|
return mockGdiDll;
|
|
}
|