@@ -88,9 +88,10 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, WhenProgramInterfaceDescriptor
8888 auto usedIndirectHeapBefore = indirectHeap.getUsed ();
8989 indirectHeap.getSpace (sizeof (INTERFACE_DESCRIPTOR_DATA));
9090
91+ const uint32_t threadGroupCount = 1u ;
9192 size_t crossThreadDataSize = kernel->getCrossThreadDataSize ();
9293 HardwareCommandsHelper<FamilyType>::sendInterfaceDescriptorData (
93- indirectHeap, 0 , 0 , crossThreadDataSize, 64 , 0 , 0 , 0 , 1 , *kernel, 0 , pDevice->getPreemptionMode (), nullptr , *pDevice);
94+ indirectHeap, 0 , 0 , crossThreadDataSize, 64 , 0 , 0 , 0 , threadGroupCount, 1 , *kernel, 0 , pDevice->getPreemptionMode (), nullptr , *pDevice);
9495
9596 auto usedIndirectHeapAfter = indirectHeap.getUsed ();
9697 EXPECT_EQ (sizeof (INTERFACE_DESCRIPTOR_DATA), usedIndirectHeapAfter - usedIndirectHeapBefore);
@@ -309,6 +310,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, WhenAllocatingIndirectStateRes
309310
310311 const size_t localWorkSize = 256 ;
311312 const size_t localWorkSizes[3 ]{localWorkSize, 1 , 1 };
313+ const uint32_t threadGroupCount = 1u ;
312314
313315 auto &commandStream = cmdQ.getCS (1024 );
314316 auto pWalkerCmd = static_cast <GPGPU_WALKER *>(commandStream.getSpace (sizeof (GPGPU_WALKER)));
@@ -343,6 +345,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, WhenAllocatingIndirectStateRes
343345 kernel->getKernelStartAddress (true , kernelUsesLocalIds, isCcsUsed, false ),
344346 kernel->getKernelInfo ().getMaxSimdSize (),
345347 localWorkSizes,
348+ threadGroupCount,
346349 idToffset,
347350 interfaceDescriptorIndex,
348351 pDevice->getPreemptionMode (),
@@ -385,6 +388,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, givenKernelWithFourBindingTabl
385388 auto &ssh = cmdQ.getIndirectHeap (IndirectHeap::Type::SURFACE_STATE, 8192 );
386389 const size_t localWorkSize = 256 ;
387390 const size_t localWorkSizes[3 ]{localWorkSize, 1 , 1 };
391+ const uint32_t threadGroupCount = 1u ;
388392 uint32_t interfaceDescriptorIndex = 0 ;
389393 auto isCcsUsed = EngineHelpers::isCcs (cmdQ.getGpgpuEngine ().osContext ->getEngineType ());
390394 auto kernelUsesLocalIds = HardwareCommandsHelper<FamilyType>::kernelUsesLocalIds (*mockKernelWithInternal->mockKernel );
@@ -398,6 +402,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, givenKernelWithFourBindingTabl
398402 mockKernelWithInternal->mockKernel ->getKernelStartAddress (true , kernelUsesLocalIds, isCcsUsed, false ),
399403 mockKernelWithInternal->mockKernel ->getKernelInfo ().getMaxSimdSize (),
400404 localWorkSizes,
405+ threadGroupCount,
401406 0 ,
402407 interfaceDescriptorIndex,
403408 pDevice->getPreemptionMode (),
@@ -431,6 +436,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, givenKernelWith100BindingTable
431436 auto &ssh = cmdQ.getIndirectHeap (IndirectHeap::Type::SURFACE_STATE, 8192 );
432437 const size_t localWorkSize = 256 ;
433438 const size_t localWorkSizes[3 ]{localWorkSize, 1 , 1 };
439+ const uint32_t threadGroupCount = 1u ;
434440 uint32_t interfaceDescriptorIndex = 0 ;
435441 auto isCcsUsed = EngineHelpers::isCcs (cmdQ.getGpgpuEngine ().osContext ->getEngineType ());
436442 auto kernelUsesLocalIds = HardwareCommandsHelper<FamilyType>::kernelUsesLocalIds (*mockKernelWithInternal->mockKernel );
@@ -444,6 +450,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, givenKernelWith100BindingTable
444450 mockKernelWithInternal->mockKernel ->getKernelStartAddress (true , kernelUsesLocalIds, isCcsUsed, false ),
445451 mockKernelWithInternal->mockKernel ->getKernelInfo ().getMaxSimdSize (),
446452 localWorkSizes,
453+ threadGroupCount,
447454 0 ,
448455 interfaceDescriptorIndex,
449456 pDevice->getPreemptionMode (),
@@ -487,6 +494,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, whenSendingIndirectStateThenKe
487494 const size_t localWorkSizeY = 3 ;
488495 const size_t localWorkSizeZ = 4 ;
489496 const size_t localWorkSizes[3 ]{localWorkSizeX, localWorkSizeY, localWorkSizeZ};
497+ const uint32_t threadGroupCount = 1u ;
490498
491499 auto &commandStream = cmdQ.getCS (1024 );
492500 auto pWalkerCmd = static_cast <GPGPU_WALKER *>(commandStream.getSpace (sizeof (GPGPU_WALKER)));
@@ -523,6 +531,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, whenSendingIndirectStateThenKe
523531 mockKernel.getKernelStartAddress (true , kernelUsesLocalIds, isCcsUsed, false ),
524532 modifiedKernelInfo.getMaxSimdSize (),
525533 localWorkSizes,
534+ threadGroupCount,
526535 idToffset,
527536 interfaceDescriptorIndex,
528537 pDevice->getPreemptionMode (),
@@ -578,6 +587,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, WhenSendingIndirectStateThenBi
578587 ASSERT_NE (nullptr , kernel);
579588
580589 const size_t localWorkSizes[3 ]{256 , 1 , 1 };
590+ const uint32_t threadGroupCount = 1u ;
581591
582592 auto &commandStream = cmdQ.getCS (1024 );
583593 auto pWalkerCmd = static_cast <GPGPU_WALKER *>(commandStream.getSpace (sizeof (GPGPU_WALKER)));
@@ -613,6 +623,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, WhenSendingIndirectStateThenBi
613623 kernel->getKernelStartAddress (true , kernelUsesLocalIds, isCcsUsed, false ),
614624 kernel->getKernelInfo ().getMaxSimdSize (),
615625 localWorkSizes,
626+ threadGroupCount,
616627 0 ,
617628 interfaceDescriptorIndex,
618629 pDevice->getPreemptionMode (),
@@ -701,6 +712,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, WhenGettingBindingTableStateTh
701712 EXPECT_EQ (numSurfaces, pKernel->getNumberOfBindingTableStates ());
702713
703714 const size_t localWorkSizes[3 ]{256 , 1 , 1 };
715+ const uint32_t threadGroupCount = 1u ;
704716
705717 dsh.getSpace (sizeof (INTERFACE_DESCRIPTOR_DATA));
706718
@@ -722,6 +734,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, WhenGettingBindingTableStateTh
722734 pKernel->getKernelStartAddress (true , kernelUsesLocalIds, isCcsUsed, false ),
723735 pKernel->getKernelInfo ().getMaxSimdSize (),
724736 localWorkSizes,
737+ threadGroupCount,
725738 0 ,
726739 interfaceDescriptorIndex,
727740 pDevice->getPreemptionMode (),
@@ -847,6 +860,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, GivenKernelWithInvalidSamplerS
847860 auto &ssh = cmdQ.getIndirectHeap (IndirectHeap::Type::SURFACE_STATE, 8192 );
848861 const size_t localWorkSize = 256 ;
849862 const size_t localWorkSizes[3 ]{localWorkSize, 1 , 1 };
863+ const uint32_t threadGroupCount = 1u ;
850864 uint32_t interfaceDescriptorIndex = 0 ;
851865 auto isCcsUsed = EngineHelpers::isCcs (cmdQ.getGpgpuEngine ().osContext ->getEngineType ());
852866 auto kernelUsesLocalIds = HardwareCommandsHelper<FamilyType>::kernelUsesLocalIds (*mockKernelWithInternal->mockKernel );
@@ -863,6 +877,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, GivenKernelWithInvalidSamplerS
863877 mockKernelWithInternal->mockKernel ->getKernelStartAddress (true , kernelUsesLocalIds, isCcsUsed, false ),
864878 mockKernelWithInternal->mockKernel ->getKernelInfo ().getMaxSimdSize (),
865879 localWorkSizes,
880+ threadGroupCount,
866881 0 ,
867882 interfaceDescriptorIndex,
868883 pDevice->getPreemptionMode (),
@@ -887,6 +902,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, GivenKernelWithInvalidSamplerS
887902 mockKernelWithInternal->mockKernel ->getKernelStartAddress (true , kernelUsesLocalIds, isCcsUsed, false ),
888903 mockKernelWithInternal->mockKernel ->getKernelInfo ().getMaxSimdSize (),
889904 localWorkSizes,
905+ threadGroupCount,
890906 0 ,
891907 interfaceDescriptorIndex,
892908 pDevice->getPreemptionMode (),
@@ -909,6 +925,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, GivenKernelWithSamplersWhenInd
909925
910926 CommandQueueHw<FamilyType> cmdQ (nullptr , pClDevice, 0 , false );
911927 const size_t localWorkSizes[3 ]{1 , 1 , 1 };
928+ const uint32_t threadGroupCount = 1u ;
912929
913930 auto &commandStream = cmdQ.getCS (1024 );
914931 auto pWalkerCmd = static_cast <GPGPU_WALKER *>(commandStream.getSpace (sizeof (GPGPU_WALKER)));
@@ -957,6 +974,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HardwareCommandsTest, GivenKernelWithSamplersWhenInd
957974 mockKernelWithInternal->mockKernel ->getKernelStartAddress (true , kernelUsesLocalIds, isCcsUsed, false ),
958975 8 ,
959976 localWorkSizes,
977+ threadGroupCount,
960978 interfaceDescriptorTableOffset,
961979 interfaceDescriptorIndex,
962980 pDevice->getPreemptionMode (),
0 commit comments