summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2009-10-24 01:43:47 -0400
committerZack Rusin <zackr@vmware.com>2009-10-26 08:15:48 -0400
commitb5fb60041edfa62c16e918829df22c4a52c09da9 (patch)
treef5c534a0a2d4fed724bcecb9177ee985c87cb637
parent0b069d648b787636cc57149f47a06fb16f7629ab (diff)
st/xorg: initialize indexes before reswizzling for yuv
-rw-r--r--src/gallium/state_trackers/xorg/xorg_xv.c2
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 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) {