Bug 97481

Summary: mesa-12.0.1 exposes only OpenGL 3.0 on wayland under gnome-shell on Intel HD 520
Product: Mesa Reporter: Yaroslav Isakov <yaroslav.isakov>
Component: EGL/WaylandAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED INVALID QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: 12.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Yaroslav Isakov 2016-08-25 12:00:52 UTC
Hello! I'm trying to run colobot under Wayland Gnome session using my onboard HD 520 , but I can only use OpenGL 2.1 driver, not OpenGL-3.3, because in EGL OpenGL is limited to 3.0, according to glewinfo and eglinfo from https://github.com/dv1/eglinfo:

OpenGL information:
    version string:  3.0 Mesa 12.0.1
    renderer string: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)
Comment 1 Bas Nieuwenhuizen 2016-08-25 12:58:16 UTC
Note that OpenGL has two context profiles: core and compatibility. Mesa does not support OpenGL for versions later than 3.0 using a compatibility profile, on any platform. 

Looking at the eglinfo source I think it uses the compatibility profile.

Furthermore, testing colobot, it tries the compatiblity profile by default, at least for the version check. Hence I think getting OpenGL 3.0 is expected behavior.

However it looks like colobot has support for the core profile and it should work with the options 

-glprofile core -glversion 3.3

Could you try if that works for you?
Comment 2 Yaroslav Isakov 2017-08-20 00:23:32 UTC
Yes, you were right - it is working with Mesa 17.0.6 and colobot options -glversion 4.0 -graphics gl33. Sorry for a mess (and a little delay :D)
Comment 3 Yaroslav Isakov 2017-08-20 00:25:34 UTC
Oh, and huge thank you for help!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.