sna: Reduce DefaultDepth to 16 on older chipsets

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-02-24 11:22:01 +00:00
parent d7bba8512c
commit a19da0ea51
1 changed files with 3 additions and 1 deletions

View File

@ -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) {