From patchwork Fri Feb 22 22:46:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Worth X-Patchwork-Id: 2177981 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 4DAC5DFABD for ; Fri, 22 Feb 2013 22:46:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1EBF5E5FA4 for ; Fri, 22 Feb 2013 14:46:39 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) by gabe.freedesktop.org (Postfix) with ESMTP id 76758E5C60 for ; Fri, 22 Feb 2013 14:46:30 -0800 (PST) Received: from yoom.amr.corp.intel.com (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 0C1836DE0062; Fri, 22 Feb 2013 14:46:29 -0800 (PST) From: Carl Worth To: intel-gfx@lists.freedesktop.org Date: Fri, 22 Feb 2013 14:46:28 -0800 Message-Id: <1361573188-4249-1-git-send-email-cworth@cworth.org> X-Mailer: git-send-email 1.7.10.4 Subject: [Intel-gfx] [PATCH] Refuse to load driver for depth-8 X server. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org 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 --- src/intel_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel_driver.c b/src/intel_driver.c index 7807106..7f11978 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; }