mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
refactor: better conditions handling in isInOrderNonWalkerSignalingRequired
Related-to: NEO-12737 Signed-off-by: Damian Tomczak <damian.tomczak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1da94b253d
commit
8d0cec04ca
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user