diff options
author | Zack Rusin <[email protected]> | 2009-10-24 01:43:47 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2009-10-26 08:15:48 -0400 |
commit | b5fb60041edfa62c16e918829df22c4a52c09da9 (patch) | |
tree | f5c534a0a2d4fed724bcecb9177ee985c87cb637 /src | |
parent | 0b069d648b787636cc57149f47a06fb16f7629ab (diff) |
st/xorg: initialize indexes before reswizzling for yuv
Diffstat (limited to 'src')
-rw-r--r-- | 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 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) { |