Bug 97481 - mesa-12.0.1 exposes only OpenGL 3.0 on wayland under gnome-shell on Intel HD 520
Summary: mesa-12.0.1 exposes only OpenGL 3.0 on wayland under gnome-shell on Intel HD 520
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: EGL/Wayland (show other bugs)
Version: 12.0
Hardware: Other All
: medium normal
Assignee: Wayland bug list
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-25 12:00 UTC by Yaroslav Isakov
Modified: 2017-08-20 00:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.