summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2014-08-10 02:25:13 -0400
committerBen Skeggs <bskeggs@redhat.com>2014-08-11 08:12:50 +1000
commitdfac18c67a17782a0263daf8cb4ee487374abd2c (patch)
tree91171d1efc51a534eb64772f0efc842c2a8e2cf2
parentff7010e06b6da0fe27143b47b8a4ffd2f12894b7 (diff)
exa/nv10: use color 0 when the pict format has no RGB component
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--src/nv10_exa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nv10_exa.c b/src/nv10_exa.c
index df2f561..47cf0ef 100644
--- a/src/nv10_exa.c
+++ b/src/nv10_exa.c
@@ -520,7 +520,7 @@ setup_picture(NVPtr pNv, PicturePtr pict, PixmapPtr pixmap, int unit,
if (pict && PICT_FORMAT_RGB(pict->format))
*color = RCSEL_COLOR | source;
else
- *color = RCSEL_ALPHA | RCINP_ZERO;
+ *color = RCSEL_COLOR | RCINP_ZERO;
if (pict && PICT_FORMAT_A(pict->format))
*alpha = RCSEL_ALPHA | source;