Files
compute-runtime/shared/source/dll/wddm/create_gdi.cpp
Warchulski, Jaroslaw b485c025d0 Cleanup includes 57
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-02-17 11:19:59 +01:00

27 lines
618 B
C++

/*
* Copyright (C) 2022-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/os_interface/windows/gdi_interface.h"
#include "shared/source/os_interface/windows/os_inc.h"
namespace NEO {
inline const std::string getGdiName() {
if (DebugManager.flags.OverrideGdiPath.get() != "unk") {
return DebugManager.flags.OverrideGdiPath.get();
} else {
return Os::gdiDllName;
}
}
NEO::OsLibrary *Gdi::createGdiDLL() {
return NEO::OsLibrary::load(getGdiName(), nullptr);
}
} // namespace NEO