performance: Flush constant cache only if any ULLS enabled

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2023-07-17 12:46:07 +00:00
committed by Compute-Runtime-Automation
parent 461ecc9b3b
commit 2407658376
4 changed files with 12 additions and 3 deletions

View File

@@ -3215,7 +3215,7 @@ void CommandListCoreFamily<gfxCoreFamily>::dispatchPostSyncCommands(const CmdLis
if (this->cmdListType == CommandListType::TYPE_IMMEDIATE) {
pipeControlArgs.constantCacheInvalidationEnable = this->csr->isDirectSubmissionEnabled();
} else {
pipeControlArgs.constantCacheInvalidationEnable = productHelper.isDirectSubmissionSupported(this->device->getHwInfo());
pipeControlArgs.constantCacheInvalidationEnable = this->device->getNEODevice()->isAnyDirectSubmissionEnabled();
}
}