sna: Add a DBG to the periodic flush mechanism

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-06-28 11:44:45 +01:00
parent 87dd6408a5
commit 85e4f48a87
2 changed files with 3 additions and 1 deletions

View File

@ -3029,6 +3029,8 @@ bool __kgem_flush(struct kgem *kgem, struct kgem_bo *bo)
return false;
bo->needs_flush = kgem_busy(kgem, bo->handle);
DBG(("%s: handle=%d, busy?=%d\n",
__FUNCTION__, bo->handle, bo->needs_flush));
return bo->needs_flush;
}

View File

@ -12333,7 +12333,7 @@ static bool has_shadow(struct sna *sna)
static bool need_flush(struct sna *sna, struct sna_pixmap *scanout)
{
DBG(("%s: scanout=%d shadow?=%d || (cpu?=%d || gpu?=%d) && !busy=%d)\n",
DBG(("%s: scanout=%d shadow?=%d, (cpu?=%d || gpu?=%d), busy=%d)\n",
__FUNCTION__,
scanout && scanout->gpu_bo ? scanout->gpu_bo->handle : 0,
has_shadow(sna),