summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-02-17 13:33:48 -0800
committerEric Anholt <eric@anholt.net>2010-02-17 13:34:39 -0800
commit94a4f9b86f55a27e4920d4e9c535001b177b4f1d (patch)
tree14ee8a2a4335dbdc7fc9b481f42a7a6242a150fe
parente7447c06c48fc86a3d652068fcf356f5b2693542 (diff)
glamor: Add support for a1 composite sources.
They're stored just like a8, but the values are set to either 0.0 or 1.0. Because they're a8 with only two legal values, we can't use them as destinations, but nobody's rendering to a1 dests anyway (we hope).
-rw-r--r--glamor/glamor_render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c
index 6e281c910..6d8dd9797 100644
--- a/glamor/glamor_render.c
+++ b/glamor/glamor_render.c
@@ -456,6 +456,7 @@ static Bool
good_source_format(PicturePtr picture)
{
switch (picture->format) {
+ case PICT_a1:
case PICT_a8:
case PICT_a8r8g8b8:
return TRUE;
@@ -477,6 +478,7 @@ static Bool
good_mask_format(PicturePtr picture)
{
switch (picture->format) {
+ case PICT_a1:
case PICT_a8:
case PICT_a8r8g8b8:
return TRUE;