loader/dri3: Also wait for front buffer fence if we triggered it
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 1 Oct 2018 16:43:46 +0000 (18:43 +0200)
committerMichel Dänzer <michel@daenzer.net>
Thu, 18 Oct 2018 14:52:06 +0000 (16:52 +0200)
commitc20ba1be1843d035f36e9794bee7aea9abfc2f8b
tree6bf06aa986e75be911fe3442fd289d20740232b9
parent00bb42105d6edf6e432c0e3712ffb9d3eb0aece4
loader/dri3: Also wait for front buffer fence if we triggered it

In that case, we have to wait for the fence to synchronize with the
corresponding drawing we triggered in the X server.

Fixes incorrect display with the i965 driver and some applications, e.g.
solvespace.

Bugzilla: https://bugs.freedesktop.org/108097
Fixes: aefac10fecc9 "loader/dri3: Only wait for back buffer fences in
                     dri3_get_buffer"
Tested-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
src/loader/loader_dri3_helper.c