mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 00:58:39 +08:00
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:
committed by
Compute-Runtime-Automation
parent
452de80d70
commit
f2c4231a27
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user