Module: Mesa Branch: master Commit: b5fb60041edfa62c16e918829df22c4a52c09da9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b5fb60041edfa62c16e918829df22c4a52c09da9
Author: Zack Rusin <za...@vmware.com> Date: Sat Oct 24 01:43:47 2009 -0400 st/xorg: initialize indexes before reswizzling for yuv --- src/gallium/state_trackers/xorg/xorg_xv.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/xorg/xorg_xv.c b/src/gallium/state_trackers/xorg/xorg_xv.c index b054ba8..f4b0d56 100644 --- a/src/gallium/state_trackers/xorg/xorg_xv.c +++ b/src/gallium/state_trackers/xorg/xorg_xv.c @@ -237,6 +237,8 @@ copy_packed_data(ScrnInfoPtr pScrn, umap = (char*)screen->transfer_map(screen, utrans); vmap = (char*)screen->transfer_map(screen, vtrans); + yidx = uidx = vidx = 0; + switch (id) { case FOURCC_YV12: { for (i = 0; i < w; ++i) { _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit