@@ -765,7 +765,9 @@ HWTEST_F(InOrderCmdListTests, whenCreatingInOrderExecInfoThenReuseDeviceAlloc) {
765765 auto immCmdList2 = createImmCmdList<FamilyType::gfxCoreFamily>();
766766 auto gpuVa2 = immCmdList2->inOrderExecInfo ->getBaseDeviceAddress ();
767767
768- EXPECT_EQ (alignUp (gpuVa1 + (device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset () * 2 ), MemoryConstants::cacheLineSize), gpuVa2);
768+ auto offset = alignUp (device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset (), MemoryConstants::cacheLineSize * 4 ) * 2 ;
769+
770+ EXPECT_EQ (alignUp (gpuVa1 + offset, MemoryConstants::cacheLineSize), gpuVa2);
769771
770772 // allocation from the same allocator
771773 EXPECT_EQ (immCmdList1->inOrderExecInfo ->getDeviceCounterAllocation (), tag->getBaseGraphicsAllocation ()->getGraphicsAllocation (0 ));
@@ -4660,7 +4662,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, InOrderCmdListTests, givenInOrderModeWhenProgrammin
46604662 expectedCounter += static_cast <uint64_t >(std::numeric_limits<uint32_t >::max ()) - 1 ;
46614663 } else {
46624664 expectedCounter = 1 ;
4663- expectedOffset = useZeroOffset ? 0 : device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset ();
4665+ expectedOffset = useZeroOffset ? 0 : alignUp ( device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset (), MemoryConstants::cacheLineSize * 4 );
46644666 }
46654667
46664668 EXPECT_EQ (expectedCounter, immCmdList->inOrderExecInfo ->getCounterValue ());
@@ -4740,7 +4742,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, InOrderCmdListTests, givenInOrderModeWhenProgrammin
47404742 EXPECT_EQ (immCmdList->inOrderExecInfo ->getBaseDeviceAddress (), postSync.getDestinationAddress ());
47414743 }
47424744 } else {
4743- offset = device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset ();
4745+ offset = alignUp ( device->getL0GfxCoreHelper ().getImmediateWritePostSyncOffset (), MemoryConstants::cacheLineSize * 4 );
47444746 if (isCompactEvent) {
47454747 auto pcItor = find<PIPE_CONTROL *>(walkerItor, cmdList.end ());
47464748 ASSERT_NE (cmdList.end (), pcItor);
0 commit comments