From: Zack Rusin Date: Sat, 24 Oct 2009 05:43:47 +0000 (-0400) Subject: st/xorg: initialize indexes before reswizzling for yuv X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5fb60041edfa62c16e918829df22c4a52c09da9;p=mesa.git st/xorg: initialize indexes before reswizzling for yuv --- diff --git a/src/gallium/state_trackers/xorg/xorg_xv.c b/src/gallium/state_trackers/xorg/xorg_xv.c index b054ba80661..f4b0d564d66 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) {