diff --git a/level_zero/core/source/cmdlist/cmdlist_hw_base.inl b/level_zero/core/source/cmdlist/cmdlist_hw_base.inl index d13c287327..87a2d25e14 100644 --- a/level_zero/core/source/cmdlist/cmdlist_hw_base.inl +++ b/level_zero/core/source/cmdlist/cmdlist_hw_base.inl @@ -114,6 +114,7 @@ ze_result_t CommandListCoreFamily::appendLaunchKernelWithParams(z neoDevice, commandListPreemptionMode, this->containsStatelessUncachedResource, + false, partitionCount, internalUsage); diff --git a/shared/source/command_container/command_encoder.h b/shared/source/command_container/command_encoder.h index 896a04ac3b..5ed4d5d49e 100644 --- a/shared/source/command_container/command_encoder.h +++ b/shared/source/command_container/command_encoder.h @@ -41,6 +41,7 @@ struct EncodeDispatchKernel { Device *device, PreemptionMode preemptionMode, bool &requiresUncachedMocs, + bool useGlobalAtomics, uint32_t &partitionCount, bool isInternal); @@ -212,7 +213,7 @@ template struct EncodeStateBaseAddress { using STATE_BASE_ADDRESS = typename GfxFamily::STATE_BASE_ADDRESS; static void encode(CommandContainer &container, STATE_BASE_ADDRESS &sbaCmd); - static void encode(CommandContainer &container, STATE_BASE_ADDRESS &sbaCmd, uint32_t statelessMocsIndex); + static void encode(CommandContainer &container, STATE_BASE_ADDRESS &sbaCmd, uint32_t statelessMocsIndex, bool useGlobalAtomics); }; template diff --git a/shared/source/command_container/command_encoder_bdw_plus.inl b/shared/source/command_container/command_encoder_bdw_plus.inl index 20091b63d1..0577884fd3 100644 --- a/shared/source/command_container/command_encoder_bdw_plus.inl +++ b/shared/source/command_container/command_encoder_bdw_plus.inl @@ -25,8 +25,8 @@ namespace NEO { template void EncodeDispatchKernel::encode(CommandContainer &container, const void *pThreadGroupDimensions, bool isIndirect, bool isPredicate, DispatchKernelEncoderI *dispatchInterface, - uint64_t eventAddress, bool isTimestampEvent, bool L3FlushEnable, Device *device, PreemptionMode preemptionMode, bool &requiresUncachedMocs, - uint32_t &partitionCount, bool isInternal) { + uint64_t eventAddress, bool isTimestampEvent, bool L3FlushEnable, Device *device, PreemptionMode preemptionMode, + bool &requiresUncachedMocs, bool useGlobalAtomics, uint32_t &partitionCount, bool isInternal) { using MEDIA_STATE_FLUSH = typename Family::MEDIA_STATE_FLUSH; using MEDIA_INTERFACE_DESCRIPTOR_LOAD = typename Family::MEDIA_INTERFACE_DESCRIPTOR_LOAD; @@ -168,7 +168,7 @@ void EncodeDispatchKernel::encode(CommandContainer &container, auto gmmHelper = container.getDevice()->getGmmHelper(); uint32_t statelessMocsIndex = requiresUncachedMocs ? (gmmHelper->getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER_CACHELINE_MISALIGNED) >> 1) : (gmmHelper->getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER) >> 1); - EncodeStateBaseAddress::encode(container, sba, statelessMocsIndex); + EncodeStateBaseAddress::encode(container, sba, statelessMocsIndex, false); container.setDirtyStateForAllHeaps(false); requiresUncachedMocs = false; } @@ -351,11 +351,11 @@ template void EncodeStateBaseAddress::encode(CommandContainer &container, STATE_BASE_ADDRESS &sbaCmd) { auto gmmHelper = container.getDevice()->getRootDeviceEnvironment().getGmmHelper(); uint32_t statelessMocsIndex = (gmmHelper->getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER) >> 1); - EncodeStateBaseAddress::encode(container, sbaCmd, statelessMocsIndex); + EncodeStateBaseAddress::encode(container, sbaCmd, statelessMocsIndex, false); } template -void EncodeStateBaseAddress::encode(CommandContainer &container, STATE_BASE_ADDRESS &sbaCmd, uint32_t statelessMocsIndex) { +void EncodeStateBaseAddress::encode(CommandContainer &container, STATE_BASE_ADDRESS &sbaCmd, uint32_t statelessMocsIndex, bool useGlobalAtomics) { EncodeWA::encodeAdditionalPipelineSelect(*container.getDevice(), *container.getCommandStream(), true); auto gmmHelper = container.getDevice()->getGmmHelper(); @@ -376,7 +376,7 @@ void EncodeStateBaseAddress::encode(CommandContainer &container, STATE_B gmmHelper, false, MemoryCompressionState::NotApplicable, - false, + useGlobalAtomics, 1u); auto pCmd = reinterpret_cast(container.getCommandStream()->getSpace(sizeof(STATE_BASE_ADDRESS))); diff --git a/shared/test/unit_test/encoders/test_encode_dispatch_kernel.cpp b/shared/test/unit_test/encoders/test_encode_dispatch_kernel.cpp index 0eb0bbf8d1..fd1c735bb3 100644 --- a/shared/test/unit_test/encoders/test_encode_dispatch_kernel.cpp +++ b/shared/test/unit_test/encoders/test_encode_dispatch_kernel.cpp @@ -50,7 +50,7 @@ HWTEST_F(CommandEncodeStatesTest, givenDispatchInterfaceWhenDispatchKernelThenWa uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); GenCmdList commands; CmdParse::parseCommandBuffer(commands, ptrOffset(cmdContainer->getCommandStream()->getCpuBase(), 0), cmdContainer->getCommandStream()->getUsed()); @@ -82,6 +82,7 @@ HWTEST_F(CommandEncodeStatesUncachedMocsTests, whenEncodingDispatchKernelWithUnc pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, + false, partitionCount, false); EXPECT_FALSE(requiresUncachedMocs); @@ -121,6 +122,7 @@ HWTEST_F(CommandEncodeStatesUncachedMocsTests, whenEncodingDispatchKernelWithUnc pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, + false, partitionCount, false); EXPECT_FALSE(requiresUncachedMocs); @@ -160,6 +162,7 @@ HWTEST_F(CommandEncodeStatesUncachedMocsTests, whenEncodingDispatchKernelWithNon pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, + false, partitionCount, false); EXPECT_FALSE(requiresUncachedMocs); @@ -199,6 +202,7 @@ HWTEST_F(CommandEncodeStatesUncachedMocsTests, whenEncodingDispatchKernelWithNon pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, + false, partitionCount, false); EXPECT_FALSE(requiresUncachedMocs); @@ -236,6 +240,7 @@ HWTEST_F(CommandEncodeStatesUncachedMocsTests, whenEncodingDispatchKernelWithNon pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, + false, partitionCount, false); EXPECT_FALSE(requiresUncachedMocs); @@ -262,7 +267,7 @@ HWTEST_F(CommandEncodeStatesTest, givenCommandContainerWithUsedAvailableSizeWhen uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto cmdBuffersCountAfter = cmdContainer->getCmdBufferAllocations().size(); @@ -280,7 +285,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, givenSlmTotalSizeGraterThan uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto interfaceDescriptorData = static_cast(cmdContainer->getIddBlock()); @@ -301,7 +306,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, givenSlmTotalSizeEqualZeroW uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto interfaceDescriptorData = static_cast(cmdContainer->getIddBlock()); @@ -337,7 +342,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, givenOneBindingTableEntryWh uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto interfaceDescriptorData = static_cast(cmdContainer->getIddBlock()); @@ -369,7 +374,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, giveNumBindingTableZeroWhen uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto interfaceDescriptorData = static_cast(cmdContainer->getIddBlock()); @@ -399,7 +404,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, giveNumSamplersOneWhenDispa uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto interfaceDescriptorData = static_cast(cmdContainer->getIddBlock()); @@ -435,7 +440,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, giveNumSamplersZeroWhenDisp uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto interfaceDescriptorData = static_cast(cmdContainer->getIddBlock()); @@ -461,7 +466,7 @@ HWTEST_F(CommandEncodeStatesTest, givenIndirectOffsetsCountsWhenDispatchingKerne uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, true, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); GenCmdList commands; CmdParse::parseCommandBuffer(commands, ptrOffset(cmdContainer->getCommandStream()->getCpuBase(), 0), cmdContainer->getCommandStream()->getUsed()); @@ -490,7 +495,7 @@ HWTEST_F(CommandEncodeStatesTest, givenIndarectOffsetsSizeWhenDispatchingKernelT uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, true, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); GenCmdList commands; CmdParse::parseCommandBuffer(commands, ptrOffset(cmdContainer->getCommandStream()->getCpuBase(), 0), cmdContainer->getCommandStream()->getUsed()); @@ -531,7 +536,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, givenForceBtpPrefetchModeDe uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto dsh = cmdContainer->getIndirectHeap(HeapType::DYNAMIC_STATE); @@ -564,7 +569,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, givenForceBtpPrefetchModeDe uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto dsh = cmdContainer->getIndirectHeap(HeapType::DYNAMIC_STATE); @@ -592,7 +597,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, givenForceBtpPrefetchModeDe uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto dsh = cmdContainer->getIndirectHeap(HeapType::DYNAMIC_STATE); @@ -624,7 +629,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, givenCleanHeapsAndSlmNotCha uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); GenCmdList commands; CmdParse::parseCommandBuffer(commands, ptrOffset(cmdContainer->getCommandStream()->getCpuBase(), 0), cmdContainer->getCommandStream()->getUsed()); @@ -644,7 +649,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, givenCleanHeapsAndSlmNotCha uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); GenCmdList commands; CmdParse::parseCommandBuffer(commands, ptrOffset(cmdContainer->getCommandStream()->getCpuBase(), 0), cmdContainer->getCommandStream()->getUsed()); @@ -672,7 +677,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, givenDirtyHeapsAndSlmNotCha uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); GenCmdList commands; CmdParse::parseCommandBuffer(commands, ptrOffset(cmdContainer->getCommandStream()->getCpuBase(), 0), cmdContainer->getCommandStream()->getUsed()); @@ -696,7 +701,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, givenDirtyHeapsWhenDispatch uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); GenCmdList cmdList; CmdParse::parseCommandBuffer(cmdList, ptrOffset(cmdContainer->getCommandStream()->getCpuBase(), 0), cmdContainer->getCommandStream()->getUsed()); @@ -737,7 +742,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, givenCleanHeapsAndSlmChange uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); GenCmdList commands; CmdParse::parseCommandBuffer(commands, ptrOffset(cmdContainer->getCommandStream()->getCpuBase(), 0), cmdContainer->getCommandStream()->getUsed()); @@ -762,7 +767,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncodeStatesTest, giveNextIddInBlockZeorWhenD uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); GenCmdList commands; CmdParse::parseCommandBuffer(commands, ptrOffset(cmdContainer->getCommandStream()->getCpuBase(), 0), cmdContainer->getCommandStream()->getUsed()); @@ -799,7 +804,7 @@ HWTEST2_F(EncodeDispatchKernelTest, givenBindfulKernelWhenDispatchingKernelThenS uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto usedAfter = cmdContainer->getIndirectHeap(HeapType::SURFACE_STATE)->getUsed(); @@ -830,7 +835,7 @@ HWTEST2_F(EncodeDispatchKernelTest, givenBindlessKernelWhenDispatchingKernelThen uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto usedAfter = cmdContainer->getIndirectHeap(HeapType::SURFACE_STATE)->getUsed(); @@ -891,7 +896,7 @@ HWTEST_F(EncodeDispatchKernelTest, givenNonBindlessOrStatelessArgWhenDispatching uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); EXPECT_EQ(pattern, *patchLocation); @@ -918,7 +923,7 @@ HWTEST_F(EncodeDispatchKernelTest, givenNonBindlessOrStatelessArgWhenDispatching memset(ioh->getCpuBase(), 0, ioh->getMaxAvailableSpace()); EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); EXPECT_THAT(ptrOffset(ioh->getCpuBase(), iohOffset), MemoryZeroed(ioh->getMaxAvailableSpace() - iohOffset)); } @@ -1149,7 +1154,7 @@ HWTEST_F(BindlessCommandEncodeStatesTesttt, givenBindlessKernelWhenBindlessModeE uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*commandContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); EXPECT_EQ(commandContainer->getIndirectHeap(HeapType::SURFACE_STATE), nullptr); } @@ -1184,7 +1189,7 @@ HWTEST_F(BindlessCommandEncodeStatesTesttt, givenBindfulKernelWhenBindlessModeEn uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*commandContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); EXPECT_NE(commandContainer->getIndirectHeap(HeapType::SURFACE_STATE), nullptr); } @@ -1219,16 +1224,16 @@ HWTEST_F(BindlessCommandEncodeStatesTesttt, givenBindlessModeEnabledWhenDispatch uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*commandContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto sshBefore = commandContainer->getIndirectHeap(HeapType::SURFACE_STATE); EncodeDispatchKernel::encode(*commandContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); EncodeDispatchKernel::encode(*commandContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); auto sshAfter = commandContainer->getIndirectHeap(HeapType::SURFACE_STATE); EncodeDispatchKernel::encode(*commandContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); EXPECT_EQ(sshBefore, sshAfter); } @@ -1258,7 +1263,7 @@ HWTEST_F(BindlessCommandEncodeStatesTest, givenGlobalBindlessHeapsWhenDispatchin uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); EXPECT_NE(std::find(cmdContainer->getResidencyContainer().begin(), cmdContainer->getResidencyContainer().end(), pDevice->getBindlessHeapsHelper()->getHeap(BindlessHeapsHelper::GLOBAL_DSH)->getGraphicsAllocation()), cmdContainer->getResidencyContainer().end()); } @@ -1288,7 +1293,7 @@ HWTEST_F(BindlessCommandEncodeStatesTest, givenBindlessModeDisabledelWithSampler uint32_t partitionCount = 0; EncodeDispatchKernel::encode(*cmdContainer.get(), dims, false, false, dispatchInterface.get(), 0, false, false, - pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, partitionCount, false); + pDevice, NEO::PreemptionMode::Disabled, requiresUncachedMocs, false, partitionCount, false); EXPECT_EQ(std::find(cmdContainer->getResidencyContainer().begin(), cmdContainer->getResidencyContainer().end(), pDevice->getBindlessHeapsHelper()->getHeap(BindlessHeapsHelper::GLOBAL_DSH)->getGraphicsAllocation()), cmdContainer->getResidencyContainer().end()); }