[Intel-gfx] [PATCH 2/2] sna: use 24bit preferred depth on original gen2

Daniel Vetter daniel.vetter at ffwll.ch
Tue Oct 8 10:02:39 CEST 2013


In my quick testing both 16 and 15 bit rendering seems to result a lot
of non-rendering in the xfce login manager (and some apparent
stride-mismatches at 16 bit thrown in for added fun).

Until that works better simply opt out the lower-bit modes by default.

Cc: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 src/sna/sna_driver.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 00d90bf..d72787e 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -520,6 +520,9 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags)
 	}
 
 	preferred_depth = sna->info->gen < 030 ? 15 : 24;
+	/* i830M seems to be horribly broken with 16/15 bits */
+	if (sna->info->gen == 020)
+		preferred_depth = 24;
 	if (!fb_supports_depth(fd, preferred_depth))
 		preferred_depth = 24;
 
-- 
1.8.1.4




More information about the Intel-gfx mailing list