Return handle to bo object instead of BufferObject.

Change-Id: I18797660e085fb1e0f17ca860220da98f52cb738
Related-To: NEO-3252
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-06-04 13:42:57 +02:00
committed by sys_ocldev
parent c8c2e64ec6
commit 1db6e77c4d
3 changed files with 5 additions and 4 deletions

View File

@@ -19,4 +19,6 @@ std::string DrmAllocation::getAllocationInfoString() const {
}
return ss.str();
}
uint64_t DrmAllocation::peekInternalHandle() { return static_cast<uint64_t>(getBO()->peekHandle()); }
} // namespace NEO

View File

@@ -6,7 +6,6 @@
*/
#pragma once
#include "core/helpers/ptr_math.h"
#include "runtime/memory_manager/graphics_allocation.h"
namespace NEO {
@@ -36,7 +35,7 @@ class DrmAllocation : public GraphicsAllocation {
}
return this->bo;
}
uint64_t peekInternalHandle() override { return castToUint64(getBO()); }
uint64_t peekInternalHandle() override;
protected:
BufferObject *bo;