[platforms/fbdev] Properly detect a BGR image format
ClosedPublic

Authored by graesslin on Jul 11 2016, 8:56 AM.

Details

Summary

If the format of the framebuffer is BGR we cannot create an RGB image
format from it - the rendering is incorrect. Unfortunately QImage does
not support a BGR image format.

To solve this problem we still use an RGB image format but on rendering
the front buffer is rgbSwapped to convert the RGB image to a BGR image.

BUG: 365243
FIXED-IN: 5.7.1

Test Plan

No way to test this on my system

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 5072.Jul 11 2016, 8:56 AM
graesslin retitled this revision from to [platforms/fbdev] Properly detect a BGR image format.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptJul 11 2016, 8:56 AM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
graesslin updated this revision to Diff 5098.Jul 12 2016, 2:14 PM

Called the initFormat in wrong place. Now also tested on a neon vm image

sebas accepted this revision.Jul 12 2016, 10:58 PM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Jul 12 2016, 10:58 PM
This revision was automatically updated to reflect the committed changes.