summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-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) {