Files
compute-runtime/runtime/os_interface/linux/drm_allocation.cpp
Mrozek, Michal 1db6e77c4d Return handle to bo object instead of BufferObject.
Change-Id: I18797660e085fb1e0f17ca860220da98f52cb738
Related-To: NEO-3252
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-06-04 22:17:19 +02:00

25 lines
547 B
C++

/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/os_interface/linux/drm_allocation.h"
#include "runtime/os_interface/linux/drm_buffer_object.h"
#include <sstream>
namespace NEO {
std::string DrmAllocation::getAllocationInfoString() const {
std::stringstream ss;
if (bo != nullptr) {
ss << " Handle: " << bo->peekHandle();
}
return ss.str();
}
uint64_t DrmAllocation::peekInternalHandle() { return static_cast<uint64_t>(getBO()->peekHandle()); }
} // namespace NEO