Remove not needed debug flag.

Change-Id: I2cfb1cf531654045242f64f045f6f8ff2cc10d9a
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2019-11-15 08:29:02 +01:00
committed by sys_ocldev
parent ef89ed7a01
commit 51f7fbe0ec
4 changed files with 1 additions and 14 deletions

View File

@@ -24,11 +24,6 @@ std::string DrmAllocation::getAllocationInfoString() const {
}
uint64_t DrmAllocation::peekInternalHandle(MemoryManager *memoryManager) {
auto drmMemoryManager = static_cast<DrmMemoryManager *>(memoryManager);
if (DebugManager.flags.AllowOpenFdOperations.get()) {
return static_cast<uint64_t>(drmMemoryManager->obtainFdFromHandle(getBO()->peekHandle()));
} else {
return 0llu;
}
return static_cast<uint64_t>((static_cast<DrmMemoryManager *>(memoryManager))->obtainFdFromHandle(getBO()->peekHandle()));
}
} // namespace NEO