From ac81d31fc5fa929b59ba74751362cf3695d114fa Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 5 Sep 2018 15:47:40 +0100 Subject: [PATCH] sna: Disable the reduced flush optimisation Deferring the flush until Mesa checks its DRI2 buffer status only works so long as Mesa is checking its DRI2 buffers. Hint, it doesn't.... Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97914 References: https://bugs.freedesktop.org/show_bug.cgi?id=52930 References: https://bugs.freedesktop.org/show_bug.cgi?id=90264 References: https://bugs.freedesktop.org/show_bug.cgi?id=101819 References: https://bugs.freedesktop.org/show_bug.cgi?id=101620 Fixes: 1f6dfc9df678 ("sna: Only flush GPU bo for a damage event") Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 2f669bcf..7fd00b9a 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -17453,11 +17453,15 @@ sna_flush_callback(CallbackListPtr *list, pointer user_data, pointer call_data) { struct sna *sna = user_data; +#if 0 /* XXX requires mesa to implement glXWaitX()! */ if (!sna->needs_dri_flush) return; sna_accel_flush(sna); sna->needs_dri_flush = false; +#else + sna_accel_flush(sna); +#endif } static void