Diffusion KWin aaf8ce16dfb2

[platforms/fbdev] Properly detect a BGR image format

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

Description

[platforms/fbdev] Properly detect a BGR image format

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.2

Test Plan: Tested on a neon kvm

Reviewers: KWin, Plasma on Wayland

Subscribers: plasma-devel, kwin

Tags: Plasma on Wayland, KWin

Differential Revision: https://phabricator.kde.org/D2134

Details

Committed
graesslinJul 13 2016, 7:37 AM
Differential Revision
D2134: [platforms/fbdev] Properly detect a BGR image format
Parents
R108:66174846f171: Update version number for 5.7.1 GIT_SILENT
Branches
Unknown
Tags
Unknown