mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
sys_ocldev
parent
c8c2e64ec6
commit
1db6e77c4d
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user