28 lines
649 B
C++
28 lines
649 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "unit_tests/os_interface/windows/ult_dxgi_factory.h"
|
|
|
|
namespace NEO {
|
|
|
|
HRESULT WINAPI ULTCreateDXGIFactory(REFIID riid, void **ppFactory) {
|
|
|
|
UltIDXGIFactory1 *factory = new UltIDXGIFactory1;
|
|
|
|
*(UltIDXGIFactory1 **)ppFactory = factory;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
void WINAPI ULTGetSystemInfo(SYSTEM_INFO *pSystemInfo) {
|
|
pSystemInfo->lpMaximumApplicationAddress = is32bit ? (LPVOID)MemoryConstants::max32BitAppAddress : (LPVOID)MemoryConstants::max64BitAppAddress;
|
|
}
|
|
|
|
const wchar_t *UltIDXGIAdapter1::description = L"Intel";
|
|
|
|
} // namespace NEO
|