2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2022-01-07 14:53:31 +00:00
|
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
2018-09-18 09:11:08 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2021-01-21 13:10:13 +01:00
|
|
|
#include "shared/test/common/mocks/mock_command_stream_receiver.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2022-11-22 13:53:59 +00:00
|
|
|
volatile TagAddressType MockCommandStreamReceiver::mockTagAddress[MockCommandStreamReceiver::tagSize];
|
2021-10-19 19:28:05 +00:00
|
|
|
|
2022-01-07 14:53:31 +00:00
|
|
|
SubmissionStatus MockCommandStreamReceiver::flush(BatchBuffer &batchBuffer, ResidencyContainer &allocationsForResidency) {
|
|
|
|
|
return SubmissionStatus::SUCCESS;
|
2017-12-21 00:45:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CompletionStamp MockCommandStreamReceiver::flushTask(
|
|
|
|
|
LinearStream &commandStream,
|
|
|
|
|
size_t commandStreamStart,
|
2022-03-28 12:55:12 +00:00
|
|
|
const IndirectHeap *dsh,
|
|
|
|
|
const IndirectHeap *ioh,
|
|
|
|
|
const IndirectHeap *ssh,
|
2022-11-22 13:53:59 +00:00
|
|
|
TaskCountType taskLevel,
|
2018-08-01 10:01:41 +02:00
|
|
|
DispatchFlags &dispatchFlags,
|
|
|
|
|
Device &device) {
|
2017-12-21 00:45:38 +01:00
|
|
|
++taskCount;
|
2018-11-26 14:04:52 +01:00
|
|
|
CompletionStamp stamp = {taskCount, taskLevel, flushStamp->peekStamp()};
|
2017-12-21 00:45:38 +01:00
|
|
|
return stamp;
|
|
|
|
|
}
|
2022-11-30 14:57:18 +00:00
|
|
|
|
|
|
|
|
CompletionStamp MockCommandStreamReceiver::flushBcsTask(LinearStream &commandStreamTask, size_t commandStreamTaskStart,
|
|
|
|
|
const DispatchBcsFlags &dispatchBcsFlags, const HardwareInfo &hwInfo) {
|
|
|
|
|
++taskCount;
|
|
|
|
|
CompletionStamp stamp = {taskCount, taskLevel, flushStamp->peekStamp()};
|
|
|
|
|
return stamp;
|
|
|
|
|
}
|