fix: ensure drm topology is queried only once

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-07-26 12:53:49 +00:00
committed by Compute-Runtime-Automation
parent b1bc4f4cad
commit a168bf2f33
4 changed files with 7 additions and 1 deletions

View File

@@ -1072,7 +1072,8 @@ void Drm::setupIoctlHelper(const PRODUCT_FAMILY productFamily) {
bool Drm::queryTopology(const HardwareInfo &hwInfo, DrmQueryTopologyData &topologyData) {
UNRECOVERABLE_IF(!engineInfoQueried);
UNRECOVERABLE_IF(topologyQueried);
topologyQueried = true;
auto result = this->ioctlHelper->getTopologyDataAndMap(hwInfo, topologyData, topologyMap);
return result;
}