summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Deucher <alex@samba.(none)>2008-03-13 17:02:25 -0400
committerAlex Deucher <alex@samba.(none)>2008-03-13 17:02:25 -0400
commit0ef700b7da5e554a0d0d166f3fde85ff45c9eb1f (patch)
treed927a859ae7e95ece6e675def0d00a1f4bd02925 /src
parentb35c09a597c93a1d9f06ef0091c96822b0653f98 (diff)
R3xx/R5xx: enable blending
Diffstat (limited to 'src')
-rw-r--r--src/radeon_exa_render.c2
-rw-r--r--src/radeon_reg.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c
index 31e12066..0423435a 100644
--- a/src/radeon_exa_render.c
+++ b/src/radeon_exa_render.c
@@ -1407,7 +1407,7 @@ static Bool FUNC_NAME(R300PrepareComposite)(int op, PicturePtr pSrcPicture,
OUT_ACCEL_REG(R300_RB3D_COLORPITCH0, colorpitch);
blendcntl = RADEONGetBlendCntl(op, pMaskPicture, pDstPicture->format);
- OUT_ACCEL_REG(R300_RB3D_BLENDCNTL, blendcntl);
+ OUT_ACCEL_REG(R300_RB3D_BLENDCNTL, blendcntl | R300_ALPHA_BLEND_ENABLE | R300_READ_ENABLE);
OUT_ACCEL_REG(R300_RB3D_ABLENDCNTL, 0);
#if 0
diff --git a/src/radeon_reg.h b/src/radeon_reg.h
index 94d5f312..a08654db 100644
--- a/src/radeon_reg.h
+++ b/src/radeon_reg.h
@@ -4433,6 +4433,9 @@
#define R300_RB3D_ZTOP 0x4f14
#define R300_RB3D_ROPCNTL 0x4e18
#define R300_RB3D_BLENDCNTL 0x4e04
+# define R300_ALPHA_BLEND_ENABLE (1 << 0)
+# define R300_SEPARATE_ALPHA_ENABLE (1 << 1)
+# define R300_READ_ENABLE (1 << 2)
#define R300_RB3D_ABLENDCNTL 0x4e08
#define R300_RB3D_DSTCACHE_CTLSTAT 0x4e4c
#define R300_RB3D_COLOROFFSET0 0x4e28