2018-09-26 04:47:03 +08:00
|
|
|
/*
|
2019-02-06 20:32:49 +08:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-09-26 04:47:03 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2018-09-26 07:27:29 +08:00
|
|
|
#include "runtime/command_stream/command_stream_receiver_simulated_common_hw.h"
|
2018-09-26 04:47:03 +08:00
|
|
|
#include "runtime/memory_manager/memory_banks.h"
|
2018-12-17 22:05:26 +08:00
|
|
|
#include "runtime/memory_manager/physical_address_allocator.h"
|
2018-09-26 04:47:03 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2018-09-26 04:47:03 +08:00
|
|
|
class GraphicsAllocation;
|
|
|
|
template <typename GfxFamily>
|
2018-09-26 07:27:29 +08:00
|
|
|
class CommandStreamReceiverSimulatedHw : public CommandStreamReceiverSimulatedCommonHw<GfxFamily> {
|
2018-12-03 17:05:36 +08:00
|
|
|
protected:
|
2018-09-26 07:27:29 +08:00
|
|
|
using CommandStreamReceiverSimulatedCommonHw<GfxFamily>::CommandStreamReceiverSimulatedCommonHw;
|
2018-12-03 17:05:36 +08:00
|
|
|
using CommandStreamReceiverSimulatedCommonHw<GfxFamily>::osContext;
|
2018-09-26 04:47:03 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
uint32_t getMemoryBank(GraphicsAllocation *allocation) const {
|
|
|
|
return MemoryBanks::getBank(this->deviceIndex);
|
|
|
|
}
|
2018-09-28 00:56:02 +08:00
|
|
|
int getAddressSpace(int hint) {
|
|
|
|
return AubMemDump::AddressSpaceValues::TraceNonlocal;
|
|
|
|
}
|
2018-12-17 22:05:26 +08:00
|
|
|
PhysicalAddressAllocator *createPhysicalAddressAllocator(const HardwareInfo *hwInfo) {
|
|
|
|
return new PhysicalAddressAllocator();
|
|
|
|
}
|
2019-02-06 20:32:49 +08:00
|
|
|
void writeMemoryWithAubManager(GraphicsAllocation &graphicsAllocation) override{};
|
2018-09-26 04:47:03 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|