Files
compute-runtime/runtime/command_stream/command_stream_receiver_simulated_common_hw.h
Kowalczuk, Jakub 53fb222fe7 Unify AUB and TBX CSRs part 3
Move:
- getCsTraits
- initEngineMMIO
- submitLRCA
to common CSR

Change-Id: I8f172b017be2e8f7c54efc8420edd2671d99a927
2018-12-19 12:02:24 +01:00

48 lines
1.5 KiB
C++

/*
* Copyright (C) 2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "runtime/command_stream/command_stream_receiver_hw.h"
#include "runtime/gen_common/aub_mapper.h"
#include "runtime/memory_manager/memory_banks.h"
namespace AubMemDump {
struct AubStream;
}
namespace OCLRT {
class GraphicsAllocation;
template <typename GfxFamily>
class CommandStreamReceiverSimulatedCommonHw : public CommandStreamReceiverHw<GfxFamily> {
protected:
using CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiverHw;
using CommandStreamReceiverHw<GfxFamily>::osContext;
typedef typename OCLRT::AUBFamilyMapper<GfxFamily>::AUB AUB;
typedef typename AUB::MiContextDescriptorReg MiContextDescriptorReg;
public:
uint64_t getGTTBits() const {
return 0u;
}
void initGlobalMMIO();
void initAdditionalMMIO();
uint64_t getPPGTTAdditionalBits(GraphicsAllocation *gfxAllocation);
void getGTTData(void *memory, AubGTTData &data);
uint32_t getMemoryBankForGtt() const;
size_t getEngineIndex(EngineInstanceT engineInstance);
static const AubMemDump::LrcaHelper &getCsTraits(EngineInstanceT engineInstance);
void initEngineMMIO(EngineInstanceT engineInstance);
void submitLRCA(EngineInstanceT engineInstance, const MiContextDescriptorReg &contextDescriptor);
AubMemDump::AubStream *stream;
size_t gpgpuEngineIndex = EngineInstanceConstants::numGpgpuEngineInstances - 1;
protected:
MMIOList splitMMIORegisters(const std::string &registers, char delimiter);
};
} // namespace OCLRT