mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 17:00:59 +08:00
Remove root device index from buffer object.
Graphics allocation is responsible for holding this information. Signed-off-by: Michal Mrozek <michal.mrozek@intel.com> Change-Id: I5cf6fa7e92a7c716308213509aab5e446b5ef680
This commit is contained in:
committed by
sys_ocldev
parent
d1b29496fa
commit
1ce4f56c9f
@@ -29,13 +29,11 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
BufferObject::BufferObject(Drm *drm, int handle, size_t size, uint32_t rootDeviceIndex) : drm(drm), refCount(1), handle(handle), size(size), rootDeviceIndex(rootDeviceIndex), isReused(false) {
|
||||
BufferObject::BufferObject(Drm *drm, int handle, size_t size) : drm(drm), refCount(1), handle(handle), size(size), isReused(false) {
|
||||
this->tiling_mode = I915_TILING_NONE;
|
||||
this->lockedAddress = nullptr;
|
||||
}
|
||||
|
||||
BufferObject::BufferObject(Drm *drm, int handle, uint32_t rootDeviceIndex) : BufferObject(drm, handle, 0, rootDeviceIndex) {}
|
||||
|
||||
uint32_t BufferObject::getRefCount() const {
|
||||
return this->refCount.load();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user