mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
feature: Add debug keys for chunking allocation and size
Related-to: NEO-7695 New debug keys added: EnableBOChunking is now a mask 0 = no chunking (default). 1 = shared allocations only 2 = device allocations only 3 = shared and device allocations MinimalAllocationSizeForChunking sets the minimum allocation size to apply chunking. Default is 2MB. Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
aa0beb8191
commit
23eeaf816d
@@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/gmm_helper/gmm_lib.h"
|
||||
#include "shared/source/helpers/constants.h"
|
||||
#include "shared/source/helpers/driver_model_type.h"
|
||||
#include "shared/source/memory_manager/definitions/engine_limits.h"
|
||||
#include "shared/source/os_interface/linux/drm_debug.h"
|
||||
@@ -151,6 +152,8 @@ class Drm : public DriverModel {
|
||||
MOCKABLE_VIRTUAL bool getSetPairAvailable() { return setPairAvailable; }
|
||||
MOCKABLE_VIRTUAL bool isChunkingAvailable();
|
||||
MOCKABLE_VIRTUAL bool getChunkingAvailable() { return chunkingAvailable; }
|
||||
MOCKABLE_VIRTUAL uint32_t getChunkingMode() { return chunkingMode; }
|
||||
uint32_t getMinimalSizeForChunking() { return minimalChunkingSize; }
|
||||
|
||||
MOCKABLE_VIRTUAL bool useVMBindImmediate() const;
|
||||
|
||||
@@ -334,6 +337,8 @@ class Drm : public DriverModel {
|
||||
bool directSubmissionActive = false;
|
||||
bool setPairAvailable = false;
|
||||
bool chunkingAvailable = false;
|
||||
uint32_t chunkingMode = 0;
|
||||
uint32_t minimalChunkingSize = MemoryConstants::pageSize2Mb;
|
||||
bool contextDebugSupported = false;
|
||||
bool pageFaultSupported = false;
|
||||
bool completionFenceSupported = false;
|
||||
|
||||
Reference in New Issue
Block a user