2021-05-21 07:17:57 +08:00
|
|
|
/*
|
2025-01-28 20:37:29 +08:00
|
|
|
* Copyright (C) 2018-2025 Intel Corporation
|
2021-05-21 07:17:57 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "shared/source/os_interface/os_interface.h"
|
2022-05-12 06:36:36 +08:00
|
|
|
#include "shared/source/os_interface/windows/wddm/wddm.h"
|
2021-05-21 07:17:57 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
bool OSInterface::osEnabled64kbPages = true;
|
2023-01-12 22:24:24 +08:00
|
|
|
bool OSInterface::newResourceImplicitFlush = true;
|
2023-01-16 21:58:53 +08:00
|
|
|
bool OSInterface::gpuIdleImplicitFlush = false;
|
2021-05-21 07:17:57 +08:00
|
|
|
bool OSInterface::requiresSupportForWddmTrimNotification = true;
|
|
|
|
|
|
|
|
bool OSInterface::isDebugAttachAvailable() const {
|
2022-05-12 06:36:36 +08:00
|
|
|
if (driverModel) {
|
|
|
|
return driverModel->as<NEO::Wddm>()->isDebugAttachAvailable();
|
|
|
|
}
|
2021-05-21 07:17:57 +08:00
|
|
|
return false;
|
|
|
|
}
|
2022-01-21 00:56:19 +08:00
|
|
|
|
2022-12-14 19:27:22 +08:00
|
|
|
bool OSInterface::isLockablePointer(bool isLockable) const {
|
|
|
|
return isLockable;
|
|
|
|
}
|
|
|
|
|
2025-02-04 18:24:31 +08:00
|
|
|
bool OSInterface::isSizeWithinThresholdForStaging(size_t size, bool isIGPU) const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2025-01-31 23:26:12 +08:00
|
|
|
uint32_t OSInterface::getAggregatedProcessCount() const {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2021-05-21 07:17:57 +08:00
|
|
|
} // namespace NEO
|