diff options
author | Christian König <[email protected]> | 2012-03-15 11:14:47 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2012-03-22 09:47:04 +0100 |
commit | f23a2cb5d2f8087cbf0537aa46e353955ae3a6a8 (patch) | |
tree | af357bfc107e6a585981b27d5b4688972e5aa80b /src/gallium | |
parent | fa66fda5b042d8735145d2ac1e64b6e7feacd634 (diff) |
st/vdpau: improve frame dumping functionality a bit
Just a workaround until we get a real unit-
testing tool for VDPAU.
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/vdpau/presentation.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c index d85e656b544..2e3bea94154 100644 --- a/src/gallium/state_trackers/vdpau/presentation.c +++ b/src/gallium/state_trackers/vdpau/presentation.c @@ -286,9 +286,12 @@ vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue, static unsigned int framenum = 0; char cmd[256]; - sprintf(cmd, "xwd -id %d -out vdpau_frame_%08d.xwd", (int)pq->drawable, ++framenum); - if (system(cmd) != 0) - VDPAU_MSG(VDPAU_ERR, "[VDPAU] Dumping surface %d failed.\n", surface); + if (framenum) { + sprintf(cmd, "xwd -id %d -silent -out vdpau_frame_%08d.xwd", (int)pq->drawable, framenum); + if (system(cmd) != 0) + VDPAU_MSG(VDPAU_ERR, "[VDPAU] Dumping surface %d failed.\n", surface); + } + framenum++; } pipe_resource_reference(&tex, NULL); |