[cairo] ARGB surface for A8

Chris Wilson chris at chris-wilson.co.uk
Sun Dec 5 06:17:19 PST 2010

On Sun, 5 Dec 2010 04:08:15 -0800, L A <l.thee.a at gmail.com> wrote:
> My hardware does not seem to like the A8 format. I have noticed that
> clips and paths use this format in cairo. I was thinking of either
> allocate ARGB surfaces when the pixel format is CAIRO_FORMAT_A8 and
> set the surface pixman_format as ARGB. Do you see any problems with
> these? If you do, can you offer alternatives?

You impose huge inefficiencies into the common path for mask calculations
(and will require rewriting almost all of that code).

Perform the a8 to a8r8g8b8 conversion when downloading to the hardware.

Chris Wilson, Intel Open Source Technology Centre

More information about the cairo mailing list