mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Related-To: NEO-13529 Also, add size threshold on iGPU on Linux, and disable staging if imported host ptr could be reused Signed-off-by: Szymon Morek <szymon.morek@intel.com>
38 lines
887 B
C++
38 lines
887 B
C++
/*
|
|
* Copyright (C) 2018-2025 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/os_interface/os_interface.h"
|
|
#include "shared/source/os_interface/windows/wddm/wddm.h"
|
|
|
|
namespace NEO {
|
|
|
|
bool OSInterface::osEnabled64kbPages = true;
|
|
bool OSInterface::newResourceImplicitFlush = true;
|
|
bool OSInterface::gpuIdleImplicitFlush = false;
|
|
bool OSInterface::requiresSupportForWddmTrimNotification = true;
|
|
|
|
bool OSInterface::isDebugAttachAvailable() const {
|
|
if (driverModel) {
|
|
return driverModel->as<NEO::Wddm>()->isDebugAttachAvailable();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
bool OSInterface::isLockablePointer(bool isLockable) const {
|
|
return isLockable;
|
|
}
|
|
|
|
bool OSInterface::isSizeWithinThresholdForStaging(size_t size, bool isIGPU) const {
|
|
return true;
|
|
}
|
|
|
|
uint32_t OSInterface::getAggregatedProcessCount() const {
|
|
return 0;
|
|
}
|
|
|
|
} // namespace NEO
|