diff -up mesa-20101220/src/mesa/drivers/dri/common/spantmp2.h.radeon_RGBA8888 mesa-20101220/src/mesa/drivers/dri/common/spantmp2.h
--- mesa-20101220/src/mesa/drivers/dri/common/spantmp2.h.radeon_RGBA8888	2011-02-08 21:28:04.589831947 +0100
+++ mesa-20101220/src/mesa/drivers/dri/common/spantmp2.h	2011-02-08 21:28:10.031159634 +0100
@@ -356,6 +356,83 @@
      } while (0)
 # endif
 
+#elif (SPANTMP_PIXEL_FMT == GL_RGBA) && (SPANTMP_PIXEL_TYPE == GL_UNSIGNED_INT_8_8_8_8_REV)
+
+/**
+ ** GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV
+ **/
+
+#ifndef GET_VALUE
+#ifndef GET_PTR
+#define GET_PTR(_x, _y) (     buf + (_x) * 4 + (_y) * pitch)
+#endif
+
+#define GET_VALUE(_x, _y) *(volatile GLuint *)(GET_PTR(_x, _y))
+#define PUT_VALUE(_x, _y, _v) *(volatile GLuint *)(GET_PTR(_x, _y)) = (_v)
+#endif /* GET_VALUE */
+
+# define INIT_MONO_PIXEL(p, color)                       \
+     p = PACK_COLOR_8888(color[3], color[2], color[1], color[0])
+
+# define WRITE_RGBA(_x, _y, r, g, b, a)                                 \
+   PUT_VALUE(_x, _y, ((r << 0) |					\
+		      (g << 8) |					\
+		      (b << 16) |					\
+		      (a << 24)))
+
+#define WRITE_PIXEL(_x, _y, p) PUT_VALUE(_x, _y, p)
+
+# if defined( USE_X86_ASM )
+#  define READ_RGBA(rgba, _x, _y)                                       \
+    do {                                                                \
+       GLuint p = GET_VALUE(_x, _y);					\
+       __asm__ __volatile__( "bswap	%0"                \
+				: "=r" (p) : "0" (p) );                 \
+       ((GLuint *)rgba)[0] = p;                                         \
+    } while (0)
+# else
+#  define READ_RGBA( rgba, _x, _y )				        \
+     do {								\
+        GLuint p = GET_VALUE(_x, _y);					\
+	rgba[0] = (p >>  0) & 0xff;					\
+	rgba[1] = (p >>  8) & 0xff;					\
+	rgba[2] = (p >> 16) & 0xff;					\
+	rgba[3] = (p >> 24) & 0xff;					\
+     } while (0)
+# endif
+
+#elif (SPANTMP_PIXEL_FMT == GL_RGBA) && (SPANTMP_PIXEL_TYPE == GL_UNSIGNED_INT_8_8_8_8)
+
+/**
+ ** GL_RGBA, GL_UNSIGNED_INT_8_8_8_8
+ **/
+
+#ifndef GET_VALUE
+#ifndef GET_PTR
+#define GET_PTR(_x, _y) (     buf + (_x) * 4 + (_y) * pitch)
+#endif
+
+#define GET_VALUE(_x, _y) *(volatile GLuint *)(GET_PTR(_x, _y))
+#define PUT_VALUE(_x, _y, _v) *(volatile GLuint *)(GET_PTR(_x, _y)) = (_v)
+#endif /* GET_VALUE */
+
+# define INIT_MONO_PIXEL(p, color)                       \
+     p = PACK_COLOR_8888(color[0], color[1], color[2], color[3])
+
+# define WRITE_RGBA(_x, _y, r, g, b, a)                                 \
+   PUT_VALUE(_x, _y, ((r << 24) |					\
+		      (g << 16) |					\
+		      (b << 8) |					\
+		      (a << 0)))
+
+#define WRITE_PIXEL(_x, _y, p) PUT_VALUE(_x, _y, p)
+
+# define READ_RGBA( rgba, _x, _y )				        \
+     do {								\
+        GLuint p = GET_VALUE(_x, _y);					\
+        *((uint32_t *) rgba) = p;					\
+     } while (0)
+
 #elif (SPANTMP_PIXEL_FMT == GL_BGR) && (SPANTMP_PIXEL_TYPE == GL_UNSIGNED_INT_8_8_8_8_REV)
 
 /**
diff -up mesa-20101220/src/mesa/drivers/dri/radeon/radeon_span.c.radeon_RGBA8888 mesa-20101220/src/mesa/drivers/dri/radeon/radeon_span.c
--- mesa-20101220/src/mesa/drivers/dri/radeon/radeon_span.c.radeon_RGBA8888	2011-02-08 21:27:42.258486925 +0100
+++ mesa-20101220/src/mesa/drivers/dri/radeon/radeon_span.c	2011-02-08 21:28:15.015459924 +0100
@@ -729,6 +729,42 @@ static GLubyte *radeon_ptr_2byte_8x2(con
 #endif
 #include "spantmp2.h"
 
+/* 32 bit, RGBA8888 color spanline and pixel functions
+ */
+#define SPANTMP_PIXEL_FMT GL_RGBA
+#define SPANTMP_PIXEL_TYPE GL_UNSIGNED_INT_8_8_8_8
+
+#define TAG(x)    radeon##x##_RGBA8888
+#define TAG2(x,y) radeon##x##_RGBA8888##y
+#if defined(RADEON_R600)
+#define GET_VALUE(_x, _y) (*(GLuint*)(r600_ptr_color(rrb, _x + x_off, _y + y_off)))
+#define PUT_VALUE(_x, _y, d) { \
+   GLuint *_ptr = (GLuint*)r600_ptr_color( rrb, _x + x_off, _y + y_off );		\
+   *_ptr = d;								\
+} while (0)
+#else
+#define GET_VALUE(_x, _y) (*(GLuint*)(radeon_ptr_4byte(rrb, _x + x_off, _y + y_off)))
+#define PUT_VALUE(_x, _y, d) { \
+   GLuint *_ptr = (GLuint*)radeon_ptr_4byte( rrb, _x + x_off, _y + y_off );		\
+   *_ptr = d;								\
+} while (0)
+#endif
+#include "spantmp2.h"
+
+/* 32 bit, ABGR8888 color spanline and pixel functions
+ */
+#define SPANTMP_PIXEL_FMT GL_RGBA
+#define SPANTMP_PIXEL_TYPE GL_UNSIGNED_INT_8_8_8_8_REV
+
+#define TAG(x)    radeon##x##_ABGR8888
+#define TAG2(x,y) radeon##x##_ABGR8888##y
+#if defined(RADEON_R600)
+#define GET_PTR(X,Y) r600_ptr_color(rrb, (X) + x_off, (Y) + y_off)
+#else
+#define GET_PTR(X,Y) radeon_ptr_4byte(rrb, (X) + x_off, (Y) + y_off)
+#endif
+#include "spantmp2.h"
+
 /* ================================================================
  * Depth buffer
  */
@@ -1133,6 +1169,10 @@ static void radeonSetSpanFunctions(struc
 		radeonInitPointers_ARGB8888(&rrb->base);
         } else if (rrb->base.Format == MESA_FORMAT_ARGB8888_REV) {
 		radeonInitPointers_BGRA8888(&rrb->base);
+	} else if (rrb->base.Format == MESA_FORMAT_RGBA8888) {
+		radeonInitPointers_RGBA8888(&rrb->base);
+        } else if (rrb->base.Format == MESA_FORMAT_RGBA8888_REV) {
+		radeonInitPointers_ABGR8888(&rrb->base);
 	} else if (rrb->base.Format == MESA_FORMAT_ARGB4444) {
 		radeonInitPointers_ARGB4444(&rrb->base);
 	} else if (rrb->base.Format == MESA_FORMAT_ARGB4444_REV) {
