summaryrefslogtreecommitdiff
path: root/src/intel_driver.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2013-02-22 14:44:09 -0800
committerCarl Worth <cworth@cworth.org>2013-02-22 17:19:21 -0800
commite2aaf4ed3333231cf8cadcf6362743593026cd19 (patch)
treefc2be3e5cf8b86690c31eb34979a44b50894c837 /src/intel_driver.c
parentcbd8f16ea0e3b1b7eae57edfe343a332ae42373c (diff)
Refuse to load driver for depth-8 X server.
The driver is not functional at this depth, so tell the user as much and bail out. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31375 Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/intel_driver.c')
-rw-r--r--src/intel_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c
index 78071062..7f11978d 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -532,15 +532,15 @@ static Bool I830PreInit(ScrnInfoPtr scrn, int flags)
return FALSE;
switch (scrn->depth) {
- case 8:
case 15:
case 16:
case 24:
case 30:
break;
+ case 8:
default:
xf86DrvMsg(scrn->scrnIndex, X_ERROR,
- "Given depth (%d) is not supported by I830 driver\n",
+ "Given depth (%d) is not supported by intel driver\n",
scrn->depth);
return FALSE;
}