From f837807cc257fbedd35fa6101dc0b4a57e5ad78d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 1 Sep 2012 10:36:09 +0100 Subject: [PATCH] sna/dri: Remove busy-wait spin from vblank chaining of swapbuffers The issue being that, due to the delay, the chained swap would miss its intended vblank and so cause an unwanted reduction in frame throughput and increase output latency even further. Since both client and server have other rate-limiting processes in place, we can forgo the stall here and still keep the clients in check. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54274 Signed-off-by: Chris Wilson --- src/sna/sna_dri.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index 0210d73a..77e4e26c 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -1268,9 +1268,6 @@ void sna_dri_vblank_handler(struct sna *sna, struct drm_event_vblank *event) break; case DRI2_SWAP_THROTTLE: - if (!sna_dri_blit_complete(sna, info)) - return; - DBG(("%s: %d complete, frame=%d tv=%d.%06d\n", __FUNCTION__, info->type, event->sequence, event->tv_sec, event->tv_usec));