mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
refactor: move isTimestampWaitSupportedForQueues to productHelper
Related-to: NEO-13163 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
06b34da853
commit
2e729bcb4c
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user