mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Fix issue in events
alloc was previously potentially never used Change-Id: I9da9aeb51dcf7881d51bb62ef35c9427c8cc3ef0 Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
1e074545db
commit
6c4621f2ec
@@ -199,9 +199,9 @@ ze_result_t Event::destroy() {
|
||||
void EventImp::makeAllocationResident() {
|
||||
auto deviceImp = static_cast<DeviceImp *>(this->device);
|
||||
NEO::MemoryOperationsHandler *memoryOperationsIface = deviceImp->neoDevice->getRootDeviceEnvironment().memoryOperationsInterface.get();
|
||||
auto alloc = &(this->eventPool->getAllocation());
|
||||
|
||||
if (memoryOperationsIface) {
|
||||
auto alloc = &(this->eventPool->getAllocation());
|
||||
memoryOperationsIface->makeResident(ArrayRef<NEO::GraphicsAllocation *>(&alloc, 1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user