You are not logged in.

#1 2017-08-14 10:18:30

lukas98
Member
From: Poland
Registered: 2017-08-14
Posts: 6

Mesa old opengl version

Hi, I'm new to linux and need help with opengl and opengl es version.
Is there a way to update it? Thanks for replies.

glxinfo | grep "OpenGL"

OpenGL vendor string: X.Org
OpenGL renderer string: AMD CAPE VERDE (DRM 2.49.0 / 4.9.42-1-lts, LLVM 6.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.0-devel (git-b420680ede)
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.3.0-devel (git-b420680ede)
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.3.0-devel (git-b420680ede)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

Last edited by lukas98 (2017-08-14 10:19:04)

Offline

#2 2017-08-14 10:23:45

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: Mesa old opengl version

How is this old exactly? OpenGL 4.5 and OpenGL ES 3.1 are currently the latest versions exposed by Mesa with the RadeonSI drivers; https://mesamatrix.net/

I have a serious XY problem feeling tbh. What is the problem you're having that makes you think you need to update your OpenGL?

Offline

#3 2017-08-14 10:27:11

lukas98
Member
From: Poland
Registered: 2017-08-14
Posts: 6

Re: Mesa old opengl version

OpenGL version string: 3.0 Mesa 17.3.0-devel (git-b420680ede)
I believe i have version 3.0.

My problem was compiling shaders:

Vertex Shader Compile Failed: 0:1(10): error: GLSL 3.20 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

On windows 7 it works fine.

Offline

#4 2017-08-14 10:40:24

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: Mesa old opengl version

I'm not to familiar with that but are you requesting OpenGL 4.5 at context creation?
I'm fairy certain that if you're not, Mesa will indeed only expose shading language version <=1.3, or <=ES3.1, for compatibility reasons.

EDIT:

https://www.mesa3d.org/relnotes/17.3.0.html wrote:

Mesa 17.3.0 implements the OpenGL 4.5 API, but the version reported by glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) / glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used. Some drivers don't support all the features required in OpenGL 4.5. OpenGL 4.5 is only available if requested at context creation because compatibility contexts are not supported.

If I'm entirely wrong here I'm pretty sure someone better versed in Mesa/OpenGL will correct me tongue

Last edited by Omar007 (2017-08-14 11:09:48)

Offline

#5 2017-08-14 11:46:37

lukas98
Member
From: Poland
Registered: 2017-08-14
Posts: 6

Re: Mesa old opengl version

For window creation i use glfw and by adding these two lines

glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);

Shaders compiles, but program dont draw what it should.

Offline

#6 2017-08-14 12:37:20

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: Mesa old opengl version

How about adding:

glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);

?

Last edited by Omar007 (2017-08-14 12:37:47)

Offline

#7 2017-08-14 13:55:38

lukas98
Member
From: Poland
Registered: 2017-08-14
Posts: 6

Re: Mesa old opengl version

i've tried this, no difference

Offline

#8 2017-08-14 14:00:55

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: Mesa old opengl version

Ok. I'm afraid my knowledge about any of this basically ends here though so I can't really help you any further.

However, I am quite certain that it is something in how the context is created or things are rendered (or maybe with the shaders themselves?), not with your Mesa/driver version.
You may have better luck asking people with knowledge about GLFW: http://www.glfw.org/community.html

Last edited by Omar007 (2017-08-14 14:02:27)

Offline

#9 2017-08-14 14:38:54

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Mesa old opengl version

Are you compiling Blender? If so I believe you can modify the PKGBUILD and modify (or leave out) sections that are causing issues. I had to do that once.

Also, if you're compiling Blender make sure you are using the AUR package.

Last edited by mrunion (2017-08-14 14:39:30)


Matt

"It is very difficult to educate the educated."

Offline

#10 2017-08-14 14:46:10

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,873

Re: Mesa old opengl version

run

glxinfo | grep -A12 Extended

read up about difference between core and compat profile
verify if your application requests a core profile


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB