mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
refactor: add heaplessModeEnabled argument to isHeaplessStateInitEnabled
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
22e94c3a8c
commit
cfc3b6a8c2
@@ -461,7 +461,9 @@ bool Device::createEngine(uint32_t deviceCsrIndex, EngineTypeUsage engineTypeUsa
|
||||
}
|
||||
|
||||
auto &compilerProductHelper = this->getCompilerProductHelper();
|
||||
bool isHeaplessStateInit = isPrimaryEngine && compilerProductHelper.isHeaplessStateInitEnabled();
|
||||
auto heaplessEnabled = compilerProductHelper.isHeaplessModeEnabled();
|
||||
|
||||
bool isHeaplessStateInit = isPrimaryEngine && compilerProductHelper.isHeaplessStateInitEnabled(heaplessEnabled);
|
||||
bool initializeDevice = (useContextGroup || isHeaplessStateInit) && !firstSubmissionDone;
|
||||
|
||||
if (initializeDevice) {
|
||||
|
||||
Reference in New Issue
Block a user