Use timestamp wait only if cache flush not needed

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2022-04-01 15:35:51 +00:00
committed by Compute-Runtime-Automation
parent 787c74ce7a
commit 9ace9356f8
2 changed files with 13 additions and 4 deletions

View File

@@ -996,9 +996,11 @@ void CommandQueue::assignDataToOverwrittenBcsNode(TagNodeBase *node) {
}
bool CommandQueue::isWaitForTimestampsEnabled() const {
auto &hwHelper = HwHelper::get(getDevice().getHardwareInfo().platform.eRenderCoreFamily);
const auto &hwHelper = HwHelper::get(getDevice().getHardwareInfo().platform.eRenderCoreFamily);
const auto &hwInfoConfig = *HwInfoConfig::get(getDevice().getHardwareInfo().platform.eProductFamily);
auto enabled = CommandQueue::isTimestampWaitEnabled();
enabled &= hwHelper.isTimestampWaitSupported();
enabled &= !hwInfoConfig.isDcFlushAllowed();
switch (DebugManager.flags.EnableTimestampWait.get()) {
case 0: