summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-02-24 11:22:01 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-02-24 11:22:01 +0000
commita19da0ea517127052ae49cdd6441e8b6077ca523 (patch)
tree755e374cbd3b1db759e71bd3fec5c8a040fba64d
parentd7bba8512c6db5f58448b513d1f4290938b0abd3 (diff)
sna: Reduce DefaultDepth to 16 on older chipsets
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_driver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index ffeaead5..b73f3c5a 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -453,6 +453,7 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags)
struct sna *sna;
rgb defaultWeight = { 0, 0, 0 };
EntityInfoPtr pEnt;
+ int preferred_depth;
int flags24;
Gamma zeros = { 0.0, 0.0, 0.0 };
int fd;
@@ -508,7 +509,8 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags)
flags24 = Support32bppFb | PreferConvert24to32 | SupportConvert24to32;
- if (!xf86SetDepthBpp(scrn, 0, 0, 0, flags24))
+ preferred_depth = sna->info->gen < 040 ? 16 : 24;
+ if (!xf86SetDepthBpp(scrn, preferred_depth, 0, 0, flags24))
return FALSE;
switch (scrn->depth) {