Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 711116

Summary: dev-qt/qtgui-5.13.2: Wrong colours of non-GL widgets when using OpenGL on big endian
Product: Gentoo Linux Reporter: Marcus Comstedt <marcus>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: CONFIRMED ---    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: PPC64   
OS: Linux   
URL: https://bugreports.qt.io/browse/QTBUG-82599
Whiteboard: tracking upstream
Package list:
Runtime testing required: ---
Attachments: Screenshot of Qt5 demo "2dpaining" showing the issue
Proposed patch to fix the swizzle on big endian
Screenshot of Qt5 demo "2dpainting" after applying the patch

Description Marcus Comstedt 2020-02-29 21:37:20 UTC
Created attachment 616670 [details]
Screenshot of Qt5 demo "2dpaining" showing the issue

When using a QOpenGL widget on a big endian system, widgets _other_ than the QOpenGL widgets appear in the wrong colours.

This is because the swizzling to convert from QImage::Format_ARGB32 to GL_RGBA needs to be different on big endian (ARGB -> RGBA instead of BGRA -> RGBA).
Comment 1 Marcus Comstedt 2020-02-29 21:38:31 UTC
Created attachment 616672 [details, diff]
Proposed patch to fix the swizzle on big endian
Comment 2 Marcus Comstedt 2020-02-29 21:39:51 UTC
Created attachment 616674 [details]
Screenshot of Qt5 demo "2dpainting" after applying the patch
Comment 3 Andreas Sturmlechner gentoo-dev 2020-02-29 21:49:12 UTC
Is it the same with 5.14.1? If yes please send your patch upstream.

Please don't randomly add arches.
Comment 4 Marcus Comstedt 2020-03-01 07:57:41 UTC
As far as I can tell, the bug still exists in 5.14, 5.15 and 6.
Comment 5 Marcus Comstedt 2020-03-01 08:17:41 UTC
Created an upstreams report and put the link in the URL field.
Comment 6 Andreas Sturmlechner gentoo-dev 2020-03-20 20:13:20 UTC
https://codereview.qt-project.org/c/qt/qtbase/+/292614