[Spice-devel] [PATHCH win-qxl 7/8] display/rop.c: more verbose debugging (for guestdebug>=3)

Alon Levy alevy at redhat.com
Thu Apr 7 09:10:44 PDT 2011


---
 display/rop.c |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/display/rop.c b/display/rop.c
index dce6e44..29fbe16 100644
--- a/display/rop.c
+++ b/display/rop.c
@@ -1267,7 +1267,15 @@ BOOL APIENTRY DrvBitBlt(SURFOBJ *dest, SURFOBJ *src, SURFOBJ *mask, CLIPOBJ *cli
 
     CountCall(pdev, CALL_COUNTER_BIT_BLT);
 
-    DEBUG_PRINT((pdev, 3, "%s\n", __FUNCTION__));
+    DEBUG_PRINT((pdev, 3, "%s [%d,%u,(%d,%d,%d,%d),%d,%u,(%d,%d,%d,%d)]\n",
+        __FUNCTION__, src ? src->iType : -1, GetSurfaceId(src),
+        clip ? clip->rclBounds.left : -1,
+        clip ? clip->rclBounds.right : -1,
+        clip ? clip->rclBounds.top : -1,
+        clip ? clip->rclBounds.bottom : -1,
+        dest ? dest->iType : -1, GetSurfaceId(dest),
+        dest_rect->left, dest_rect->right, dest_rect->top, dest_rect->bottom));
+
     if ((res = _BitBlt(pdev, dest, src, mask, clip, color_trans, dest_rect, src_pos, mask_pos,
                        brush, brush_pos, rop4))) {
         if (res == QXL_UNSUPPORTED) {
@@ -1296,7 +1304,16 @@ BOOL APIENTRY DrvCopyBits(SURFOBJ *dest, SURFOBJ *src, CLIPOBJ *clip,
 
     CountCall(pdev, CALL_COUNTER_BIT_BLT);
 
-    DEBUG_PRINT((pdev, 3, "%s\n", __FUNCTION__));
+    DEBUG_PRINT_ONCE((pdev, 3, "%s [src:uniq,s:surface_id,(clip),dest:uniq,d:surface_id,(d_rect)]\n", __FUNCTION__));
+
+    DEBUG_PRINT((pdev, 3, "%s [%d,%u,(%d,%d,%d,%d),%d,%u,(%d,%d,%d,%d)]\n",
+        __FUNCTION__, src ? src->iType : -1, GetSurfaceId(src),
+        clip ? clip->rclBounds.left : -1,
+        clip ? clip->rclBounds.right : -1,
+        clip ? clip->rclBounds.top : -1,
+        clip ? clip->rclBounds.bottom : -1, dest ? dest->iType : -1,
+        GetSurfaceId(dest),
+        dest_rect->left, dest_rect->right, dest_rect->top, dest_rect->bottom));
 
     return _BitBlt(pdev, dest, src, NULL, clip, color_trans, dest_rect, src_pos, NULL, NULL,
                    NULL, /*SRCCOPY*/ 0xcccc) == QXL_SUCCESS ? TRUE : FALSE;
-- 
1.7.4.2



More information about the Spice-devel mailing list