Debian Codegraph @

opencl/source/sharings/gl/windows/cl_gl_api_helper.cpp

raw
1 /*
2 * Copyright (C) 2022-2023 Intel Corporation
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8 #include "shared/source/os_interface/windows/wddm/wddm.h"
9
10 #include "opencl/source/sharings/gl/windows/gl_sharing_windows.h"
11
12 namespace NEO {
13 std::unique_ptr<GLSharingFunctions> GLSharingFunctions::create() {
14 return std::make_unique<GLSharingFunctionsWindows>();
15 }
16
17 bool GLSharingFunctionsWindows::isHandleCompatible(const DriverModel &driverModel, uint32_t handle) const {
18
19 return driverModel.as<const Wddm>()->verifyAdapterLuid(getAdapterLuid(reinterpret_cast<GLContext>(static_cast<uintptr_t>(handle))));
20 }
21
22 } // namespace NEO