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