mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Access GmmHelper and GmmClientContext via RootDeviceEnvironment
Related-To: NEO-3857 Change-Id: Ie9d719c9884fd89580ce3592a0d4d4cd42862f47 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
4a41c9741c
commit
74072d4916
@@ -8,6 +8,7 @@
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
|
||||
#include "shared/source/execution_environment/execution_environment.h"
|
||||
#include "shared/source/gmm_helper/gmm_helper.h"
|
||||
#include "shared/source/gmm_helper/page_table_mngr.h"
|
||||
#include "shared/source/memory_manager/memory_operations_handler.h"
|
||||
#include "shared/source/os_interface/os_interface.h"
|
||||
@@ -27,4 +28,11 @@ void RootDeviceEnvironment::initAubCenter(bool localMemoryEnabled, const std::st
|
||||
const HardwareInfo *RootDeviceEnvironment::getHardwareInfo() const {
|
||||
return executionEnvironment.getHardwareInfo();
|
||||
}
|
||||
|
||||
GmmHelper *RootDeviceEnvironment::getGmmHelper() const {
|
||||
return executionEnvironment.getGmmHelper();
|
||||
}
|
||||
GmmClientContext *RootDeviceEnvironment::getGmmClientContext() const {
|
||||
return executionEnvironment.getGmmClientContext();
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
namespace NEO {
|
||||
|
||||
class AubCenter;
|
||||
class GmmClientContext;
|
||||
class GmmHelper;
|
||||
class ExecutionEnvironment;
|
||||
class GmmPageTableMngr;
|
||||
class MemoryOperationsHandler;
|
||||
@@ -30,6 +32,8 @@ struct RootDeviceEnvironment {
|
||||
|
||||
MOCKABLE_VIRTUAL void initAubCenter(bool localMemoryEnabled, const std::string &aubFileName, CommandStreamReceiverType csrType);
|
||||
bool initOsInterface(std::unique_ptr<HwDeviceId> &&hwDeviceId);
|
||||
GmmHelper *getGmmHelper() const;
|
||||
GmmClientContext *getGmmClientContext() const;
|
||||
|
||||
std::unique_ptr<OSInterface> osInterface;
|
||||
std::unique_ptr<GmmPageTableMngr> pageTableManager;
|
||||
|
||||
Reference in New Issue
Block a user