lowlevel-blt-bench: use a8r8g8b8 for CA solid masks
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 14 Apr 2015 08:42:00 +0000 (11:42 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 20 Apr 2015 13:18:18 +0000 (16:18 +0300)
commit58e21d3e45c5227c2ca9ac00cf044f22a7975180
tree80833a37dc0762bf0b55e2d61c055c797372a66c
parentbe49f929b656ef83420072e82658e3b3a96a9277
lowlevel-blt-bench: use a8r8g8b8 for CA solid masks

When doing component alpha with a solid mask, use a mask format that has
all the color channels instead of just a8. As Ben Avison explains it:

"Lowlevel-blt-bench initialises all its images using memset(0xCC) so an
a8 solid image would be converted by _pixman_image_get_solid() to
0xCC000000 whereas an a8r8g8b8 would be 0xCCCCCCCC. When you're not in
component alpha mode, only the alpha byte matters for the mask image,
but in the case of component alpha operations, a fast path might decide
that it can save itself a lot of multiplications if it spots that 3
constant mask components are already 0."

No (default) test so far has a solid mask with CA. This is just
future-proofing lowlevel-blt-bench to do what one would expect.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Ben Avison <bavison@riscosopen.org>
test/lowlevel-blt-bench.c