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).
This commit is contained in:
Eric Anholt 2010-02-17 13:33:48 -08:00 committed by Zhigang Gong
parent 9bcbcbf8c2
commit 2fa95725d8

View File

@ -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;