summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/radeon_video.c14
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,