2018-09-25 13:47:03 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2018 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2018-09-25 16:27:29 -07:00
|
|
|
#include "runtime/command_stream/command_stream_receiver_simulated_common_hw.h"
|
2018-09-25 13:47:03 -07:00
|
|
|
#include "runtime/memory_manager/memory_banks.h"
|
|
|
|
|
|
|
|
|
|
namespace OCLRT {
|
|
|
|
|
class GraphicsAllocation;
|
|
|
|
|
template <typename GfxFamily>
|
2018-09-25 16:27:29 -07:00
|
|
|
class CommandStreamReceiverSimulatedHw : public CommandStreamReceiverSimulatedCommonHw<GfxFamily> {
|
2018-12-03 10:05:36 +01:00
|
|
|
protected:
|
2018-09-25 16:27:29 -07:00
|
|
|
using CommandStreamReceiverSimulatedCommonHw<GfxFamily>::CommandStreamReceiverSimulatedCommonHw;
|
2018-12-03 10:05:36 +01:00
|
|
|
using CommandStreamReceiverSimulatedCommonHw<GfxFamily>::osContext;
|
2018-09-25 13:47:03 -07:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
uint32_t getMemoryBank(GraphicsAllocation *allocation) const {
|
|
|
|
|
return MemoryBanks::getBank(this->deviceIndex);
|
|
|
|
|
}
|
2018-09-27 09:56:02 -07:00
|
|
|
int getAddressSpace(int hint) {
|
|
|
|
|
return AubMemDump::AddressSpaceValues::TraceNonlocal;
|
|
|
|
|
}
|
2018-09-25 13:47:03 -07:00
|
|
|
};
|
|
|
|
|
} // namespace OCLRT
|