diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-07-02 17:25:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-07-02 17:30:50 +0100 |
commit | 9154dff9aedad3271f629edb1ccc9c8d273ca7bc (patch) | |
tree | 4ddff5949148f1c42e8a7c2b2cb69cd2e403039c /src/sna/sna_driver.c | |
parent | 784dc0228a61661ecb1c3e7b2279bf3811d1309d (diff) |
DRI3 is not supported by mesa/i915
Since mesa requires __DRI2_FLUSH version 4 for its DRI3 support and
mesa/i915 only provides version 3, libGL fails to load (not even falling
back to DRI2). Workaround this by not enabling DRI3.
References: https://bugs.freedesktop.org/show_bug.cgi?id=96783
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 fce64bad..455113f0 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -437,7 +437,7 @@ static void setup_dri(struct sna *sna) level = intel_option_cast_to_unsigned(sna->Options, OPTION_DRI, DEFAULT_DRI_LEVEL); #if HAVE_DRI3 - if (level >= 3) + if (level >= 3 && sna->kgem.gen >= 040) sna->dri3.available = !!xf86LoadSubModule(sna->scrn, "dri3"); #endif #if HAVE_DRI2 |