mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Revert "feature: Enable defer backing by default"
This reverts commit bf8de245d9.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
890182b093
commit
763fe6ff86
@@ -256,11 +256,6 @@ bool IoctlHelperXe::initialize() {
|
||||
assignValue(tileIdToMediaGtId, gt.tile_id, gt.gt_id);
|
||||
}
|
||||
}
|
||||
|
||||
if (debugManager.flags.EnableDeferBacking.get() != -1) {
|
||||
enableDeferBacking = debugManager.flags.EnableDeferBacking.get();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -717,7 +712,7 @@ int IoctlHelperXe::createGemExt(const MemRegionsVec &memClassInstances, size_t a
|
||||
create.placement = static_cast<uint32_t>(memoryInstances.to_ulong());
|
||||
create.cpu_caching = this->getCpuCachingMode(isCoherent, isSysMemOnly);
|
||||
|
||||
if (enableDeferBacking) {
|
||||
if (debugManager.flags.EnableDeferBacking.get()) {
|
||||
create.flags |= DRM_XE_GEM_CREATE_FLAG_DEFER_BACKING;
|
||||
}
|
||||
|
||||
@@ -763,7 +758,7 @@ uint32_t IoctlHelperXe::createGem(uint64_t size, uint32_t memoryBanks, std::opti
|
||||
create.placement = static_cast<uint32_t>(memoryInstances.to_ulong());
|
||||
create.cpu_caching = this->getCpuCachingMode(isCoherent, isSysMemOnly);
|
||||
|
||||
if (enableDeferBacking) {
|
||||
if (debugManager.flags.EnableDeferBacking.get()) {
|
||||
create.flags |= DRM_XE_GEM_CREATE_FLAG_DEFER_BACKING;
|
||||
}
|
||||
|
||||
@@ -1674,7 +1669,11 @@ bool IoctlHelperXe::isImmediateVmBindRequired() const {
|
||||
}
|
||||
|
||||
bool IoctlHelperXe::makeResidentBeforeLockNeeded() const {
|
||||
return enableDeferBacking;
|
||||
auto makeResidentBeforeLockNeeded = false;
|
||||
if (debugManager.flags.EnableDeferBacking.get()) {
|
||||
makeResidentBeforeLockNeeded = true;
|
||||
}
|
||||
return makeResidentBeforeLockNeeded;
|
||||
}
|
||||
|
||||
void IoctlHelperXe::insertEngineToContextParams(ContextParamEngines<> &contextParamEngines, uint32_t engineId, const EngineClassInstance *engineClassInstance, uint32_t tileId, bool hasVirtualEngines) {
|
||||
|
||||
@@ -224,8 +224,6 @@ class IoctlHelperXe : public IoctlHelper {
|
||||
};
|
||||
|
||||
std::unique_ptr<EuDebugInterface> euDebugInterface;
|
||||
|
||||
bool enableDeferBacking = true;
|
||||
};
|
||||
|
||||
template <typename... XeLogArgs>
|
||||
|
||||
Reference in New Issue
Block a user