mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Pass maxOsContextCount to BufferObject
Change-Id: I9e64718a5a64096c8fdc50f3b84d3843701ff602 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
53cb6a127d
commit
739c1c6c99
@@ -30,14 +30,14 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
BufferObject::BufferObject(Drm *drm, int handle, size_t size) : drm(drm), refCount(1), handle(handle), size(size), isReused(false) {
|
||||
BufferObject::BufferObject(Drm *drm, int handle, size_t size, size_t maxOsContextCount) : drm(drm), refCount(1), handle(handle), size(size), isReused(false) {
|
||||
this->tiling_mode = I915_TILING_NONE;
|
||||
this->lockedAddress = nullptr;
|
||||
|
||||
perContextVmsUsed = drm->isPerContextVMRequired();
|
||||
|
||||
if (perContextVmsUsed) {
|
||||
bindInfo.resize(MemoryManager::maxOsContextCount);
|
||||
bindInfo.resize(maxOsContextCount);
|
||||
for (auto &iter : bindInfo) {
|
||||
iter.fill(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user