radeon: add more debug info to the flush debug
authorDave Airlie <airlied@redhat.com>
Mon, 23 Feb 2009 03:49:29 +0000 (13:49 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 23 Feb 2009 04:04:22 +0000 (14:04 +1000)
src/mesa/drivers/dri/radeon/radeon_common.c

index 3c491d584a00e6a9d1d70e7441cdc35ef78df39e..f7c0d7d64f5df188301d59b4c77e6c21a70ce284 100644 (file)
@@ -663,7 +663,7 @@ void radeonFlush(GLcontext *ctx)
 {
        radeonContextPtr radeon = RADEON_CONTEXT(ctx);
        if (RADEON_DEBUG & DEBUG_IOCTL)
-               fprintf(stderr, "%s\n", __FUNCTION__);
+               fprintf(stderr, "%s %d\n", __FUNCTION__, radeon->cmdbuf.cs->cdw);
 
        if (radeon->dma.flush)
                radeon->dma.flush( ctx );