Update mock dispatch kernel encoder

Releated-To: NEO-4568

Change-Id: I0e0c5308d7cc73a0295ec094001d75bb08f4ac0f
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2020-08-04 14:18:31 +02:00
committed by sys_ocldev
parent 57386c11f9
commit 0abf2b20af
3 changed files with 4 additions and 3 deletions

View File

@@ -34,7 +34,6 @@ void MockDispatchKernelEncoder::expectAnyMockFunctionCall() {
EXPECT_CALL(*this, getSlmTotalSize()).Times(::testing::AnyNumber());
EXPECT_CALL(*this, getThreadExecutionMask()).Times(::testing::AnyNumber());
EXPECT_CALL(*this, getNumThreadsPerThreadGroup()).Times(::testing::AnyNumber());
EXPECT_CALL(*this, getPerThreadDataSizeForWholeThreadGroup()).Times(::testing::AnyNumber());
EXPECT_CALL(*this, getSurfaceStateHeapData()).Times(::testing::AnyNumber());

View File

@@ -31,7 +31,6 @@ struct MockDispatchKernelEncoder : public DispatchKernelEncoderI {
MOCK_METHOD(uint32_t, getCrossThreadDataSize, (), (const, override));
MOCK_METHOD(uint32_t, getThreadExecutionMask, (), (const, override));
MOCK_METHOD(uint32_t, getNumThreadsPerThreadGroup, (), (const, override));
MOCK_METHOD(const uint8_t *, getPerThreadData, (), (const, override));
MOCK_METHOD(uint32_t, getPerThreadDataSize, (), (const, override));
@@ -49,6 +48,9 @@ struct MockDispatchKernelEncoder : public DispatchKernelEncoderI {
uint32_t getRequiredWorkgroupOrder() const override {
return requiredWalkGroupOrder;
}
uint32_t getNumThreadsPerThreadGroup() const override {
return 1;
}
void expectAnyMockFunctionCall();