27 lines
772 B
C++
27 lines
772 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/command_stream/command_stream_receiver_simulated_common_hw.h"
|
|
#include "runtime/memory_manager/memory_banks.h"
|
|
|
|
namespace OCLRT {
|
|
class GraphicsAllocation;
|
|
template <typename GfxFamily>
|
|
class CommandStreamReceiverSimulatedHw : public CommandStreamReceiverSimulatedCommonHw<GfxFamily> {
|
|
using CommandStreamReceiverSimulatedCommonHw<GfxFamily>::CommandStreamReceiverSimulatedCommonHw;
|
|
|
|
public:
|
|
uint32_t getMemoryBank(GraphicsAllocation *allocation) const {
|
|
return MemoryBanks::getBank(this->deviceIndex);
|
|
}
|
|
int getAddressSpace(int hint) {
|
|
return AubMemDump::AddressSpaceValues::TraceNonlocal;
|
|
}
|
|
};
|
|
} // namespace OCLRT
|