refactor: better conditions handling in isInOrderNonWalkerSignalingRequired

Related-to: NEO-12737

Signed-off-by: Damian Tomczak <damian.tomczak@intel.com>
This commit is contained in:
Damian Tomczak
2025-02-09 19:06:50 +00:00
committed by Compute-Runtime-Automation
parent 1da94b253d
commit 8d0cec04ca

View File

@@ -48,11 +48,15 @@ size_t CommandListCoreFamily<gfxCoreFamily>::getReserveSshSize() {
template <GFXCORE_FAMILY gfxCoreFamily>
bool CommandListCoreFamily<gfxCoreFamily>::isInOrderNonWalkerSignalingRequired(const Event *event) const {
if (event && compactL3FlushEvent(getDcFlushRequired(event->isSignalScope()))) {
return true;
if (!event) {
return false;
}
return (!this->duplicatedInOrderCounterStorageEnabled && event && (event->isUsingContextEndOffset() || !event->isCounterBased()));
const bool flushRequired = compactL3FlushEvent(getDcFlushRequired(event->isSignalScope()));
const bool inOrderRequired = !this->duplicatedInOrderCounterStorageEnabled &&
(event->isUsingContextEndOffset() || !event->isCounterBased());
return flushRequired || inOrderRequired;
}
template <GFXCORE_FAMILY gfxCoreFamily>