2020-07-27 17:37:51 +02:00
|
|
|
/*
|
2023-02-06 09:05:43 +00:00
|
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
2020-07-27 17:37:51 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-11-19 14:11:37 +00:00
|
|
|
#include "shared/source/device/device.h"
|
2022-12-15 17:32:03 +00:00
|
|
|
#include "shared/source/execution_environment/root_device_environment.h"
|
2023-02-06 09:05:43 +00:00
|
|
|
#include "shared/source/helpers/hw_info.h"
|
2022-07-05 15:55:15 +00:00
|
|
|
#include "shared/test/common/mocks/mock_l0_debugger.h"
|
2020-07-27 17:37:51 +02:00
|
|
|
|
2022-06-14 21:24:58 +00:00
|
|
|
NEO::DebugerL0CreateFn mockDebuggerL0HwFactory[IGFX_MAX_CORE];
|
|
|
|
|
|
|
|
|
|
namespace NEO {
|
2020-07-27 17:37:51 +02:00
|
|
|
|
2022-06-14 21:24:58 +00:00
|
|
|
std::unique_ptr<Debugger> DebuggerL0::create(NEO::Device *device) {
|
2020-11-19 14:11:37 +00:00
|
|
|
initDebuggingInOs(device->getRootDeviceEnvironment().osInterface.get());
|
2022-06-14 21:24:58 +00:00
|
|
|
auto debugger = mockDebuggerL0HwFactory[device->getHardwareInfo().platform.eRenderCoreFamily](device);
|
2020-09-14 13:28:47 +02:00
|
|
|
return std::unique_ptr<DebuggerL0>(debugger);
|
2020-07-27 17:37:51 +02:00
|
|
|
}
|
|
|
|
|
|
2022-06-14 21:24:58 +00:00
|
|
|
} // namespace NEO
|