mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +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
@@ -339,6 +339,15 @@ void DrmAllocation::registerBOBindExtHandle(Drm *drm) {
|
||||
drm->getIoctlHelper()->registerBOBindHandle(drm, this);
|
||||
}
|
||||
|
||||
void DrmAllocation::setAsReadOnly() {
|
||||
auto &bos = getBOs();
|
||||
for (auto &bo : bos) {
|
||||
if (bo) {
|
||||
bo->setAsReadOnly(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void DrmAllocation::linkWithRegisteredHandle(uint32_t handle) {
|
||||
auto &bos = getBOs();
|
||||
for (auto bo : bos) {
|
||||
|
||||
Reference in New Issue
Block a user