mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Change-Id: I7da6e67010ff7a819aec25abea9213b6e43e348e Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
25 lines
840 B
C++
25 lines
840 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 HeapIndex mapExternalWindowIndex(HeapIndex index);
|
|
bool apiAllowExternalHeapForSshAndDsh = false;
|
|
};
|
|
} // namespace NEO
|