xf86-video-ati: Branch 'master'
Michel Daenzer
daenzer at kemper.freedesktop.org
Thu Feb 28 03:30:45 PST 2008
src/radeon_video.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
New commits:
commit 5249f450a2487475a95531603cc8668db2c21c33
Author: Michel Dänzer <michel at tungstengraphics.com>
Date: Thu Feb 28 12:23:58 2008 +0100
Fix 16 bit packed YUV XVideo playback on big endian systems with DRI disabled.
http://bugs.freedesktop.org/show_bug.cgi?id=14668
diff --git a/src/radeon_video.c b/src/radeon_video.c
index 7502e1e..3cbd8f6 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,
More information about the xorg-commit
mailing list