mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Add debug variable to force default heap allocation size
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
abd90308f3
commit
b60d963ff5
@@ -21,6 +21,14 @@ using HeapContainer = std::vector<GraphicsAllocation *>;
|
||||
|
||||
constexpr size_t defaultHeapSize = 64 * KB;
|
||||
|
||||
inline size_t getDefaultHeapSize() {
|
||||
auto defaultSize = defaultHeapSize;
|
||||
if (DebugManager.flags.ForceDefaultHeapSize.get() != -1) {
|
||||
defaultSize = DebugManager.flags.ForceDefaultHeapSize.get() * MemoryConstants::kiloByte;
|
||||
}
|
||||
return defaultSize;
|
||||
}
|
||||
|
||||
class IndirectHeap : public LinearStream {
|
||||
typedef LinearStream BaseClass;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user