aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/presentation.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2012-02-10 12:34:22 +0100
committerChristian König <[email protected]>2012-02-21 11:13:11 +0100
commit736dda82ca5477b8976e2c6b810a71efe2337267 (patch)
tree9c4b6b3c774bab115be90a2a16cbc15b890dad64 /src/gallium/state_trackers/vdpau/presentation.c
parenta206c4cd69a881bf3f8d960607d604b6d53e3a26 (diff)
st/vdpau: remove unnecessary tracing and adjust tracing levels a bit
Tracing function entry/exits is a bit pointless when VDPAU_TRACE=1 does the same thing. v2: use WARN instead of ERR for application problems Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau/presentation.c')
-rw-r--r--src/gallium/state_trackers/vdpau/presentation.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c
index 25a6c861115..13025d21156 100644
--- a/src/gallium/state_trackers/vdpau/presentation.c
+++ b/src/gallium/state_trackers/vdpau/presentation.c
@@ -47,8 +47,6 @@ vlVdpPresentationQueueCreate(VdpDevice device,
vlVdpPresentationQueue *pq = NULL;
VdpStatus ret;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Creating PresentationQueue\n");
-
if (!presentation_queue)
return VDP_STATUS_INVALID_POINTER;
@@ -99,8 +97,6 @@ vlVdpPresentationQueueDestroy(VdpPresentationQueue presentation_queue)
{
vlVdpPresentationQueue *pq;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Destroying PresentationQueue\n");
-
pq = vlGetDataHTAB(presentation_queue);
if (!pq)
return VDP_STATUS_INVALID_HANDLE;
@@ -123,8 +119,6 @@ vlVdpPresentationQueueSetBackgroundColor(VdpPresentationQueue presentation_queue
vlVdpPresentationQueue *pq;
union pipe_color_union color;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Setting background color\n");
-
if (!background_color)
return VDP_STATUS_INVALID_POINTER;
@@ -152,8 +146,6 @@ vlVdpPresentationQueueGetBackgroundColor(VdpPresentationQueue presentation_queue
vlVdpPresentationQueue *pq;
union pipe_color_union color;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Getting background color\n");
-
if (!background_color)
return VDP_STATUS_INVALID_POINTER;
@@ -181,8 +173,6 @@ vlVdpPresentationQueueGetTime(VdpPresentationQueue presentation_queue,
vlVdpPresentationQueue *pq;
struct timespec ts;
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Getting queue time\n");
-
if (!current_time)
return VDP_STATUS_INVALID_POINTER;
@@ -266,7 +256,7 @@ vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue,
sprintf(cmd, "xwd -id %d -out vdpau_frame_%08d.xwd", (int)pq->drawable, ++framenum);
if (system(cmd) != 0)
- VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Dumping surface %d failed.\n", surface);
+ VDPAU_MSG(VDPAU_ERR, "[VDPAU] Dumping surface %d failed.\n", surface);
}
pipe_surface_reference(&drawable_surface, NULL);