mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Pin allocation with specific DrmContextId at creation time
Change-Id: Ic132fb70b1da2cf3b7c70ab899822705adb83edc Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
ebd0889216
commit
8029639898
@@ -171,6 +171,7 @@ int BufferObject::pin(BufferObject *boToPin[], size_t numberOfBos, uint32_t drmC
|
||||
execbuf.buffers_ptr = reinterpret_cast<uintptr_t>(&execObject[0]);
|
||||
execbuf.buffer_count = boIndex + 1;
|
||||
execbuf.batch_len = alignUp(static_cast<uint32_t>(sizeof(uint32_t)), 8);
|
||||
execbuf.rsvd1 = drmContextId;
|
||||
|
||||
int err = 0;
|
||||
int ret = this->drm->ioctl(DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf);
|
||||
|
||||
Reference in New Issue
Block a user