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:
Maciej Plewka
2024-03-27 12:52:30 +00:00
committed by Compute-Runtime-Automation
parent 6c7a568f64
commit b722f3b579
30 changed files with 279 additions and 28 deletions

View File

@@ -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) {