Query supported OpenGL core profile version on X11, GLX

Review Request #130118 - Created May 7, 2017 and updated

Information
Michal Malý
kinfocenter
Reviewers
kinfocenter

Querying OpenGL version on X11 may return only the highest supported OpenGL version that provides the deprecated functionality. Since Mesa does not support (and will not support) compatibility OpenGL profiles, KInfoCenter may incorrectly show only OpenGL 3.0 as the latest supported OpenGL version. This patch queries the supported OpenGL core profiles and displays the highest supported core profile if such information is available.

The patch works as expected with my Sandy Bridge HD3000 GPU and Mesa 17.0.5. KInfoCenter correctly shows that Core profile 3.3 is supported on this GPU. Further testing with AMD Radeon hardware can be done if requested.

UPDATE: Tested on Radeon 7730LE, Mesa 17.1rc2. OpenGL 3.0 compatibility and OpenGL 4.5 core profile support is shown correctly.

Michal Malý
Review request changed

Change Summary:

Additional test with Radeon hardware.

Testing Done:

   

The patch works as expected with my Sandy Bridge HD3000 GPU and Mesa 17.0.5. KInfoCenter correctly shows that Core profile 3.3 is supported on this GPU. Further testing with AMD Radeon hardware can be done if requested.

  +
  +

UPDATE: Tested on Radeon 7730LE, Mesa 17.1rc2. OpenGL 3.0 compatibility and OpenGL 4.5 core profile support is shown correctly.

Loading...