mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
Make all gmm helper members non-static
Change-Id: Idb399aa275d66905040b6317d3888c94ffb98c55
This commit is contained in:
committed by
sys_ocldev
parent
1bc7275de7
commit
89cf7532ea
@@ -22,6 +22,8 @@
|
||||
|
||||
#include "runtime/command_stream/linear_stream.h"
|
||||
#include "hw_cmds.h"
|
||||
#include "runtime/execution_environment/execution_environment.h"
|
||||
#include "runtime/gmm_helper/gmm_helper.h"
|
||||
#include "runtime/helpers/aligned_memory.h"
|
||||
#include "runtime/helpers/preamble.h"
|
||||
#include "runtime/mem_obj/buffer.h"
|
||||
@@ -31,6 +33,7 @@
|
||||
#include "runtime/os_interface/linux/drm_memory_manager.h"
|
||||
#include "runtime/os_interface/linux/drm_neo.h"
|
||||
#include "runtime/os_interface/linux/os_interface.h"
|
||||
#include "runtime/platform/platform.h"
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
@@ -45,6 +48,8 @@ DrmCommandStreamReceiver<GfxFamily>::DrmCommandStreamReceiver(const HardwareInfo
|
||||
execObjectsStorage.reserve(512);
|
||||
CommandStreamReceiver::osInterface = std::unique_ptr<OSInterface>(new OSInterface());
|
||||
CommandStreamReceiver::osInterface.get()->get()->setDrm(this->drm);
|
||||
auto gmmHelper = platform()->peekExecutionEnvironment()->getGmmHelper();
|
||||
gmmHelper->setSimplifiedMocsTableUsage(this->drm->getSimplifiedMocsTableUsage());
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
|
||||
@@ -223,4 +223,12 @@ int Drm::getErrno() {
|
||||
return errno;
|
||||
}
|
||||
|
||||
bool Drm::getSimplifiedMocsTableUsage() const {
|
||||
return useSimplifiedMocsTable;
|
||||
}
|
||||
|
||||
void Drm::setSimplifiedMocsTableUsage(bool value) {
|
||||
useSimplifiedMocsTable = value;
|
||||
}
|
||||
|
||||
} // namespace OCLRT
|
||||
|
||||
@@ -77,8 +77,11 @@ class Drm {
|
||||
void setGtType(GTTYPE eGtType) { this->eGtType = eGtType; }
|
||||
GTTYPE getGtType() const { return this->eGtType; }
|
||||
MOCKABLE_VIRTUAL int getErrno();
|
||||
void setSimplifiedMocsTableUsage(bool value);
|
||||
bool getSimplifiedMocsTableUsage() const;
|
||||
|
||||
protected:
|
||||
bool useSimplifiedMocsTable = false;
|
||||
int fd;
|
||||
int deviceId;
|
||||
int revisionId;
|
||||
|
||||
Reference in New Issue
Block a user