@@ -1359,23 +1359,23 @@ ze_result_t DeviceImp::getDeviceImageProperties(ze_device_image_properties_t *pD
1359
1359
1360
1360
ze_result_t DeviceImp::getDebugProperties (zet_device_debug_properties_t *pDebugProperties) {
1361
1361
bool isDebugAttachAvailable = getOsInterface () ? getOsInterface ()->isDebugAttachAvailable () : false ;
1362
- auto &stateSaveAreaHeader = NEO::SipKernel::getDebugSipKernel (*this ->getNEODevice ()).getStateSaveAreaHeader ();
1363
-
1364
- if (stateSaveAreaHeader.size () == 0 ) {
1365
- PRINT_DEBUGGER_INFO_LOG (" Context state save area header missing" , " " );
1366
- isDebugAttachAvailable = false ;
1367
- }
1362
+ pDebugProperties->flags = 0 ;
1368
1363
1369
1364
auto &hwInfo = neoDevice->getHardwareInfo ();
1370
1365
if (!hwInfo.capabilityTable .l0DebuggerSupported ) {
1371
1366
isDebugAttachAvailable = false ;
1372
1367
}
1373
-
1374
- bool tileAttach = NEO::debugManager.flags .ExperimentalEnableTileAttach .get ();
1375
- pDebugProperties->flags = 0 ;
1376
1368
if (isDebugAttachAvailable) {
1377
- if ((isSubdevice && tileAttach) || !isSubdevice) {
1378
- pDebugProperties->flags = zet_device_debug_property_flag_t ::ZET_DEVICE_DEBUG_PROPERTY_FLAG_ATTACH;
1369
+ auto &stateSaveAreaHeader = NEO::SipKernel::getDebugSipKernel (*this ->getNEODevice ()).getStateSaveAreaHeader ();
1370
+
1371
+ if (stateSaveAreaHeader.size () == 0 ) {
1372
+ PRINT_DEBUGGER_INFO_LOG (" Context state save area header missing" , " " );
1373
+ } else {
1374
+ bool tileAttach = NEO::debugManager.flags .ExperimentalEnableTileAttach .get ();
1375
+
1376
+ if ((isSubdevice && tileAttach) || !isSubdevice) {
1377
+ pDebugProperties->flags = zet_device_debug_property_flag_t ::ZET_DEVICE_DEBUG_PROPERTY_FLAG_ATTACH;
1378
+ }
1379
1379
}
1380
1380
}
1381
1381
return ZE_RESULT_SUCCESS;
0 commit comments