r300-gallium: Emit the "right" sequence of colors.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 30 Mar 2009 23:15:04 +0000 (16:15 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 30 Mar 2009 23:15:04 +0000 (16:15 -0700)
ARGB, not RGBA.

src/gallium/drivers/r300/r300_surface.c

index b2e0cef0b94a773c0f395b8b2d617603166bfd1e..6ecc708e000dfe381c98d837a8008af4e751fe62 100644 (file)
@@ -165,10 +165,10 @@ static void r300_surface_fill(struct pipe_context* pipe,
     OUT_CS_32F(1.0);
     OUT_CS_32F(1.0);
     /* Color */
+    OUT_CS_32F(a);
     OUT_CS_32F(r);
     OUT_CS_32F(g);
     OUT_CS_32F(b);
-    OUT_CS_32F(1.0);
 
     /* XXX figure out why this is 0xA and not 0x2 */
     OUT_CS_REG(R300_RB3D_DSTCACHE_CTLSTAT, 0xA);