From: Marek Olšák Date: Sat, 1 Jun 2013 01:19:21 +0000 (+0200) Subject: st/dri: if flushing a drawable, don't set reason=SWAPBUFFERS X-Git-Tag: mesa-9.2.1~775 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3475b2213381cdbda7a620d4c0c7708f6969f489;p=platform%2Fupstream%2Fmesa.git st/dri: if flushing a drawable, don't set reason=SWAPBUFFERS 0 means SWAPBUFFERS. Reviewed-by: Brian Paul --- diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index a0b29d3..1dcc1f7 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -45,7 +45,7 @@ static void dri2_flush_drawable(__DRIdrawable *dPriv) { - dri_flush(dPriv->driContextPriv, dPriv, __DRI2_FLUSH_DRAWABLE, 0); + dri_flush(dPriv->driContextPriv, dPriv, __DRI2_FLUSH_DRAWABLE, -1); } static void