mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 21:32:13 +02:00
xserver-xorg: fix 16bit modes
Discovered on beaglebone black (From OE-Core rev: 21fcb42d97e90eb76283b69ab876729f4cee7ad7) Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b76161a9a8
commit
6254e28b31
@@ -0,0 +1,46 @@
|
||||
From 5028ef46ff4ab0930224b71024a7349b05610d42 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Agner <stefan@agner.ch>
|
||||
Date: Thu, 22 Dec 2016 15:41:06 +0100
|
||||
Subject: [PATCH] modesetting: Fix 16 bit depth/bpp mode
|
||||
|
||||
When setting DefaultDepth to 16 in the Screen section, the current
|
||||
code requests a 32 bpp framebuffer, however the X-Server seems to
|
||||
assumes 16 bpp.
|
||||
|
||||
Fixes commit 21217d02168d ("modesetting: Implement 32->24 bpp
|
||||
conversion in shadow update")
|
||||
|
||||
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
||||
|
||||
Upstream-Status: Submitted [1]
|
||||
|
||||
[1] https://lists.x.org/archives/xorg-devel/2016-December/052113.html
|
||||
---
|
||||
hw/xfree86/drivers/modesetting/driver.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c
|
||||
index d7030e5..647ad83 100644
|
||||
--- a/hw/xfree86/drivers/modesetting/driver.c
|
||||
+++ b/hw/xfree86/drivers/modesetting/driver.c
|
||||
@@ -930,7 +930,7 @@ PreInit(ScrnInfoPtr pScrn, int flags)
|
||||
"Using 24bpp hw front buffer with 32bpp shadow\n");
|
||||
defaultbpp = 32;
|
||||
} else {
|
||||
- ms->drmmode.kbpp = defaultbpp;
|
||||
+ ms->drmmode.kbpp = 0;
|
||||
}
|
||||
bppflags = PreferConvert24to32 | SupportConvert24to32 | Support32bppFb;
|
||||
|
||||
@@ -950,6 +950,8 @@ PreInit(ScrnInfoPtr pScrn, int flags)
|
||||
return FALSE;
|
||||
}
|
||||
xf86PrintDepthBpp(pScrn);
|
||||
+ if (!ms->drmmode.kbpp)
|
||||
+ ms->drmmode.kbpp = pScrn->bitsPerPixel;
|
||||
|
||||
/* Process the options */
|
||||
xf86CollectOptions(pScrn, NULL);
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -3,6 +3,7 @@ require xserver-xorg.inc
|
||||
SRC_URI += "file://musl-arm-inb-outb.patch \
|
||||
file://0001-configure.ac-Fix-check-for-CLOCK_MONOTONIC.patch \
|
||||
file://0002-configure.ac-Fix-wayland-scanner-and-protocols-locat.patch \
|
||||
file://0003-modesetting-Fix-16-bit-depth-bpp-mode.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "caa8ee7b2950abbf734347d137529fb6"
|
||||
SRC_URI[sha256sum] = "79ae2cf39d3f6c4a91201d8dad549d1d774b3420073c5a70d390040aa965a7fb"
|
||||
|
||||
Reference in New Issue
Block a user