fix(l0debug): windows topology map should always be created

Topology map was only being created when ZET_ENABLE_PROGAM_DEBUGGING was
set.  This was not correct.  Now it is unconditionally created at init,
and debug attach will fail if it is not valid.

Related-to: LOCI-3937

Signed-off-by: Yates, Brandon <brandon.yates@intel.com>
This commit is contained in:
Yates, Brandon
2023-03-22 21:43:29 +00:00
committed by Compute-Runtime-Automation
parent f1c64adb3c
commit 0f6140deb0
4 changed files with 35 additions and 13 deletions

View File

@@ -140,11 +140,7 @@ bool Wddm::init() {
gmmMemory.reset(GmmMemory::create(rootDeviceEnvironment.getGmmClientContext()));
}
if (rootDeviceEnvironment.executionEnvironment.isDebuggingEnabled()) {
if (!buildTopologyMapping()) {
return false;
}
}
buildTopologyMapping();
return configureDeviceAddressSpace();
}
@@ -160,9 +156,7 @@ void Wddm::setPlatformSupportEvictIfNecessaryFlag(const ProductHelper &productHe
}
bool Wddm::buildTopologyMapping() {
auto hwInfo = rootDeviceEnvironment.getHardwareInfo();
UNRECOVERABLE_IF(hwInfo->gtSystemInfo.MultiTileArchInfo.TileCount > 1);
TopologyMapping mapping;
if (!translateTopologyInfo(mapping)) {
PRINT_DEBUGGER_ERROR_LOG("translateTopologyInfo Failed\n", "");