st/xorg: initialize indexes before reswizzling for yuv
authorZack Rusin <zackr@vmware.com>
Sat, 24 Oct 2009 05:43:47 +0000 (01:43 -0400)
committerZack Rusin <zackr@vmware.com>
Mon, 26 Oct 2009 12:15:48 +0000 (08:15 -0400)
src/gallium/state_trackers/xorg/xorg_xv.c

index b054ba8..f4b0d56 100644 (file)
@@ -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) {