2018-01-19 17:00:51 +08:00
|
|
|
/*
|
2019-01-10 16:37:56 +08:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-01-19 17:00:51 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-01-19 17:00:51 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "runtime/command_stream/command_stream_receiver.h"
|
2019-02-11 23:49:23 +08:00
|
|
|
#include <memory>
|
2018-01-19 17:00:51 +08:00
|
|
|
|
|
|
|
namespace OCLRT {
|
|
|
|
|
|
|
|
template <typename BaseCSR>
|
|
|
|
class CommandStreamReceiverWithAUBDump : public BaseCSR {
|
2018-12-03 17:05:36 +08:00
|
|
|
protected:
|
|
|
|
using BaseCSR::osContext;
|
|
|
|
|
2018-01-19 17:00:51 +08:00
|
|
|
public:
|
2018-10-11 17:19:49 +08:00
|
|
|
using BaseCSR::createMemoryManager;
|
2019-02-06 00:38:57 +08:00
|
|
|
CommandStreamReceiverWithAUBDump(const HardwareInfo &hwInfoIn, const std::string &baseName, ExecutionEnvironment &executionEnvironment);
|
2018-01-19 17:00:51 +08:00
|
|
|
|
|
|
|
CommandStreamReceiverWithAUBDump(const CommandStreamReceiverWithAUBDump &) = delete;
|
|
|
|
CommandStreamReceiverWithAUBDump &operator=(const CommandStreamReceiverWithAUBDump &) = delete;
|
|
|
|
|
2018-11-26 21:04:52 +08:00
|
|
|
FlushStamp flush(BatchBuffer &batchBuffer, ResidencyContainer &allocationsForResidency) override;
|
2018-09-28 01:55:09 +08:00
|
|
|
void makeNonResident(GraphicsAllocation &gfxAllocation) override;
|
2018-01-19 17:00:51 +08:00
|
|
|
|
2018-06-13 02:33:03 +08:00
|
|
|
void activateAubSubCapture(const MultiDispatchInfo &dispatchInfo) override;
|
2019-01-10 16:37:56 +08:00
|
|
|
void setupContext(OsContext &osContext) override;
|
2018-06-13 02:33:03 +08:00
|
|
|
|
2019-02-11 23:49:23 +08:00
|
|
|
std::unique_ptr<CommandStreamReceiver> aubCSR;
|
2018-01-19 17:00:51 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace OCLRT
|