mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
This patch force KMD allocation path for USM shared Additionally we force 64kb page from lock which is required to properly program GPU VA Related-To: NEO-6913 Signed-off-by: Kamil Diedrich kamil.diedrich@intel.com
41 lines
770 B
C++
41 lines
770 B
C++
/*
|
|
* Copyright (C) 2022 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
|