feature: adding flag to block dispatch implicit scaling commands

- this feature is part of making compute walker command view
- compute walker is programed for implicit scaling but not dispatched
- together with new flag, comes the refactor to reduce number of arguments

Related-To: NEO-11972

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2024-07-29 13:37:30 +00:00
committed by Compute-Runtime-Automation
parent 2b71ffa7ce
commit b33fe6ccf1
16 changed files with 371 additions and 221 deletions

View File

@@ -720,7 +720,20 @@ HWTEST2_F(CommandEncoderTests, whenAskingForImplicitScalingValuesThenAlwaysRetur
EXPECT_EQ(0u, ImplicitScalingDispatch<FamilyType>::template getSize<WalkerType>(false, false, deviceBitField, vec3, vec3));
void *ptr = nullptr;
ImplicitScalingDispatch<FamilyType>::dispatchCommands(linearStream, walkerCmd, &ptr, deviceBitField, RequiredPartitionDim::x, partitionCount, false, false, false, false, 0, *defaultHwInfo);
ImplicitScalingDispatchCommandArgs args{
0, // workPartitionAllocationGpuVa
defaultHwInfo.get(), // hwInfo
&ptr, // outWalkerPtr
RequiredPartitionDim::x, // requiredPartitionDim
partitionCount, // partitionCount
false, // useSecondaryBatchBuffer
false, // apiSelfCleanup
false, // dcFlush
false, // forceExecutionOnSingleTile
false}; // blockDispatchToCommandBuffer
ImplicitScalingDispatch<FamilyType>::dispatchCommands(linearStream, walkerCmd, deviceBitField, args);
EXPECT_EQ(0u, linearStream.getUsed());
EXPECT_TRUE(ImplicitScalingDispatch<FamilyType>::getPipeControlStallRequired());