2018-04-04 11:34:46 +02:00
|
|
|
/*
|
2020-02-11 18:25:21 +01:00
|
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
2018-09-18 09:11:08 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
2018-04-04 11:34:46 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/helpers/flat_batch_buffer_helper.h"
|
2018-04-04 11:34:46 +02:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-04-04 11:34:46 +02:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
class FlatBatchBufferHelperHw : public FlatBatchBufferHelper {
|
|
|
|
public:
|
2018-10-11 11:19:49 +02:00
|
|
|
using FlatBatchBufferHelper::FlatBatchBufferHelper;
|
2020-07-08 10:47:28 +02:00
|
|
|
GraphicsAllocation *flattenBatchBuffer(uint32_t rootDeviceIndex, BatchBuffer &batchBuffer, size_t &sizeBatchBuffer, DispatchMode dispatchMode, DeviceBitfield deviceBitfield) override;
|
2018-04-04 11:34:46 +02:00
|
|
|
char *getIndirectPatchCommands(size_t &indirectPatchCommandsSize, std::vector<PatchInfoData> &indirectPatchInfo) override;
|
2020-02-11 18:25:21 +01:00
|
|
|
void removePipeControlData(size_t pipeControlLocationSize, void *pipeControlForNooping, const HardwareInfo &hwInfo) override;
|
2019-08-13 11:34:56 +02:00
|
|
|
void collectScratchSpacePatchInfo(uint64_t scratchAddress, uint64_t commandOffset, const LinearStream &csr) override;
|
2018-04-04 11:34:46 +02:00
|
|
|
};
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|