Dont reinitialize dependencies count when debug flag is set

Change-Id: Id079bbe90c76bea1a5f5d1137a556513d5f5c2f8
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2020-04-20 20:41:25 +02:00
committed by sys_ocldev
parent e7c23a7384
commit 538774c412
2 changed files with 16 additions and 1 deletions

View File

@@ -156,6 +156,18 @@ HWTEST_F(TimestampPacketTests, givenDebugModeWhereAtomicsAreNotEmittedWhenComman
EXPECT_FALSE(tag.isCompleted());
}
HWTEST_F(TimestampPacketTests, givenDebugModeWhereAtomicsAreNotEmittedWhenInitializingTagThenDontResetDependenciesCount) {
DebugManagerStateRestore restorer;
DebugManager.flags.DisableAtomicForPostSyncs.set(true);
TimestampPacketStorage tag;
tag.incImplicitDependenciesCount();
auto currentValue = tag.implicitDependenciesCount.load();
tag.initialize();
EXPECT_EQ(currentValue, tag.implicitDependenciesCount.load());
}
HWTEST_F(TimestampPacketTests, givenTagNodeWithPacketsUsed2WhenSemaphoreAndAtomicAreProgrammedThenUseGpuAddress) {
using MI_SEMAPHORE_WAIT = typename FamilyType::MI_SEMAPHORE_WAIT;
using MI_ATOMIC = typename FamilyType::MI_ATOMIC;