From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Lutomirski Subject: [ANCIENT PATCH] Enable 30-bit depth Date: Tue, 19 Apr 2011 15:50:01 -0400 Message-ID: <9ede551cc3ae3eb946c3466d283d056bb59fddc1.1303242380.git.luto@mit.edu> References: <1303240361-6057-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU [18.7.68.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 13BC29E7C6 for ; Tue, 19 Apr 2011 12:55:20 -0700 (PDT) In-Reply-To: <1303240361-6057-1-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Andy Lutomirski --- This patch is over a year old, caused problems, and probably doesn't even apply anymore. It worked at least a little bit, though. There's a lot more that needs doing, especially in relation to DirectColor mode. src/intel_driver.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intel_driver.c b/src/intel_driver.c index 1ef16ed..99d32b8 100644 --- a/src/intel_driver.c +++ b/src/intel_driver.c @@ -372,10 +372,10 @@ static void intel_check_dri_option(ScrnInfoPtr scrn) if (!xf86ReturnOptValBool(intel->Options, OPTION_DRI, TRUE)) intel->directRenderingType = DRI_DISABLED; - if (scrn->depth != 16 && scrn->depth != 24) { + if (scrn->depth != 16 && scrn->depth != 24 && scrn->depth != 30) { xf86DrvMsg(scrn->scrnIndex, X_CONFIG, "DRI is disabled because it " - "runs only at depths 16 and 24.\n"); + "runs only at depths 16, 24, and 30.\n"); intel->directRenderingType = DRI_DISABLED; } } @@ -570,6 +570,7 @@ static Bool I830PreInit(ScrnInfoPtr scrn, int flags) case 15: case 16: case 24: + case 30: break; default: xf86DrvMsg(scrn->scrnIndex, X_ERROR, -- 1.7.4.2