mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/helpers/options.h"
|
|
|
|
#include <cstdint>
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace NEO {
|
|
|
|
class AubCenter;
|
|
class ExecutionEnvironment;
|
|
class GmmPageTableMngr;
|
|
class MemoryOperationsHandler;
|
|
class OSInterface;
|
|
struct HardwareInfo;
|
|
class HwDeviceId;
|
|
|
|
struct RootDeviceEnvironment {
|
|
RootDeviceEnvironment(ExecutionEnvironment &executionEnvironment);
|
|
RootDeviceEnvironment(RootDeviceEnvironment &) = delete;
|
|
MOCKABLE_VIRTUAL ~RootDeviceEnvironment();
|
|
MOCKABLE_VIRTUAL const HardwareInfo *getHardwareInfo() const;
|
|
|
|
MOCKABLE_VIRTUAL void initAubCenter(bool localMemoryEnabled, const std::string &aubFileName, CommandStreamReceiverType csrType);
|
|
bool initOsInterface(std::unique_ptr<HwDeviceId> &&hwDeviceId);
|
|
|
|
std::unique_ptr<OSInterface> osInterface;
|
|
std::unique_ptr<GmmPageTableMngr> pageTableManager;
|
|
std::unique_ptr<MemoryOperationsHandler> memoryOperationsInterface;
|
|
std::unique_ptr<AubCenter> aubCenter;
|
|
ExecutionEnvironment &executionEnvironment;
|
|
};
|
|
} // namespace NEO
|