Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 10 of 10

Thread: Compute shaders on MacOS X

Hybrid View

  1. #1
    Intern Contributor Godlike's Avatar
    Join Date
    May 2004
    Location
    Greece
    Posts
    67

    Question Compute shaders on MacOS X

    Hi all,

    I know that MacOS X Mavericks has only GL 4.1 support but is anyone aware if there is hidden support for compute shaders or even a hack-ish way to use them?

    What I am interested to know is if a Mac with Mavericks and with an nVidia 6xx GPU can do some compute magic. I assume that since Apple is using nVidia's driver the functionality is probably already there but not exposed to MacOS public headers (?!?).

    Thanks in advance!

    PS: When I write compute shader support I also imply support for shader storage buffers, shader storage blocks etc etc.

  2. #2
    Advanced Member Frequent Contributor arekkusu's Avatar
    Join Date
    Nov 2003
    Posts
    782
    Use OpenCL.

  3. #3
    Member Regular Contributor
    Join Date
    Jan 2012
    Location
    Germany
    Posts
    325
    Compute Shaders are not supported on OSX right now. The drivers are not from NVidia - Apple develops there own driver front end (which results in a lot of pain). In the past there were sometimes ways to get access to unreleased features (e.g. some GL 4 features on late OS 10.7) but those were buggy and unreliable. As mentioned already, OpenCL might be a better guess for you.

  4. #4
    Intern Contributor Godlike's Avatar
    Join Date
    May 2004
    Location
    Greece
    Posts
    67
    Thanks for the replies. I thought the drivers were from nVidia but it seems I was mistaken. Also, the fact that MacOS OpenGL implementation is so buggy probably proves that it's not nVidia.

    It's really sad to find MacOS always lagging compared to the competition.

  5. #5
    Advanced Member Frequent Contributor arekkusu's Avatar
    Join Date
    Nov 2003
    Posts
    782
    Also, the fact that MacOS OpenGL implementation is so buggy.
    Which bug reports are tracking your facts?

  6. #6
    Intern Contributor Godlike's Avatar
    Join Date
    May 2004
    Location
    Greece
    Posts
    67
    Quote Originally Posted by arekkusu View Post
    Which bug reports are tracking your facts?
    Actually none. Never owned a Mac to be able to judge for myself* but other people did a pretty nice job putting all implementations to the test. So these are my facts: http://www.g-truc.net/doc/OpenGL%20status%202013-11.pdf

    If you take a look at GL 4.1 support MacOS passes only 43% of the tests. For 4.0 passes 64% of the tests. Even if g-truc is telling half truth (which I highly doubt) the pass rate of MacOS is pretty low.

    *: I only investigating the possibility of porting a 3D engine to MacOS
    Last edited by Godlike; 12-16-2013 at 10:40 AM.

  7. #7
    Junior Member Newbie
    Join Date
    Jan 2014
    Posts
    3
    Quote Originally Posted by Godlike View Post
    If you take a look at GL 4.1 support MacOS passes only 43% of the tests. For 4.0 passes 64% of the tests. Even if g-truc is telling half truth (which I highly doubt) the pass rate of MacOS is pretty low.
    The other possibility - shocking, I realize - is that his tests are buggy.

    Consider his failing primitive-instancing shaders for GL 4.1. They use this GLSL syntax:

    "layout(location = COLOR) flat out vec4 VertColor;"

    As it happens, it's against the GLSL 4.1 spec to use a flat interpolation mode in conjunction with a location modifier. This is why a number of the OS X tests are failing in his suite.

    OS X adheres slavishly to the spec here, for better or worse, and as it happens the other implementations should be the ones failing. I mention this case in particular because I was bit by it recently and was shocked to discover that OS X was behaving correctly. A far more observant person than me recently pointed this out to me, and noted that this is sorted out in GLSL 4.2.

  8. #8
    Super Moderator Frequent Contributor Groovounet's Avatar
    Join Date
    Jul 2004
    Posts
    934
    If you are not capable of reporting GLSL compiler error message, then you are still a buggy driver.

    So even this specificity, Apple doesn't support it correctly.

  9. #9
    Junior Member Newbie
    Join Date
    Jan 2014
    Posts
    3
    Quote Originally Posted by Groovounet View Post
    If you are not capable of reporting GLSL compiler error message, then you are still a buggy driver.

    So even this specificity, Apple doesn't support it correctly.
    I get a GLSL compile error for this very thing. That's *how* I noticed it. Your examples generate the same compile error for me! This happens on both 10.9.0 and 10.9.1.

    Are you sure you're checking for the compile error properly?

    I should add that in light of this, the non-OSX platforms are "buggy drivers" for these 4.10 tests since they're the ones *not* generating the compile error.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •