framebuffer: red and blue are swapped on devices using MSM8974
I noticed that when using the framebuffer display with wayland on weston or plasma-mobile, the red and blue colors are swapped.
The problem has been found in the following devices, all sharing the MSM8974 SoC:
- oneplus-bacon, reported by @Nimayer
- samsung-klte, reported by @minlexx
- fairphone-fp2, reported by @z3ntu
Edit: The problem has been solved
Apparently the problem was due to an inverted byte order of the pixel format in the framebuffer driver.
Problem has been fixed with:
Here is an example picture of the problem