mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 04:12:57 +08:00
Add support for multiple buffer objects in drm allocation
Resolves: NEO-3364 Change-Id: I05e8b9a05328298dcc578d62b2aa7b56ffbf4ddc Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
@@ -35,6 +35,10 @@ BufferObject::BufferObject(Drm *drm, int handle) : drm(drm), refCount(1), handle
|
||||
this->lockedAddress = nullptr;
|
||||
}
|
||||
|
||||
BufferObject::BufferObject(Drm *drm, int handle, size_t size) : BufferObject(drm, handle) {
|
||||
this->size = size;
|
||||
}
|
||||
|
||||
uint32_t BufferObject::getRefCount() const {
|
||||
return this->refCount.load();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user