diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-01-31 18:02:51 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-01-31 20:42:51 +0000 |
commit | 539b749416b275d84e05e2a5b62d946903aa3d29 (patch) | |
tree | 1bf737de9327d05fafbd573a74b6230179d4c17f /src | |
parent | bdb1a62ce21f3eb5e27e411b78f13ad2aea963a4 (diff) |
sna: Use 24bpp rendering by default for gen2 again
Too many users where unhappy that their software was broken. Too bad the
same software is also broken at high bit depths as well.
References: https://bugs.freedesktop.org/show_bug.cgi?id=73877
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_driver.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index fd0d3bd2..4ecef3cd 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -447,7 +447,6 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags) char buf[1024]; rgb defaultWeight = { 0, 0, 0 }; EntityInfoPtr pEnt; - int preferred_depth; Gamma zeros = { 0.0, 0.0, 0.0 }; int fd; @@ -513,11 +512,7 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags) xf86DrvMsg(scrn->scrnIndex, X_PROBED, "CPU: %s\n", sna_cpu_features_to_string(sna->cpu_features, buf)); - preferred_depth = sna->info->gen < 030 ? 15 : 24; - if (!fb_supports_depth(fd, preferred_depth)) - preferred_depth = 24; - - if (!xf86SetDepthBpp(scrn, preferred_depth, 0, 0, + if (!xf86SetDepthBpp(scrn, 24, 0, 0, Support32bppFb | SupportConvert24to32 | PreferConvert24to32)) goto cleanup; |