Skip to content

Commit

Permalink
linux/clgl: Remove isGlSharingEnabled()
Browse files Browse the repository at this point in the history
We always consider it to be enabled.

Signed-off-by: Sylvain Munaut <[email protected]>
  • Loading branch information
smunaut committed Nov 22, 2023
1 parent 7fd5442 commit 9ccbc41
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions opencl/source/sharings/gl/linux/gl_sharing_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ GLSharingFunctionsLinux::GLSharingFunctionsLinux(GLType glhdcType, GLContext glh
}
GLSharingFunctionsLinux::~GLSharingFunctionsLinux() = default;

bool GLSharingFunctionsLinux::isGlSharingEnabled() {
std::unique_ptr<OsLibrary> dynLibrary(OsLibrary::load(""));
return (*dynLibrary)["glEnable"] != nullptr;
}

bool GLSharingFunctionsLinux::isOpenGlExtensionSupported(const unsigned char *pExtensionString) {
if (glGetStringi == nullptr || glGetIntegerv == nullptr) {
return false;
Expand Down
1 change: 0 additions & 1 deletion opencl/source/sharings/gl/linux/gl_sharing_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class GLSharingFunctionsLinux : public GLSharingFunctions {

GLboolean initGLFunctions() override;
bool isOpenGlSharingSupported() override;
static bool isGlSharingEnabled();

// Arb sync event
template <typename EventType = GlArbSyncEvent>
Expand Down
2 changes: 1 addition & 1 deletion opencl/source/sharings/gl/linux/lin_enable_gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void GlSharingBuilderFactory::fillGlobalDispatchTable() {
}

std::string GlSharingBuilderFactory::getExtensions(DriverInfo *driverInfo) {
auto isGlSharingEnabled = GLSharingFunctionsLinux::isGlSharingEnabled();
auto isGlSharingEnabled = true;

if (DebugManager.flags.AddClGlSharing.get() != -1) {
isGlSharingEnabled = DebugManager.flags.AddClGlSharing.get();
Expand Down

0 comments on commit 9ccbc41

Please sign in to comment.