refactor: add isKernelIsaAllocationType helper

Preparatory step, the helper will be also used by following changes.

Related-To: NEO-7788
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
Maciej Bielski
2023-04-24 11:58:49 +00:00
committed by Compute-Runtime-Automation
parent e2e00413a8
commit d4de925711
2 changed files with 7 additions and 4 deletions

View File

@@ -214,9 +214,13 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
allocationType == AllocationType::SHARED_RESOURCE_COPY;
}
static bool isIsaAllocationType(AllocationType type) {
static bool isKernelIsaAllocationType(AllocationType type) {
return type == AllocationType::KERNEL_ISA ||
type == AllocationType::KERNEL_ISA_INTERNAL ||
type == AllocationType::KERNEL_ISA_INTERNAL;
}
static bool isIsaAllocationType(AllocationType type) {
return isKernelIsaAllocationType(type) ||
type == AllocationType::DEBUG_MODULE_AREA;
}