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:
Milczarek, Slawomir
2019-09-01 21:36:15 +02:00
parent cc8fb911a3
commit 093bc4da9c
24 changed files with 293 additions and 145 deletions

View File

@@ -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();
}