summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-09-01 10:36:09 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-09-01 12:25:57 +0100
commitf837807cc257fbedd35fa6101dc0b4a57e5ad78d (patch)
treeb7097a5272cef5b087d82068c07f22eec15bbc45
parentb56e8c5105c858452ca4eabf15b298fc06dfd3c8 (diff)
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 <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_dri.c3
1 files changed, 0 insertions, 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));