|
7 | 7 |
|
8 | 8 | #include "shared/source/gmm_helper/gmm_helper.h"
|
9 | 9 | #include "shared/source/helpers/blit_commands_helper.h"
|
| 10 | +#include "shared/source/helpers/compiler_product_helper.h" |
10 | 11 | #include "shared/source/helpers/gfx_core_helper.h"
|
11 | 12 | #include "shared/test/common/cmd_parse/gen_cmd_parse.h"
|
12 | 13 | #include "shared/test/common/libult/ult_command_stream_receiver.h"
|
@@ -363,8 +364,9 @@ HWTEST2_F(CommandListCreate, givenCommandListWhenPageFaultCopyCalledThenappendPa
|
363 | 364 | MemoryManager::maxOsContextCount,
|
364 | 365 | canonizedGpuAddress);
|
365 | 366 | cmdList.appendPageFaultCopy(&mockAllocationDst, &mockAllocationSrc, size, false);
|
| 367 | + |
366 | 368 | EXPECT_EQ(cmdList.appendMemoryCopyKernelWithGACalledTimes, 1u);
|
367 |
| - EXPECT_EQ(cmdList.appendMemoryCopyKernelWithGAStatelessCalledTimes, 0u); |
| 369 | + EXPECT_EQ(cmdList.appendMemoryCopyKernelWithGAStatelessCalledTimes, device->getNEODevice()->getCompilerProductHelper().isForceToStatelessRequired() ? 1u : 0u); |
368 | 370 | }
|
369 | 371 |
|
370 | 372 | HWTEST2_F(CommandListAppend, givenCommandListWhenPageFaultCopyCalledWithCopyEngineThenappendPageFaultCopyWithappendMemoryCopyKernelWithGACalled, MatchAny) {
|
@@ -429,7 +431,7 @@ HWTEST2_F(CommandListAppend, givenCommandListWhenPageFaultCopyCalledThenappendPa
|
429 | 431 | canonizedGpuAddress);
|
430 | 432 | cmdList.appendPageFaultCopy(&mockAllocationDst, &mockAllocationSrc, size, false);
|
431 | 433 | EXPECT_EQ(cmdList.appendMemoryCopyKernelWithGACalledTimes, 2u);
|
432 |
| - EXPECT_EQ(cmdList.appendMemoryCopyKernelWithGAStatelessCalledTimes, 0u); |
| 434 | + EXPECT_EQ(cmdList.appendMemoryCopyKernelWithGAStatelessCalledTimes, device->getNEODevice()->getCompilerProductHelper().isForceToStatelessRequired() ? 2u : 0u); |
433 | 435 | }
|
434 | 436 |
|
435 | 437 | HWTEST2_F(CommandListAppend, givenCommandListWhenPageFaultCopyCalledAndErrorOnMidCopyThenappendPageFaultCopyWithappendMemoryCopyKernelWithGACalledForMiddleIsCalled, MatchAny) {
|
@@ -462,7 +464,7 @@ HWTEST2_F(CommandListAppend, givenCommandListWhenPageFaultCopyCalledAndErrorOnMi
|
462 | 464 | canonizedGpuAddress);
|
463 | 465 | cmdList.appendPageFaultCopy(&mockAllocationDst, &mockAllocationSrc, size, false);
|
464 | 466 | EXPECT_EQ(cmdList.appendMemoryCopyKernelWithGACalledTimes, 1u);
|
465 |
| - EXPECT_EQ(cmdList.appendMemoryCopyKernelWithGAStatelessCalledTimes, 0u); |
| 467 | + EXPECT_EQ(cmdList.appendMemoryCopyKernelWithGAStatelessCalledTimes, device->getNEODevice()->getCompilerProductHelper().isForceToStatelessRequired() ? 1u : 0u); |
466 | 468 | }
|
467 | 469 |
|
468 | 470 | HWTEST2_F(CommandListAppend, givenCommandListWhenPageFaultCopyCalledWithCopyEngineThenappendPageFaultCopyWithappendMemoryCopyCalledOnlyOnce, MatchAny) {
|
|
0 commit comments