Mesa (pipe-video): [g3dvl] some more debugging output in xvmc st

Christian König deathsimple at kemper.freedesktop.org
Sun Apr 3 12:01:21 PDT 2011


Module: Mesa
Branch: pipe-video
Commit: e6176ce3719e6c6e88d31ae7307154386e83553b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6176ce3719e6c6e88d31ae7307154386e83553b

Author: Christian König <deathsimple at vodafone.de>
Date:   Sun Apr  3 19:57:49 2011 +0200

[g3dvl] some more debugging output in xvmc st

---

 src/gallium/state_trackers/xorg/xvmc/surface.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/xorg/xvmc/surface.c b/src/gallium/state_trackers/xorg/xvmc/surface.c
index 679b5cf..efbebaa 100644
--- a/src/gallium/state_trackers/xorg/xvmc/surface.c
+++ b/src/gallium/state_trackers/xorg/xvmc/surface.c
@@ -233,7 +233,8 @@ Status XvMCRenderSurface(Display *dpy, XvMCContext *context, unsigned int pictur
    XvMCSurfacePrivate *future_surface_priv;
    struct pipe_mpeg12_macroblock pipe_macroblocks[num_macroblocks];
 
-   XVMC_MSG(XVMC_TRACE, "[XvMC] Rendering to surface %p.\n", target_surface);
+   XVMC_MSG(XVMC_TRACE, "[XvMC] Rendering to surface %p, with past %p and future %p\n",
+            target_surface, past_surface, future_surface);
 
    assert(dpy);
 
@@ -320,6 +321,8 @@ Status XvMCFlushSurface(Display *dpy, XvMCSurface *surface)
    // don't call flush here, because this is usually
    // called once for every slice instead of every frame
 
+   XVMC_MSG(XVMC_TRACE, "[XvMC] Flushing surface %p\n", surface);
+
    return Success;
 }
 
@@ -331,6 +334,8 @@ Status XvMCSyncSurface(Display *dpy, XvMCSurface *surface)
    if (!surface)
       return XvMCBadSurface;
 
+   XVMC_MSG(XVMC_TRACE, "[XvMC] Syncing surface %p\n", surface);
+
    return Success;
 }
 



More information about the mesa-commit mailing list