Mesa (master): st/vdpau: use dst surface size if clip width/height is zero

Christian König deathsimple at kemper.freedesktop.org
Mon Feb 6 20:56:22 UTC 2012


Module: Mesa
Branch: master
Commit: 814be043fae0ed3498bbc4c8e8f07c2655c2438b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=814be043fae0ed3498bbc4c8e8f07c2655c2438b

Author: Christian König <deathsimple at vodafone.de>
Date:   Thu Feb  2 17:10:58 2012 +0100

st/vdpau: use dst surface size if clip width/height is zero

Just another fix for gstreamer.

Signed-off-by: Christian König <deathsimple at vodafone.de>

---

 src/gallium/state_trackers/vdpau/presentation.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c
index 0e086fc..25a6c86 100644
--- a/src/gallium/state_trackers/vdpau/presentation.c
+++ b/src/gallium/state_trackers/vdpau/presentation.c
@@ -236,8 +236,8 @@ vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue,
 
    dst_clip.x = 0;
    dst_clip.y = 0;
-   dst_clip.w = clip_width;
-   dst_clip.h = clip_height;
+   dst_clip.w = clip_width ? clip_width : drawable_surface->width;
+   dst_clip.h = clip_height ? clip_height : drawable_surface->height;
 
    vl_compositor_clear_layers(&pq->compositor);
    vl_compositor_set_rgba_layer(&pq->compositor, 0, surf->sampler_view, &src_rect, NULL);




More information about the mesa-commit mailing list