Files
compute-runtime/shared/test/common/os_interface/linux/sys_calls_win.cpp
Mateusz Jablonski 28319a8e81 Refactor: don't pass redundant hw info to applyAdditionalContextFlags
Wddm already contains reference to root device environment

Related-To: NEO-6853
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-01-02 10:20:13 +01:00

41 lines
775 B
C++

/*
* Copyright (C) 2022-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/windows/wddm/wddm.h"
#include "shared/test/common/mocks/linux/mock_dxcore.h"
#include "shared/test/common/os_interface/windows/ult_dxcore_factory.h"
#include <unistd.h>
namespace NEO {
bool isShutdownInProgress() {
return false;
}
unsigned int getPid() {
return static_cast<uint32_t>(getpid());
}
unsigned int readEnablePreemptionRegKey() {
return 1;
}
Wddm::CreateDXGIFactoryFcn getCreateDxgiFactory() {
return nullptr;
}
Wddm::DXCoreCreateAdapterFactoryFcn getDXCoreCreateAdapterFactory() {
return ultDxCoreCreateAdapterFactory;
}
Wddm::GetSystemInfoFcn getGetSystemInfo() {
return nullptr;
}
} // namespace NEO