mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
fix: ensure drm topology is queried only once
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b1bc4f4cad
commit
a168bf2f33
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user