refactor: optimize checking if heapless state init is enabled

Related-To: NEO-7824
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2024-04-15 18:00:26 +00:00
committed by Compute-Runtime-Automation
parent 5cfe731948
commit 52b4c75f68
7 changed files with 7 additions and 3 deletions

View File

@@ -283,9 +283,7 @@ void EncodeDispatchKernel<Family>::encode(CommandContainer &container, EncodeDis
}
}
bool heaplessStateInitEnabled = rootDeviceEnvironment.getHelper<CompilerProductHelper>().isHeaplessStateInitEnabled(heaplessModeEnabled);
if (heaplessStateInitEnabled == false) {
if (args.isHeaplessStateInitEnabled == false) {
if (container.isAnyHeapDirty() ||
args.requiresUncachedMocs) {