diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-04 09:34:14 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-04 09:55:54 +0000 |
commit | db629a38342883176d58357fa014176c9e45115d (patch) | |
tree | 87f86e8595fe7398ad963fca58a0132c2c03f456 /src/sna/sna_driver.c | |
parent | aef2f99d051dfa37717e5d6d6de9b548d706a520 (diff) |
Allow runtime selection between DRI levels
Rather than imposing a maximum DRI level at compile time by compiling
out unwanted protocol handlers, default to limiting it at runtime so
that we can switch between any level.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index 79b62a88..8c0d0b5d 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -436,7 +436,7 @@ static void setup_dri(struct sna *sna) sna->dri2.available = false; sna->dri3.available = false; - level = intel_option_cast_to_unsigned(sna->Options, OPTION_DRI, ~0); + level = intel_option_cast_to_unsigned(sna->Options, OPTION_DRI, DEFAULT_DRI_LEVEL); #if HAVE_DRI3 if (level >= 3) sna->dri3.available = !!xf86LoadSubModule(sna->scrn, "dri3"); |