st/dri: disallow recursion in dri_flush
authorMarek Olšák <maraeo@gmail.com>
Mon, 21 Jan 2013 15:19:41 +0000 (16:19 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 24 Jan 2013 17:22:14 +0000 (18:22 +0100)
commit4f0563a6584dd83462d5cf35a7a1ebc4a4d6378f
treea722df0fc79af3e17c509ca43d2609b07b0fa5ed
parentfffe3e090878175269af8672d20c14a0ccab78a9
st/dri: disallow recursion in dri_flush

ST_FLUSH_FRONT may call driThrottle, which is implemented with dri_flush.
This prevents double flush as well as fence leaks caused by a recursion
in the middle of throttling.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58839

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/state_trackers/dri/common/dri_drawable.c
src/gallium/state_trackers/dri/common/dri_drawable.h