summaryrefslogtreecommitdiff
path: root/src/intel_driver.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2011-04-20 11:39:55 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2011-04-20 11:39:55 -0700
commit0944e2d5749f5122cd9802c4a2421106fa829ea4 (patch)
tree8472c3bc4ecd39b5b4c58483092e94d984c0f335 /src/intel_driver.c
parent1d102cc6ed21d1c4afa47800eecd24b9d663f689 (diff)
Add basic 30 bit depth support
Still need to handle video and gamma correction, but this gets the display up and running at 30 bit depth if the kernel and display support it. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'src/intel_driver.c')
-rw-r--r--src/intel_driver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c
index 7014198e..b79f8c99 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -328,10 +328,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;
}
}
@@ -586,6 +586,7 @@ static Bool I830PreInit(ScrnInfoPtr scrn, int flags)
case 15:
case 16:
case 24:
+ case 30:
break;
default:
xf86DrvMsg(scrn->scrnIndex, X_ERROR,