mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 02:18:05 +08:00
Revert "Move shared helper files to shared directory"
This reverts commit 459524f129.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e3b1d8b43c
commit
903cf766b3
@@ -62,7 +62,14 @@ if(SUPPORT_PVC_AND_LATER)
|
||||
list(APPEND RUNTIME_SRCS_HELPERS_BASE ${CMAKE_CURRENT_SOURCE_DIR}/cl_hw_helper_pvc_and_later.inl)
|
||||
endif()
|
||||
|
||||
set(RUNTIME_SRCS_HELPERS_WINDOWS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/windows/gl_helper.h
|
||||
)
|
||||
|
||||
target_sources(${NEO_STATIC_LIB_NAME} PRIVATE ${RUNTIME_SRCS_HELPERS_BASE})
|
||||
if(WIN32)
|
||||
target_sources(${NEO_STATIC_LIB_NAME} PRIVATE ${RUNTIME_SRCS_HELPERS_WINDOWS})
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY RUNTIME_SRCS_HELPERS_BASE ${RUNTIME_SRCS_HELPERS_BASE})
|
||||
|
||||
|
||||
32
opencl/source/helpers/windows/gl_helper.h
Normal file
32
opencl/source/helpers/windows/gl_helper.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
|
||||
#include "GL/gl.h"
|
||||
|
||||
namespace Os {
|
||||
extern const char *openglDllName;
|
||||
}
|
||||
|
||||
namespace NEO {
|
||||
class glFunctionHelper {
|
||||
public:
|
||||
glFunctionHelper::glFunctionHelper(OsLibrary *glLibrary, const std::string &functionName) {
|
||||
glFunctionPtr = (*glLibrary)[functionName];
|
||||
}
|
||||
|
||||
ConvertibleProcAddr operator[](const char *name) {
|
||||
return ConvertibleProcAddr{glFunctionPtr(name)};
|
||||
}
|
||||
|
||||
protected:
|
||||
// clang-format off
|
||||
PROC(__stdcall *glFunctionPtr)(LPCSTR Arg1) = nullptr;
|
||||
// clang-format on
|
||||
};
|
||||
}; // namespace NEO
|
||||
@@ -7,9 +7,8 @@
|
||||
|
||||
#include "opencl/source/sharings/gl/windows/gl_sharing_windows.h"
|
||||
|
||||
#include "shared/source/helpers/windows/gl_helper.h"
|
||||
|
||||
#include "opencl/source/context/context.inl"
|
||||
#include "opencl/source/helpers/windows/gl_helper.h"
|
||||
#include "opencl/source/sharings/gl/gl_arb_sync_event.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
Reference in New Issue
Block a user