Files
compute-runtime/runtime/aub/aub_center.h
kamdiedrich 8f44a95ca0 Changing include paths
Change-Id: I3b878463289083c956382e68da3473788cf5c15f
2020-02-22 18:45:39 +01:00

63 lines
1.7 KiB
C++

/*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "core/helpers/options.h"
#include "command_stream/aub_stream_provider.h"
#include "command_stream/aub_subcapture.h"
#include "memory_manager/address_mapper.h"
#include "memory_manager/physical_address_allocator.h"
#include "third_party/aub_stream/headers/aub_manager.h"
namespace NEO {
struct HardwareInfo;
class AubCenter {
public:
AubCenter(const HardwareInfo *pHwInfo, bool localMemoryEnabled, const std::string &aubFileName, CommandStreamReceiverType csrType);
AubCenter();
virtual ~AubCenter();
void initPhysicalAddressAllocator(PhysicalAddressAllocator *pPhysicalAddressAllocator) {
physicalAddressAllocator = std::unique_ptr<PhysicalAddressAllocator>(pPhysicalAddressAllocator);
}
PhysicalAddressAllocator *getPhysicalAddressAllocator() const {
return physicalAddressAllocator.get();
}
AddressMapper *getAddressMapper() const {
return addressMapper.get();
}
AubStreamProvider *getStreamProvider() const {
return streamProvider.get();
}
AubSubCaptureCommon *getSubCaptureCommon() const {
return subCaptureCommon.get();
}
aub_stream::AubManager *getAubManager() const {
return aubManager.get();
}
static uint32_t getAubStreamMode(const std::string &aubFileName, uint32_t csrType);
protected:
std::unique_ptr<PhysicalAddressAllocator> physicalAddressAllocator;
std::unique_ptr<AddressMapper> addressMapper;
std::unique_ptr<AubStreamProvider> streamProvider;
std::unique_ptr<AubSubCaptureCommon> subCaptureCommon;
std::unique_ptr<aub_stream::AubManager> aubManager;
uint32_t aubStreamMode = 0;
};
} // namespace NEO