mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
feature: Add interface to bind resources as readonly
Related-To: NEO-10398 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6c7a568f64
commit
b722f3b579
@@ -1309,11 +1309,13 @@ int changeBufferObjectBinding(Drm *drm, OsContext *osContext, uint32_t vmHandleI
|
||||
bool bindCapture = bo->isMarkedForCapture();
|
||||
bool bindImmediate = bo->isImmediateBindingRequired();
|
||||
bool bindMakeResident = false;
|
||||
bool readOnlyResource = bo->isReadOnlyGpuResource();
|
||||
|
||||
if (drm->useVMBindImmediate()) {
|
||||
bindMakeResident = bo->isExplicitResidencyRequired();
|
||||
bindImmediate = true;
|
||||
}
|
||||
flags |= ioctlHelper->getFlagsForVmBind(bindCapture, bindImmediate, bindMakeResident);
|
||||
flags |= ioctlHelper->getFlagsForVmBind(bindCapture, bindImmediate, bindMakeResident, readOnlyResource);
|
||||
}
|
||||
|
||||
auto &bindAddresses = bo->getColourAddresses();
|
||||
|
||||
Reference in New Issue
Block a user