mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
refactor: prepare CLOS logic for extension
Prepare cache setup and reservation logic to be extended w.r.t other cache-levels. Conceptually this change is like adding a switch-statement, in several places, in which existing code makes a single (and only) case. This is caused by splitting larger development to ease the review. Further cases will be added in following steps. Such approach sometimes creates code which may seem redundant but it is meant to simplify plugging following extensions in an easy way. Related-To: NEO-12837 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9f3a95b7d6
commit
6924a48ca6
@@ -190,8 +190,8 @@ class Drm : public DriverModel {
|
||||
return systemInfo.get();
|
||||
}
|
||||
|
||||
CacheInfo *getL3CacheInfo() const {
|
||||
return l3CacheInfo.get();
|
||||
CacheInfo *getCacheInfo() const {
|
||||
return cacheInfo.get();
|
||||
}
|
||||
|
||||
MemoryInfo *getMemoryInfo() const {
|
||||
@@ -334,7 +334,7 @@ class Drm : public DriverModel {
|
||||
std::unique_ptr<HwDeviceIdDrm> hwDeviceId;
|
||||
std::unique_ptr<IoctlHelper> ioctlHelper;
|
||||
std::unique_ptr<SystemInfo> systemInfo;
|
||||
std::unique_ptr<CacheInfo> l3CacheInfo;
|
||||
std::unique_ptr<CacheInfo> cacheInfo;
|
||||
std::unique_ptr<EngineInfo> engineInfo;
|
||||
std::unique_ptr<MemoryInfo> memoryInfo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user