mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Change-Id: I57fd98f4227b6d03430db6b96cfd21dd726919a3 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
27 lines
692 B
C++
27 lines
692 B
C++
/*
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/test/unit_test/mocks/mock_command_stream_receiver.h"
|
|
|
|
bool MockCommandStreamReceiver::flush(BatchBuffer &batchBuffer, ResidencyContainer &allocationsForResidency) {
|
|
return true;
|
|
}
|
|
|
|
CompletionStamp MockCommandStreamReceiver::flushTask(
|
|
LinearStream &commandStream,
|
|
size_t commandStreamStart,
|
|
const IndirectHeap &dsh,
|
|
const IndirectHeap &ioh,
|
|
const IndirectHeap &ssh,
|
|
uint32_t taskLevel,
|
|
DispatchFlags &dispatchFlags,
|
|
Device &device) {
|
|
++taskCount;
|
|
CompletionStamp stamp = {taskCount, taskLevel, flushStamp->peekStamp()};
|
|
return stamp;
|
|
}
|