mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Unify isTimestampWaitSupportedForEvents helper function
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> No need to keep isTimestampWaitSupportedForEvents function in hwHelper and in hwInfoConfig helper, move it to hwInfoConfig instead.
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e4d10e5460
commit
c82038565e
@@ -688,10 +688,9 @@ bool Event::isCompleted() {
|
||||
}
|
||||
|
||||
bool Event::isWaitForTimestampsEnabled() const {
|
||||
const auto &hwInfo = cmdQueue->getDevice().getHardwareInfo();
|
||||
const auto &hwHelper = HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
const auto &productHelper = cmdQueue->getDevice().getRootDeviceEnvironment().getHelper<ProductHelper>();
|
||||
auto enabled = cmdQueue->isTimestampWaitEnabled();
|
||||
enabled &= hwHelper.isTimestampWaitSupportedForEvents(hwInfo);
|
||||
enabled &= productHelper.isTimestampWaitSupportedForEvents();
|
||||
|
||||
switch (DebugManager.flags.EnableTimestampWaitForEvents.get()) {
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user