Skip to contentSkip to conversation

sna: Allow DRI3 on gen2/3

PATCH New Ville Syrjala 2 participants 2 messages Mar 21, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sna: Allow DRI3 on gen2/3

From: Ville Syrjälä <[email protected]>

Once we have DRI3 in Mesa i915 driver we can allow DRI3 on gen2/3.

But due to the supposed missing DRI2 fallback with older Mesa let's only do that if the user explicitly requests it. Note that when I tried this with modern Mesa that lacks i915 DRI3 support things seemed to fall back to DRI2 just fine, but better safe than sorry I guess.

Cc: Chris Wilson <[email protected]>
References: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9734

---
 src/sna/sna_driver.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
src/sna/sna_driver.c +2 -1
index d810b262b452..b0e1683362d3 100644
@@ -444,7 +444,8 @@ static void setup_dri(struct sna *sna)
 	sna->dri3.override =
 		!sna->dri3.available ||
 		xf86IsOptionSet(sna->Options, OPTION_DRI);
-	if (level >= 3 && sna->kgem.gen >= 040)
+	if (level >= 3 && (sna->kgem.gen >= 040 ||
+			   xf86IsOptionSet(sna->Options, OPTION_DRI)))
 		sna->dri3.enable = sna->dri3.available;
 #endif
 #if HAVE_DRI2
Signature · 6 lines
2.26.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

[Intel-gfx] ✗ Fi.CI.BUILD: failure for sna: Allow DRI3 on gen2/3

== Series Details ==

== Series Details ==

Series: sna: Allow DRI3 on gen2/3
URL : https://patchwork.freedesktop.org/series/88216/
State : failure

== Summary ==

Applying: sna: Allow DRI3 on gen2/3
error: sha1 information is lacking or useless (src/sna/sna_driver.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0001 sna: Allow DRI3 on gen2/3
When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx