Files
compute-runtime/shared/test/common/helpers/batch_buffer_helper.h
Zbigniew Zdanowicz 40e169f8e2 refactor: add batch buffer attribute for explicit monitor fence dispatch
Related-To: NEO-8395

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2023-09-20 12:18:32 +02:00

38 lines
1.6 KiB
C++

/*
* Copyright (C) 2022-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/command_stream/submissions_aggregator.h"
using namespace NEO;
struct BatchBufferHelper {
static BatchBuffer createDefaultBatchBuffer(GraphicsAllocation *commandBufferAllocation, LinearStream *stream, size_t usedSize, size_t chainedBatchBufferStartOffset) {
return BatchBuffer(
commandBufferAllocation, // commandBufferAllocation
0, // startOffset
chainedBatchBufferStartOffset, // chainedBatchBufferStartOffset
0, // taskStartAddress
nullptr, // chainedBatchBuffer
false, // lowPriority
QueueThrottle::MEDIUM, // throttle
QueueSliceCount::defaultSliceCount, // sliceCount
usedSize, // usedSize
stream, // stream
nullptr, // endCmdPtr
0, // numCsrClients
false, // hasStallingCmds
false, // hasRelaxedOrderingDependencies
false // dispatchMonitorFence
);
}
static BatchBuffer createDefaultBatchBuffer(GraphicsAllocation *commandBufferAllocation, LinearStream *stream, size_t usedSize) {
return createDefaultBatchBuffer(commandBufferAllocation, stream, usedSize, 0);
}
};