2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-02-27 18:39:32 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2018-09-18 15:11:08 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
#include "unit_tests/mocks/mock_csr.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "runtime/os_interface/os_interface.h"
|
|
|
|
|
2018-11-26 21:04:52 +08:00
|
|
|
FlushStamp MockCommandStreamReceiver::flush(BatchBuffer &batchBuffer, ResidencyContainer &allocationsForResidency) {
|
2017-12-21 07:45:38 +08:00
|
|
|
FlushStamp stamp = 0;
|
|
|
|
return stamp;
|
|
|
|
}
|
|
|
|
|
|
|
|
CompletionStamp MockCommandStreamReceiver::flushTask(
|
|
|
|
LinearStream &commandStream,
|
|
|
|
size_t commandStreamStart,
|
2018-04-17 19:50:50 +08:00
|
|
|
const IndirectHeap &dsh,
|
|
|
|
const IndirectHeap &ioh,
|
|
|
|
const IndirectHeap &ssh,
|
2017-12-21 07:45:38 +08:00
|
|
|
uint32_t taskLevel,
|
2018-08-01 16:01:41 +08:00
|
|
|
DispatchFlags &dispatchFlags,
|
|
|
|
Device &device) {
|
2017-12-21 07:45:38 +08:00
|
|
|
++taskCount;
|
2018-11-26 21:04:52 +08:00
|
|
|
CompletionStamp stamp = {taskCount, taskLevel, flushStamp->peekStamp()};
|
2017-12-21 07:45:38 +08:00
|
|
|
return stamp;
|
|
|
|
}
|
|
|
|
|
|
|
|
void MockCommandStreamReceiver::setOSInterface(OSInterface *osInterface) {
|
2018-08-10 17:07:17 +08:00
|
|
|
this->osInterface = osInterface;
|
2018-08-01 16:01:41 +08:00
|
|
|
}
|