summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-09-13 16:20:40 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-09-13 16:20:40 +0100
commita9242a77f0952d029be57d75615dd107af660de1 (patch)
treef85f83d173d4823b086537109f2dbe2144b6eadf
parent0056bfd11e9930c1bcad6c186cd80fbab3694a8d (diff)
sna: Add a couple of debug statements for why we may not flush the scanout
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index f7b784d1..a6353723 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -3211,16 +3211,21 @@ static Bool sna_accel_do_flush(struct sna *sna)
return_if_timer_active(FLUSH_TIMER);
priv = sna_accel_scanout(sna);
- if (priv == NULL)
+ if (priv == NULL) {
+ DBG(("%s -- no scanout attached\n", __FUNCTION__));
return FALSE;
+ }
- if (priv->cpu_damage == NULL && priv->gpu_bo->rq == NULL)
+ if (priv->cpu_damage == NULL && priv->gpu_bo->rq == NULL) {
+ DBG(("%s -- no pending write to scanout\n", __FUNCTION__));
return FALSE;
+ }
if (sna->timer[FLUSH_TIMER] == -1)
return TRUE;
- DBG(("%s, time=%ld\n", __FUNCTION__, (long)GetTimeInMillis()));
+ DBG(("%s, starting flush timer, at time=%ld\n",
+ __FUNCTION__, (long)GetTimeInMillis()));
/* Initial redraw after 10ms. */
to.it_value.tv_sec = 0;