Revert "feature: Use zesInit on windows always"

This reverts commit cf7a4bc0dd.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2025-09-17 08:53:43 +02:00
committed by Compute-Runtime-Automation
parent 10c37fbb78
commit 63051f0635
15 changed files with 12 additions and 54 deletions

View File

@@ -61,7 +61,6 @@
#include "level_zero/core/source/sampler/sampler.h"
#include "level_zero/driver_experimental/zex_graph.h"
#include "level_zero/driver_experimental/zex_module.h"
#include "level_zero/sysman/source/driver/sysman_driver.h"
#include "level_zero/tools/source/debug/debug_session.h"
#include "level_zero/tools/source/metrics/metric.h"
#include "level_zero/tools/source/sysman/sysman.h"
@@ -1692,11 +1691,6 @@ Device *Device::create(DriverHandle *driverHandle, NEO::Device *neoDevice, bool
bool isHwMode = device->getNEODevice()->getAllEngines().size() ? device->getNEODevice()->getAllEngines()[0].commandStreamReceiver->getType() == NEO::CommandStreamReceiverType::hardware : device->getNEODevice()->getRootDevice()->getAllEngines()[0].commandStreamReceiver->getType() == NEO::CommandStreamReceiverType::hardware;
if (isHwMode) {
device->createSysmanHandle(isSubDevice);
auto osInterface = neoDevice->getRootDeviceEnvironment().osInterface.get();
if (osInterface && osInterface->getDriverModel()->getDriverModelType() == NEO::DriverModelType::wddm && NEO::debugManager.flags.EnableSysmanLegacyModeUsingZesInit.get()) {
// if driver type is wddm (windows) always use zesInit path for sysman
L0::Sysman::init(ZE_INIT_FLAG_GPU_ONLY);
}
}
device->resourcesReleased = false;