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: 1f6dfc9df6 ("sna: Only flush GPU bo for a damage event")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2018-09-05 15:47:40 +01:00
parent a3bccba547
commit ac81d31fc5
1 changed files with 4 additions and 0 deletions

View File

@ -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