mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
refactor: unify EngineInfo ctors
remove redundant constructor create helper struct for numbers of engines adjust test scopes Related-To: NEO-10445 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e188de2489
commit
3f65f75cc3
@@ -55,7 +55,9 @@ struct MockEngineNeoDrm : public Drm {
|
||||
i915engineInfo[5].engine.engineClass = invalidEngineClass;
|
||||
i915engineInfo[5].engine.engineInstance = 0;
|
||||
|
||||
this->engineInfo.reset(new EngineInfo(this, i915engineInfo));
|
||||
StackVec<std::vector<NEO::EngineCapabilities>, 2> engineInfosPerTile{i915engineInfo};
|
||||
|
||||
this->engineInfo.reset(new EngineInfo(this, engineInfosPerTile));
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -64,7 +64,9 @@ struct MockEngineNeoDrmPrelim : public Drm {
|
||||
i915QueryEngineInfo[6].engine.engineClass = invalidEngineClass;
|
||||
i915QueryEngineInfo[6].engine.engineInstance = 0;
|
||||
|
||||
this->engineInfo.reset(new EngineInfo(this, i915QueryEngineInfo));
|
||||
StackVec<std::vector<NEO::EngineCapabilities>, 2> engineInfosPerTile{i915QueryEngineInfo};
|
||||
|
||||
this->engineInfo.reset(new EngineInfo(this, engineInfosPerTile));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user