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