[MPlayer-cvslog] r32665 - in trunk/vidix: radeon.h radeon_vid.c

reimar subversion at mplayerhq.hu
Sun Nov 28 16:33:45 CET 2010


Author: reimar
Date: Sun Nov 28 16:33:45 2010
New Revision: 32665

Log:
100l, fix vidix compilation on big-endian

Modified:
   trunk/vidix/radeon.h
   trunk/vidix/radeon_vid.c

Modified: trunk/vidix/radeon.h
==============================================================================
--- trunk/vidix/radeon.h	Sun Nov 28 16:25:15 2010	(r32664)
+++ trunk/vidix/radeon.h	Sun Nov 28 16:33:45 2010	(r32665)
@@ -77,6 +77,8 @@
 #define	I2C_DATA				0x0098
 #define	CONFIG_CNTL				0x00E0
 /* CONFIG_CNTL bit constants */
+#       define APER_0_BIG_ENDIAN_16BPP_SWAP     0x00000001
+#       define APER_0_BIG_ENDIAN_32BPP_SWAP     0x00000002
 #	define CFG_VGA_RAM_EN			0x00000100
 #ifdef RAGE128
 #define GEN_RESET_CNTL				0x00f0

Modified: trunk/vidix/radeon_vid.c
==============================================================================
--- trunk/vidix/radeon_vid.c	Sun Nov 28 16:25:15 2010	(r32664)
+++ trunk/vidix/radeon_vid.c	Sun Nov 28 16:33:45 2010	(r32665)
@@ -1283,9 +1283,9 @@ static void save_regs( void )
     savreg.disp_merge_cntl	= INREG(DISP_MERGE_CNTL);
 #if HAVE_BIGENDIAN
 #ifdef RAGE128
-    savereg.config_cntl         = INREG(CONFIG_CNTL);
+    savreg.config_cntl          = INREG(CONFIG_CNTL);
 #else
-    savereg.config_cntl         = INREG(RADEON_SURFACE_CNTL);
+    savreg.config_cntl          = INREG(SURFACE_CNTL);
 #endif
 #endif
 }
@@ -1301,9 +1301,9 @@ static void restore_regs( void )
     OUTREG(DISP_MERGE_CNTL,savreg.disp_merge_cntl);
 #if HAVE_BIGENDIAN
 #ifdef RAGE128
-    OUTREG(CONFIG_CNTL, savereg.config_cntl);
+    OUTREG(CONFIG_CNTL, savreg.config_cntl);
 #else
-    OUTREG(RADEON_SURFACE_CNTL, savereg.config_cntl);
+    OUTREG(SURFACE_CNTL, savreg.config_cntl);
 #endif
 #endif
 }
@@ -1371,12 +1371,12 @@ static int radeon_init(void)
 #if HAVE_BIGENDIAN
 #ifdef RAGE128
    OUTREG(CONFIG_CNTL,
-          savereg.config_cntl &
+          savreg.config_cntl &
           ~(APER_0_BIG_ENDIAN_16BPP_SWAP | APER_0_BIG_ENDIAN_32BPP_SWAP));
 #else
-   OUTREG(RADEON_SURFACE_CNTL,
-          savereg.config_cntl &
-          ~(RADEON_NONSURF_AP0_SWP_32BPP | RADEON_NONSURF_AP0_SWP_16BPP));
+   OUTREG(SURFACE_CNTL,
+          savreg.config_cntl &
+          ~(NONSURF_AP0_SWP_32BPP | NONSURF_AP0_SWP_16BPP));
 #endif
 #endif
   return 0;


More information about the MPlayer-cvslog mailing list