diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2008-02-28 12:23:58 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2008-02-28 12:29:51 +0100 |
commit | 5249f450a2487475a95531603cc8668db2c21c33 (patch) | |
tree | 88828bc2e69d6575129a6376eaa67ba70ac0705f /src | |
parent | e40d75fd8b2aece9dae8076fac822a4a83025fb2 (diff) |
Fix 16 bit packed YUV XVideo playback on big endian systems with DRI disabled.
http://bugs.freedesktop.org/show_bug.cgi?id=14668
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_video.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c index 7502e1ed..3cbd8f69 100644 --- a/src/radeon_video.c +++ b/src/radeon_video.c @@ -2159,6 +2159,13 @@ RADEONCopyData( unsigned int bpp ){ RADEONInfoPtr info = RADEONPTR(pScrn); + + /* Get the byte-swapping right for big endian systems */ + if ( bpp == 2 ) { + w *= 2; + bpp = 1; + } + #ifdef XF86DRI if ( info->directRenderingEnabled && info->DMAForXv ) @@ -2168,13 +2175,6 @@ RADEONCopyData( int x, y; unsigned int hpass; - /* Get the byte-swapping right for big endian systems */ - if ( bpp == 2 ) - { - w *= 2; - bpp = 1; - } - RADEONHostDataParams( pScrn, dst, dstPitch, bpp, &dstPitchOff, &x, &y ); while ( (buf = RADEONHostDataBlit( pScrn, bpp, w, dstPitchOff, &bufPitch, |