@@ -762,7 +762,9 @@ HWTEST_F(InOrderCmdListTests, whenCreatingInOrderExecInfoThenReuseDeviceAlloc) {
762762 auto immCmdList2 = createImmCmdList<FamilyType::gfxCoreFamily>();
763763 auto gpuVa2 = immCmdList2->inOrderExecInfo ->getBaseDeviceAddress ();
764764
765- EXPECT_EQ (alignUp (gpuVa1 + (device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset () * 2 ), MemoryConstants::cacheLineSize), gpuVa2);
765+ auto offset = alignUp (device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset (), MemoryConstants::cacheLineSize * 4 ) * 2 ;
766+
767+ EXPECT_EQ (alignUp (gpuVa1 + offset, MemoryConstants::cacheLineSize), gpuVa2);
766768
767769 // allocation from the same allocator
768770 EXPECT_EQ (immCmdList1->inOrderExecInfo ->getDeviceCounterAllocation (), tag->getBaseGraphicsAllocation ()->getGraphicsAllocation (0 ));
@@ -4657,7 +4659,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, InOrderCmdListTests, givenInOrderModeWhenProgrammin
46574659 expectedCounter += static_cast <uint64_t >(std::numeric_limits<uint32_t >::max ()) - 1 ;
46584660 } else {
46594661 expectedCounter = 1 ;
4660- expectedOffset = useZeroOffset ? 0 : device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset ();
4662+ expectedOffset = useZeroOffset ? 0 : alignUp ( device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset (), MemoryConstants::cacheLineSize * 4 );
46614663 }
46624664
46634665 EXPECT_EQ (expectedCounter, immCmdList->inOrderExecInfo ->getCounterValue ());
@@ -4737,7 +4739,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, InOrderCmdListTests, givenInOrderModeWhenProgrammin
47374739 EXPECT_EQ (immCmdList->inOrderExecInfo ->getBaseDeviceAddress (), postSync.getDestinationAddress ());
47384740 }
47394741 } else {
4740- offset = device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset ();
4742+ offset = alignUp ( device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset (), MemoryConstants::cacheLineSize * 4 );
47414743 if (isCompactEvent) {
47424744 auto pcItor = find<PIPE_CONTROL *>(walkerItor, cmdList.end ());
47434745 ASSERT_NE (cmdList.end (), pcItor);
0 commit comments