mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
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:
committed by
Compute-Runtime-Automation
parent
e2e00413a8
commit
d4de925711
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user