You are not logged in.

#1 2016-11-13 09:50:19

lnxsurf
Member
Registered: 2014-05-28
Posts: 75

[SOLVED] Cannot run OpenGL program without optirun

Hello,

I have that for a while. My problem is that I cannot start gl applications without "optirun". Before it was possible so I guess that the intel graphics were then activated. Could you help me?

Greetings

Last edited by lnxsurf (2016-11-13 13:32:04)

Offline

#2 2016-11-13 12:01:44

jaergenoth
Member
Registered: 2015-01-16
Posts: 85

Re: [SOLVED] Cannot run OpenGL program without optirun

Very hard to say what might be the problem with so little information.
What is the output of 'glxinfo -B'?
What opengl applications don't work?
What did you do before it stopped working?

glxinfo comes with mesa-demos, or you can download it as a standalone from AUR.

Offline

#3 2016-11-13 12:23:39

lnxsurf
Member
Registered: 2014-05-28
Posts: 75

Re: [SOLVED] Cannot run OpenGL program without optirun

I am developing/experimenting with OpenGL 4.3. So after compilation, etc. I tried to run my application and nothing happened. So I am using glfw library to create a OpenGL context. It is not possible to create a window! But when I run my application with "optirun"; it works!

$glxinfo -B

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel Open Source Technology Center (0x8086)
    Device: Mesa DRI Intel(R) Ivybridge Mobile  (0x166)
    Version: 13.0.0
    Accelerated: yes
    Video memory: 1536MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 13.0.0
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.0 Mesa 13.0.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 13.0.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

Offline

#4 2016-11-13 12:40:58

jaergenoth
Member
Registered: 2015-01-16
Posts: 85

Re: [SOLVED] Cannot run OpenGL program without optirun

Mesa doesn't support OpenGL 4.3 for Ivy Bridge, while your discrete Nvidia card propably supports up to 4.5.
I'm not a graphics programmer, but I believe this is your issue.

Last edited by jaergenoth (2016-11-13 12:41:38)

Offline

#5 2016-11-13 12:50:07

lnxsurf
Member
Registered: 2014-05-28
Posts: 75

Re: [SOLVED] Cannot run OpenGL program without optirun

Yes!!!
I tried to setup with to 3.3 and then it works. I thought that mesa right now is almost supporting OpenGL 4.5. So there is also a issue for ivy bridge? I did not know that.

Thanks a lot. So guess I can solve this thread? Or do you have another idea?

Offline

#6 2016-11-13 14:56:13

jaergenoth
Member
Registered: 2015-01-16
Posts: 85

Re: [SOLVED] Cannot run OpenGL program without optirun

Well, looking at this handy table someone made about Mesa's OpenGL support (https://people.freedesktop.org/~imirkin/glxinfo), it seems Broadwell and newer support 4.5.
The support for OpenGL 4.5 in Haswell and Ivy Bridge is currently unfinished, but I've heard it's supposed to come later. Maybe in Mesa 14.

Offline

Board footer

Powered by FluxBB