Add extra parameters to EncodeComputeMode::adjustComputeMode() method

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
This commit is contained in:
Igor Venevtsev
2021-03-29 17:47:53 +00:00
committed by Compute-Runtime-Automation
parent 4808f663b6
commit bd32518d31
12 changed files with 32 additions and 22 deletions

View File

@@ -32,7 +32,7 @@ GEN12LPTEST_F(CommandEncoderTest, givenAdjustStateComputeModeStateComputeModeSho
auto usedSpaceBefore = cmdContainer.getCommandStream()->getUsed();
// Adjust the State Compute Mode which sets FORCE_NON_COHERENT_FORCE_GPU_NON_COHERENT
EncodeStates<FamilyType>::adjustStateComputeMode(*cmdContainer.getCommandStream(), cmdContainer.lastSentNumGrfRequired, nullptr, false, false);
EncodeStates<FamilyType>::adjustStateComputeMode(*cmdContainer.getCommandStream(), cmdContainer.lastSentNumGrfRequired, nullptr, false, false, false, false);
auto usedSpaceAfter = cmdContainer.getCommandStream()->getUsed();
ASSERT_GT(usedSpaceAfter, usedSpaceBefore);

View File

@@ -52,7 +52,6 @@ struct MockDispatchKernelEncoder : public DispatchKernelEncoderI {
uint32_t getNumThreadsPerThreadGroup() const override {
return 1;
}
void expectAnyMockFunctionCall();
::testing::NiceMock<MockGraphicsAllocation> mockAllocation;