Extend DRM mock and queryTopology tests - part 1

Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
This commit is contained in:
Daniel Chabrowski
2022-01-28 21:00:05 +00:00
committed by Compute-Runtime-Automation
parent 452de80d70
commit f2c4231a27
30 changed files with 818 additions and 84 deletions

View File

@@ -49,23 +49,6 @@ int Drm::createDrmVirtualMemory(uint32_t &drmVmId) {
return ret;
}
bool Drm::queryTopology(const HardwareInfo &hwInfo, QueryTopologyData &topologyData) {
auto dataQuery = this->query(DRM_I915_QUERY_TOPOLOGY_INFO, DrmQueryItemFlags::topology);
if (dataQuery.empty()) {
return false;
}
auto data = reinterpret_cast<drm_i915_query_topology_info *>(dataQuery.data());
topologyData.maxSliceCount = data->max_slices;
topologyData.maxSubSliceCount = data->max_subslices;
topologyData.maxEuCount = data->max_eus_per_subslice;
TopologyMapping mapping;
auto result = translateTopologyInfo(data, topologyData, mapping);
this->topologyMap[0] = mapping;
return result;
}
bool Drm::isDebugAttachAvailable() {
return false;
}