Premultiplied alpha handle for driver

Huang, FrankR FrankR.Huang at amd.com
Sun May 30 19:42:06 PDT 2010


Hi all,

 

            A question to ask.

            We know the premultiplied alpha will be used sometimes in
blend. Is that used in the graphics driver?

            Take an example:

                        If we use a XRenderComposite() function to do
the rendering:

                                   XRenderComposite(dyp, PictOpOver,
picture_1x1[0].pict, mask_20x20[0].pict, win->pict, 0, 0, 0, 0, 50, 50,
40, 40);

                                    And the picture_1x1[0] is a ARGB
picture with an alpha value; mask_20x20[0] is a A8 picture with an alpha
value.

                        How the driver(do_composite) handle this two
alpha value?

 

 

Thanks,

Frank

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100531/61b7c174/attachment-0001.htm>


More information about the xorg-devel mailing list