mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Related-To: NEO-4550 Change-Id: I1979afb20881bcad7999af3ac5fd4f407b85ccc7 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
27 lines
950 B
C++
27 lines
950 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/memory_manager/graphics_allocation.h"
|
|
|
|
namespace NEO {
|
|
struct HardwareInfo;
|
|
struct HeapAssigner {
|
|
HeapAssigner();
|
|
~HeapAssigner() = default;
|
|
bool useExternal32BitHeap(GraphicsAllocation::AllocationType allocType);
|
|
bool useInternal32BitHeap(GraphicsAllocation::AllocationType allocType);
|
|
bool use32BitHeap(GraphicsAllocation::AllocationType allocType);
|
|
HeapIndex get32BitHeapIndex(GraphicsAllocation::AllocationType allocType, bool useLocalMem, const HardwareInfo &hwInfo, bool useExternalWindow);
|
|
static bool heapTypeWithFrontWindowPool(HeapIndex heap);
|
|
static bool isInternalHeap(HeapIndex heap);
|
|
|
|
static HeapIndex mapExternalWindowIndex(HeapIndex index);
|
|
static HeapIndex mapInternalWindowIndex(HeapIndex index);
|
|
bool apiAllowExternalHeapForSshAndDsh = false;
|
|
};
|
|
} // namespace NEO
|