mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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 <deathsimple@vodafone.de>
This commit is contained in:
parent
fa66fda5b0
commit
f23a2cb5d2
1 changed files with 6 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue