mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
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:
committed by
sys_ocldev
parent
e7c23a7384
commit
538774c412
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user