summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-28 18:21:08 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-28 18:21:08 +0100
commit3d45f0affe263985f440e144203ed7cbb3803696 (patch)
treee47ab3e36a95b5b0dd5ff8793a38225fef80ff25 /src/sna/sna_driver.c
parentfb385745a2347f8966765567e78229d67ddc8d60 (diff)
sna: Honour the Option "DRI"
References: https://bugs.freedesktop.org/show_bug.cgi?id=52624 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 3bb23159..3f2ff2ed 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -508,7 +508,9 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags)
/* Set display resolution */
xf86SetDpi(scrn, 0, 0);
- sna->dri_available = !!xf86LoadSubModule(scrn, "dri2");
+ sna->dri_available = false;
+ if (xf86ReturnOptValBool(sna->Options, OPTION_DRI, TRUE))
+ sna->dri_available = !!xf86LoadSubModule(scrn, "dri2");
return TRUE;
}