From: Christian König Date: Mon, 5 Mar 2012 15:44:42 +0000 (+0100) Subject: st/vdpau: add xine workaround X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e5f3cdca51e08320f38089f627fd059b7ebfa99;p=mesa.git st/vdpau: add xine workaround For reasons I don't understand xine tries to set the surface format by using a zero pitch. Signed-off-by: Christian König --- diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c index 91626022501..c829c1ff7de 100644 --- a/src/gallium/state_trackers/vdpau/surface.c +++ b/src/gallium/state_trackers/vdpau/surface.c @@ -292,7 +292,7 @@ vlVdpVideoSurfacePutBitsYCbCr(VdpVideoSurface surface, for (i = 0; i < 3; ++i) { struct pipe_sampler_view *sv = sampler_views[i]; - if (!sv) continue; + if (!sv || !source_pitches[i]) continue; for (j = 0; j < sv->texture->depth0; ++j) { struct pipe_box dst_box = {