Author Topic: OpenGL 4 Shader Subroutines - NVIDIA/OSX bug?  (Read 10308 times)

0 Members and 1 Guest are viewing this topic.

JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2004
    • View Profile
    • Geeks3D.com
OpenGL 4 Shader Subroutines - NVIDIA/OSX bug?
« on: October 17, 2014, 07:32:29 PM »
I struggled many hours recently with subroutines and I didn't manage to make them ok under OS X with a GeForce GPU.
I added a new simple demo that shows a pqtorus rendered three times, each time with a different subroutine (texture, phong, phong+texture).

The demo is available in the code sample pack:
host_api/gl-400-arb-shader-subroutine/demo_gl4_v3.xml

The latest GLSL Hacker 0.7.2.0 is recommended.

The demo works fine on Windows. On OS X, the demo works fine for Intel and AMD GPUs but not for NVIDIA GPUs. With the GT650M / OSX, the same subroutine is used to shade all meshes and that's the bug. I suspect a bug on OSX with GeForce GPUs because the demo works fine everywhere else. But since it's a NVIDIA related issue, my code can be also guilty...


OK - NVIDIA GeForce GTX 660 - R337.50 - Win7 64-bit


OK - Intel HD 4000 - OS X 10.9


OK - AMD Radeon HD 6870 - OS X 10.9 (Hackintosh)


ERROR - NVIDIA GeForce GT 650M (Macbook Retina Mid-2012) - OS X 10.9



oscarbg

  • Zombie
  • *
  • Posts: 1
    • View Profile
Re: OpenGL 4 Shader Subroutines - NVIDIA/OSX bug?
« Reply #1 on: October 17, 2014, 11:50:06 PM »
you know there is new MacOS 10.10 ready and even a big jump in Nvidia Web drivers to 343:
http://us.download.nvidia.com/Mac/Quadro_Certified/343.01.01f01/WebDriver-343.01.01f01.pkg
 can you test if fixes the issues?
 will be good to know..

JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2004
    • View Profile
    • Geeks3D.com
Re: OpenGL 4 Shader Subroutines - NVIDIA/OSX bug?
« Reply #2 on: October 18, 2014, 04:40:51 PM »
I will try to update the NV driver, but I don't know if the Quadro driver will be ok for the GT650M.

Will try also OSX 10.10 asap...

JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2004
    • View Profile
    • Geeks3D.com
OpenGL 4 Subroutines + OSX Yosemite + GTX 780
« Reply #3 on: October 22, 2014, 09:10:47 AM »
OS X 10.10 Yosemite + NVIDIA R343.01: not better!


JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2004
    • View Profile
    • Geeks3D.com
OpenGL 4 Shader Subroutines - Linux + GTX 680 is OK
« Reply #4 on: November 08, 2014, 12:28:36 PM »
Linux Mint 17 64-bit + R331.104 + GTX 680: works fine!