mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 17:29:14 +08:00
Related-To: NEO-4208 Change-Id: Iaf5255500b5629739065303e4e4f8a724458dbce Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
41 lines
802 B
C++
41 lines
802 B
C++
/*
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "core/os_interface/linux/os_interface.h"
|
|
|
|
#include "core/os_interface/linux/drm_neo.h"
|
|
|
|
namespace NEO {
|
|
|
|
bool OSInterface::osEnabled64kbPages = false;
|
|
|
|
OSInterface::OSInterfaceImpl::OSInterfaceImpl() = default;
|
|
OSInterface::OSInterfaceImpl::~OSInterfaceImpl() = default;
|
|
void OSInterface::OSInterfaceImpl::setDrm(Drm *drm) {
|
|
this->drm.reset(drm);
|
|
}
|
|
|
|
OSInterface::OSInterface() {
|
|
osInterfaceImpl = new OSInterfaceImpl();
|
|
}
|
|
|
|
OSInterface::~OSInterface() {
|
|
delete osInterfaceImpl;
|
|
}
|
|
|
|
bool OSInterface::are64kbPagesEnabled() {
|
|
return osEnabled64kbPages;
|
|
}
|
|
|
|
uint32_t OSInterface::getDeviceHandle() const {
|
|
return 0;
|
|
}
|
|
|
|
void OSInterface::setGmmInputArgs(void *args) {}
|
|
|
|
} // namespace NEO
|