loader/dri3: Process event after each fence wait
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 5 Sep 2017 07:58:08 +0000 (09:58 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 7 Sep 2017 10:43:29 +0000 (12:43 +0200)
commita727c804a2c17db306c68e259ae845aa6382d3b1
tree57b09c44646aa67ae9e121fc4f05365ec371aec5
parente4018fdd85d8b58250c2cff8cdf4edd6b2b3c70b
loader/dri3: Process event after each fence wait

This tries to mimic dri2 behaviour where events are typically processed
while waiting for X replies. Since, during steady-state dri3 rendering, we
seldom wait for xcb replies, and haven't enabled any automatic event
processing, instead check for events after a fence wait.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/loader/loader_dri3_helper.c