summaryrefslogtreecommitdiff
path: root/src/cim
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2007-06-01 09:31:52 -0600
committerJordan Crouse <jordan.crouse@amd.com>2007-07-06 17:00:25 -0600
commit167d9dcfe6c13f37590b26bd544ae225cb7934ac (patch)
treeea2dc2b1bc04f52efe9e48b965d48c2b09dfb892 /src/cim
parent802282679447f2be6d815a6aa196d764a33bb07d (diff)
Use the correct pitch for composite mask operations
We need to specify the correct pitch for composite mask operations - this fixes the stride problem. Also, correctly set up the source color and some other minor issues, this helps us pass caps-join in the cairo test suite.
Diffstat (limited to 'src/cim')
-rw-r--r--src/cim/cim_gp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cim/cim_gp.c b/src/cim/cim_gp.c
index 04c901e..6579f12 100644
--- a/src/cim/cim_gp.c
+++ b/src/cim/cim_gp.c
@@ -3460,7 +3460,7 @@ gp_blend_mask_blt(unsigned long dstoffset, unsigned long srcx,
WRITE_COMMAND32(GP3_BLT_RASTER_MODE,
gp3_bpp |
GP3_RM_ALPHA_TO_RGB |
- GP3_RM_ALPHA_A_PLUS_BETA_B | GP3_RM_SELECT_ALPHA_CHAN_3);
+ ((unsigned long) operation << 20) | GP3_RM_SELECT_ALPHA_CHAN_3);
} else {
WRITE_COMMAND32(GP3_BLT_RASTER_MODE,
gp3_bpp |
@@ -3478,7 +3478,7 @@ gp_blend_mask_blt(unsigned long dstoffset, unsigned long srcx,
WRITE_COMMAND32(GP3_BLT_CH3_MODE_STR, GP3_CH3_C3EN |
GP3_CH3_HST_SRC_ENABLE |
depth_flag | ((gp3_blt_flags & CIMGP_BLTFLAGS_PRES_LUT) << 20));
- WRITE_COMMAND32(GP3_BLT_MODE, gp3_blt_mode | GP3_BM_DST_REQ);
+ WRITE_COMMAND32(GP3_BLT_MODE, GP3_BM_DST_REQ);
/* START THE BLT */