xserver: Branch 'master'
Adam Jackson
ajax at kemper.freedesktop.org
Tue Feb 6 19:04:38 UTC 2018
glx/glxdricommon.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit bebcc8477c8070ade9dd4be7299c718baeab3d7a
Author: Mario Kleiner <mario.kleiner.de at gmail.com>
Date: Mon Feb 5 11:20:41 2018 +0100
glx: Only assign 8 bpc fbconfigs for composite visuals.
Commit 91c42093b248 ("glx: Duplicate relevant fbconfigs for
compositing visuals") adds many new depth 32 fbconfigs as
composite visuals. On a X-Screen running at depth 24, this
also adds bgra 10-10-10-2 fbconigs, as they also have
config.rgbBits == 32, but these are not displayable on a
depth 24 screen, leading to visually corrupted desktops
under some compositors, e.g., fdo bug 104597 "Compton
weird colors" when running compton with
"compton --backend glx".
Be more conservative for now and only select fbconfigs with
8 bpc red, green, blue components for composite visuals.
Fixes: 91c42093b248 ("glx: Duplicate relevant fbconfigs for
compositing visuals")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104597
Signed-off-by: Mario Kleiner <mario.kleiner.de at gmail.com>
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
diff --git a/glx/glxdricommon.c b/glx/glxdricommon.c
index 1879bfcd8..a16e72849 100644
--- a/glx/glxdricommon.c
+++ b/glx/glxdricommon.c
@@ -195,6 +195,9 @@ createModeFromConfig(const __DRIcoreExtension * core,
if (duplicateForComp &&
(render_type_is_pbuffer_only(renderType) ||
config->config.rgbBits != 32 ||
+ config->config.redBits != 8 ||
+ config->config.greenBits != 8 ||
+ config->config.blueBits != 8 ||
config->config.visualRating != GLX_NONE ||
config->config.sampleBuffers != 0)) {
free(config);
More information about the xorg-commit
mailing list