refactor: move isTimestampWaitSupportedForQueues to productHelper

Related-to: NEO-13163
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2025-03-18 15:45:27 +00:00
committed by Compute-Runtime-Automation
parent 06b34da853
commit 2e729bcb4c
20 changed files with 57 additions and 44 deletions

View File

@@ -1331,10 +1331,10 @@ void CommandQueue::assignDataToOverwrittenBcsNode(TagNodeBase *node) {
}
bool CommandQueue::isWaitForTimestampsEnabled() const {
const auto &gfxCoreHelper = getDevice().getGfxCoreHelper();
auto &productHelper = getDevice().getProductHelper();
auto enabled = CommandQueue::isTimestampWaitEnabled();
enabled &= gfxCoreHelper.isTimestampWaitSupportedForQueues();
enabled &= productHelper.isTimestampWaitSupportedForQueues(false);
enabled &= !productHelper.isDcFlushAllowed();
enabled &= !getDevice().getRootDeviceEnvironment().isWddmOnLinux();
enabled &= !this->isOOQEnabled(); // TSP for OOQ dispatch is optional. We need to wait for task count.