Page MenuHome

Build: disable usage of GLEW, CLEW, CUDA, GLFW in OpenSubdiv
ClosedPublic

Authored by Brecht Van Lommel (brecht) on May 9 2022, 4:49 PM.

Details

Summary

The previous 3.1 libraries (accidentally) used glApi instead of GLEW and were
working for GPU subdivision, so revert to that. There's a suspected conflict
with Blender's own bundled GLEW or other issue with GLEW, causing the crash in
T97737.

The current GPU subdivision implementation does not need OpenCL, CUDA or GLFW.
So also remove libraries needed for that. It's simpler to stick to compute
shaders in OpenGL/Vulkan/Metal and not involve additional APIs.

Diff Detail

Repository
rB Blender
Branch
remove-glew (branched from master)
Build Status
Buildable 22030
Build 22030: arc lint + arc unit

Event Timeline

Brecht Van Lommel (brecht) requested review of this revision.May 9 2022, 4:49 PM
Brecht Van Lommel (brecht) created this revision.
  • While windows does not have issues, i'd still like all platforms to ship with identical flags, ie rebuild required for all platforms
  • I didn't have any build errors, so leaning towards accepting, however i'm stumped on testing..
  • Do we have a test file to validate OSD is still on the GPU when it needs to, so I can validate this actually doesn't break anything/puts things back on the CPU
  • This is going to both 3.2 and master correct?

I can confirm this fixes the problem (tested on @Pablo Fournier (pablico) 's computer).

  • While windows does not have issues, i'd still like all platforms to ship with identical flags, ie rebuild required for all platforms

👍

  • Do we have a test file to validate OSD is still on the GPU when it needs to, so I can validate this actually doesn't break anything/puts things back on the CPU

Although I'm curious about this too, I'll simply accept & trust @Brecht Van Lommel (brecht) has a handle on this for Linux.

  • This is going to both 3.2 and master correct?

AFAIK, yes.

This revision is now accepted and ready to land.May 9 2022, 5:21 PM

Was able to validate on a sample i didn't create nor can share, but at least i know windows is ok with these changes.