mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
feature: adjust ULTs for future dynamic post sync layout testing [2/2]
Related-To: NEO-7966 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3bfa14a926
commit
662146ea17
@@ -920,7 +920,7 @@ HWTEST2_F(AppendMemoryCopyXeHpAndLaterMultiPacket,
|
||||
|
||||
if (input.signalAllPackets) {
|
||||
arg.expectStoreDataImm = testEvent->getMaxPacketsCount() - arg.expectedPacketsInUse;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryCopyThreeKernels<gfxCoreFamily>(input, arg);
|
||||
@@ -1004,7 +1004,7 @@ HWTEST2_F(AppendMemoryCopyXeHpAndLaterMultiPacket,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t reminderPostSyncOps = 2;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryCopySingleKernelAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
@@ -1063,7 +1063,7 @@ HWTEST2_F(AppendMemoryCopyXeHpAndLaterSinglePacket,
|
||||
reminderPostSyncOps = 1;
|
||||
}
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryCopyThreeKernels<gfxCoreFamily>(input, arg);
|
||||
@@ -1087,7 +1087,7 @@ HWTEST2_F(AppendMemoryCopyXeHpAndLaterSinglePacket,
|
||||
reminderPostSyncOps = 1;
|
||||
}
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryCopySingleKernel<gfxCoreFamily>(input, arg);
|
||||
@@ -1111,7 +1111,7 @@ HWTEST2_F(AppendMemoryCopyXeHpAndLaterSinglePacket,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t reminderPostSyncOps = 1;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryCopyThreeKernelsAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
@@ -1203,7 +1203,7 @@ HWTEST2_F(MultiTileAppendMemoryCopyXeHpAndLaterMultiPacket,
|
||||
if (NEO::MemorySynchronizationCommands<FamilyType>::getDcFlushEnable(true, input.device->getNEODevice()->getRootDeviceEnvironment())) {
|
||||
constexpr uint32_t reminderPostSyncOps = 1;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1261,6 +1261,10 @@ HWTEST2_F(MultiTileAppendMemoryCopyXeHpAndLaterMultiPacket,
|
||||
arg.expectedPostSyncPipeControls = 1;
|
||||
arg.postSyncAddressZero = false;
|
||||
|
||||
if (NEO::ApiSpecificConfig::isDynamicPostSyncAllocLayoutEnabled()) {
|
||||
arg.expectedWalkerPostSyncOp = 1;
|
||||
}
|
||||
|
||||
input.srcPtr = reinterpret_cast<void *>(0x1231);
|
||||
input.dstPtr = reinterpret_cast<void *>(0x200002345);
|
||||
input.size = 0x100002345;
|
||||
@@ -1288,7 +1292,7 @@ HWTEST2_F(MultiTileAppendMemoryCopyXeHpAndLaterMultiPacket,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t reminderPostSyncOps = 2;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testMultiTileAppendMemoryCopySingleKernelAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
@@ -1303,6 +1307,10 @@ HWTEST2_F(MultiTileAppendMemoryCopyXeHpAndLaterMultiPacket,
|
||||
arg.expectedPostSyncPipeControls = 1;
|
||||
arg.postSyncAddressZero = false;
|
||||
|
||||
if (NEO::ApiSpecificConfig::isDynamicPostSyncAllocLayoutEnabled()) {
|
||||
arg.expectedWalkerPostSyncOp = 1;
|
||||
}
|
||||
|
||||
input.srcPtr = reinterpret_cast<void *>(0x1000);
|
||||
input.dstPtr = reinterpret_cast<void *>(0x20000000);
|
||||
input.size = 0x100000000;
|
||||
@@ -1336,7 +1344,7 @@ HWTEST2_F(MultiTileAppendMemoryCopyXeHpAndLaterSinglePacket,
|
||||
if (NEO::MemorySynchronizationCommands<FamilyType>::getDcFlushEnable(true, input.device->getNEODevice()->getRootDeviceEnvironment())) {
|
||||
constexpr uint32_t reminderPostSyncOps = 1;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1358,7 +1366,7 @@ HWTEST2_F(MultiTileAppendMemoryCopyXeHpAndLaterSinglePacket,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t partitionCount = 2;
|
||||
arg.expectStoreDataImm = (testEvent->getMaxPacketsCount() - partitionCount) / partitionCount;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testMultiTileAppendMemoryCopySingleKernel<gfxCoreFamily>(input, arg);
|
||||
@@ -1382,7 +1390,7 @@ HWTEST2_F(MultiTileAppendMemoryCopyXeHpAndLaterSinglePacket,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t reminderPostSyncOps = 1;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testMultiTileAppendMemoryCopyThreeKernelsAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
@@ -1438,6 +1446,10 @@ HWTEST2_F(MultiTileAppendMemoryCopyXeHpAndLaterSinglePacket,
|
||||
arg.expectedPostSyncPipeControls = 1;
|
||||
arg.postSyncAddressZero = false;
|
||||
|
||||
if (NEO::ApiSpecificConfig::isDynamicPostSyncAllocLayoutEnabled()) {
|
||||
arg.expectedWalkerPostSyncOp = 1;
|
||||
}
|
||||
|
||||
input.srcPtr = reinterpret_cast<void *>(0x1000);
|
||||
input.dstPtr = reinterpret_cast<void *>(0x20000000);
|
||||
input.size = 0x100000000;
|
||||
@@ -1503,7 +1515,7 @@ HWTEST2_F(AppendMemoryCopyL3CompactEventTest,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t reminderPostSyncOps = 2;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryCopyThreeKernelsAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
@@ -1551,7 +1563,7 @@ HWTEST2_F(AppendMemoryCopyL3CompactEventTest,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t reminderPostSyncOps = 2;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryCopySingleKernelAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
@@ -1637,7 +1649,7 @@ HWTEST2_F(MultiTileAppendMemoryCopyL3CompactEventTest,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t reminderPostSyncOps = 2;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testMultiTileAppendMemoryCopyThreeKernelsAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
@@ -1685,7 +1697,7 @@ HWTEST2_F(MultiTileAppendMemoryCopyL3CompactEventTest,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t reminderPostSyncOps = 2;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testMultiTileAppendMemoryCopySingleKernelAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
|
||||
@@ -812,7 +812,7 @@ HWTEST2_F(AppendFillMultiPacketEventTest,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t reminderPostSyncOps = 2;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryFillSingleKernelAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
@@ -835,7 +835,7 @@ HWTEST2_F(AppendFillSinglePacketEventTest,
|
||||
|
||||
if (input.signalAllPackets) {
|
||||
arg.expectStoreDataImm = testEvent->getMaxPacketsCount() - 1;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryFillManyImmediateKernels<gfxCoreFamily>(input, arg);
|
||||
@@ -856,7 +856,7 @@ HWTEST2_F(AppendFillSinglePacketEventTest,
|
||||
|
||||
if (input.signalAllPackets) {
|
||||
arg.expectStoreDataImm = testEvent->getMaxPacketsCount() - 1;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryFillManyKernels<gfxCoreFamily>(input, arg);
|
||||
@@ -872,7 +872,7 @@ HWTEST2_F(AppendFillSinglePacketEventTest,
|
||||
|
||||
if (input.signalAllPackets) {
|
||||
arg.expectStoreDataImm = testEvent->getMaxPacketsCount() - 1;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryFillSingleKernel<gfxCoreFamily>(input, arg);
|
||||
@@ -975,7 +975,7 @@ HWTEST2_F(MultiTileAppendFillEventMultiPacketTest,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t reminderPostSyncOps = 2;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testMultiTileAppendMemoryFillSingleKernelAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
@@ -991,6 +991,10 @@ HWTEST2_F(MultiTileAppendFillEventMultiPacketTest,
|
||||
arg.expectedPostSyncPipeControls = 1;
|
||||
arg.postSyncAddressZero = false;
|
||||
|
||||
if (NEO::ApiSpecificConfig::isDynamicPostSyncAllocLayoutEnabled()) {
|
||||
arg.expectedWalkerPostSyncOp = 1;
|
||||
}
|
||||
|
||||
input.eventPoolFlags = 0;
|
||||
|
||||
if (input.signalAllPackets) {
|
||||
@@ -1023,7 +1027,7 @@ HWTEST2_F(MultiTileAppendFillEventSinglePacketTest,
|
||||
if (NEO::MemorySynchronizationCommands<FamilyType>::getDcFlushEnable(true, input.device->getNEODevice()->getRootDeviceEnvironment())) {
|
||||
constexpr uint32_t reminderPostSyncOps = 1;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1133,7 +1137,7 @@ HWTEST2_F(AppendFillCompactL3EventTest,
|
||||
if (input.signalAllPackets) {
|
||||
constexpr uint32_t reminderPostSyncOps = 2;
|
||||
arg.expectStoreDataImm = reminderPostSyncOps;
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * testEvent->getSinglePacketSize();
|
||||
input.storeDataImmOffset = arg.expectedPacketsInUse * NEO::TimestampPackets<typename FamilyType::TimestampPacketType>::getSinglePacketSize();
|
||||
}
|
||||
|
||||
testSingleTileAppendMemoryFillSingleKernelAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
|
||||
@@ -529,6 +529,10 @@ HWTEST2_F(CommandListAppendLaunchKernelMultiTileCompactL3FlushDisabledTest,
|
||||
arg.expectedWalkerPostSyncOp = 3;
|
||||
arg.postSyncAddressZero = false;
|
||||
|
||||
if (NEO::ApiSpecificConfig::isDynamicPostSyncAllocLayoutEnabled()) {
|
||||
arg.expectedWalkerPostSyncOp = 1;
|
||||
}
|
||||
|
||||
input.eventPoolFlags = 0;
|
||||
|
||||
testAppendLaunchKernelAndL3Flush<gfxCoreFamily>(input, arg);
|
||||
|
||||
Reference in New Issue
Block a user