Fix displaying OpenGL info on wayland: do not require OpenGL 3.2
ClosedPublic

Authored by alexeymin on Apr 6 2018, 11:43 PM.

Details

Summary

Removing the requirement of 3.2 version just fixes it for my AMD RX560 on amdgpu opensource driver, which only has 2.1 version.

Test Plan

Run kinfocenter, choose Graphical information - OpenGL tab. It should open without errors.

Diff Detail

Repository
R102 KInfoCenter
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
alexeymin created this revision.Apr 6 2018, 11:43 PM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 6 2018, 11:43 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
alexeymin requested review of this revision.Apr 6 2018, 11:43 PM
alexeymin edited the summary of this revision. (Show Details)Apr 6 2018, 11:55 PM

On wayland, without this patch with OpenGL 3.2 version requested, it fails with error:


and outputs in terminal:

Could not get requested OpenGL profile, requested QSurfaceFormat::OpenGLContextProfile(CoreProfile) got QSurfaceFormat::OpenGLContextProfile(NoProfile)
Could not get requested OpenGL profile, requested QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile) got QSurfaceFormat::OpenGLContextProfile(NoProfile)

With this fix, it loads, and shows that opengl version is only 2.1:

With this fix, on X11:

This code in kinfocenter was added 4 years ago in commit: https://cgit.kde.org/kinfocenter.git/commit/?id=dc62d965ff21c9840b3284acbb91f7b44bd9e394 from review: https://git.reviewboard.kde.org/r/115952/ but I don't understand why 3.2 is required. :)

davidedmundson accepted this revision.Apr 8 2018, 9:15 PM
This revision is now accepted and ready to land.Apr 8 2018, 9:15 PM
This revision was automatically updated to reflect the committed changes.