mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 15:53:13 +08:00
Change-Id: I18797660e085fb1e0f17ca860220da98f52cb738 Related-To: NEO-3252 Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
25 lines
547 B
C++
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
|