summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-04-09 11:54:49 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-04-09 11:54:49 +0100
commitf05552cd7a43ea46ac1a37b68b05be2a82abaeb1 (patch)
treea2468ed404e4842159b192e1787837dda54c0c5c /src
parentcf4eb827861bf70d4d45a2ffe062d4c05a1564a6 (diff)
sna: Add some DBG for whole CPU pixmap migration
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_accel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 8abfdd09..9f455455 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -2502,8 +2502,11 @@ sna_drawable_move_region_to_cpu(DrawablePtr drawable,
if (flags & MOVE_READ || (priv->gpu_damage == NULL && priv->cpu_damage == NULL)) {
if (flags & MOVE_WHOLE_HINT ||
- (flags & MOVE_WRITE && (priv->create & KGEM_CAN_CREATE_GPU) == 0))
+ (flags & MOVE_WRITE && (priv->create & KGEM_CAN_CREATE_GPU) == 0)) {
+ DBG(("%s: promoting to whole CPU migration (GPU damage? %d, CPU damage? %d), read? %d, write? %d, whole? %d, can-create-gpu? %d\n",
+ __FUNCTION__, priv->gpu_damage != NULL, priv->cpu_damage != NULL, flags & MOVE_READ, flags & MOVE_WRITE, flags & MOVE_WHOLE_HINT, priv->create & KGEM_CAN_CREATE_GPU));
return _sna_pixmap_move_to_cpu(pixmap, flags);
+ }
}
if (get_drawable_deltas(drawable, pixmap, &dx, &dy)) {