Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711116 - dev-qt/qtgui-5.13.2: Wrong colours of non-GL widgets when using OpenGL on big endian
Summary: dev-qt/qtgui-5.13.2: Wrong colours of non-GL widgets when using OpenGL on big...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL: https://bugreports.qt.io/browse/QTBUG...
Whiteboard: tracking upstream
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-02-29 21:37 UTC by Marcus Comstedt
Modified: 2020-03-20 20:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Screenshot of Qt5 demo "2dpaining" showing the issue (unpatched.png,37.09 KB, image/png)
2020-02-29 21:37 UTC, Marcus Comstedt
Details
Proposed patch to fix the swizzle on big endian (glswizzle.patch,1.36 KB, patch)
2020-02-29 21:38 UTC, Marcus Comstedt
Details | Diff
Screenshot of Qt5 demo "2dpainting" after applying the patch (patched.png,40.64 KB, image/png)
2020-02-29 21:39 UTC, Marcus Comstedt
Details

Note You need to log in before you can comment on or make changes to this bug.
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