Correct allocating event pool in device memory

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2021-10-13 15:10:51 +00:00
committed by Compute-Runtime-Automation
parent e0a093b87a
commit 0d74ab8ae8
4 changed files with 52 additions and 8 deletions

View File

@ -229,13 +229,13 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
allocationType == AllocationType::RING_BUFFER ||
allocationType == AllocationType::SEMAPHORE_BUFFER ||
allocationType == AllocationType::DEBUG_CONTEXT_SAVE_AREA ||
allocationType == AllocationType::GPU_TIMESTAMP_DEVICE_BUFFER ||
allocationType == AllocationType::DEBUG_MODULE_AREA;
}
static bool isLockable(AllocationType allocationType) {
return isCpuAccessRequired(allocationType) ||
isIsaAllocationType(allocationType) ||
allocationType == AllocationType::BUFFER_HOST_MEMORY ||
allocationType == AllocationType::GPU_TIMESTAMP_DEVICE_BUFFER ||
allocationType == AllocationType::SHARED_RESOURCE_COPY;
}