gallium-r300: Set right ROP for solid fills.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 9 Jan 2009 14:05:36 +0000 (06:05 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 07:30:20 +0000 (23:30 -0800)
Thanks to MrCooper for pointing me in the right direction.

src/gallium/drivers/r300/r300_blit.c

index 5f5eba9..415e6e0 100644 (file)
@@ -59,14 +59,12 @@ int r300_fill_blit(struct r300_context* r300,
     /* Set up the 2D engine. */
     OUT_CS_REG(RADEON_DEFAULT_SC_BOTTOM_RIGHT,
                   RADEON_DEFAULT_SC_RIGHT_MAX | RADEON_DEFAULT_SC_BOTTOM_MAX);
-    /* XXX I have no idea what these flags mean, is this awesome? (y/n) */
     OUT_CS_REG(RADEON_DP_GUI_MASTER_CNTL,
                   RADEON_GMC_DST_PITCH_OFFSET_CNTL |
                   RADEON_GMC_BRUSH_SOLID_COLOR |
                   (dest_type << 8) |
                   RADEON_GMC_SRC_DATATYPE_COLOR |
-                  /* XXX is this the right rop? */
-                  RADEON_ROP3_ONE |
+                  RADEON_ROP3_P |
                   RADEON_GMC_CLR_CMP_CNTL_DIS);
     /* XXX pack this? */
     OUT_CS_REG(RADEON_DP_BRUSH_FRGD_CLR, color);