[PATCH] glamor: Wire alpha to 1 for pictures without alpha bits

Keith Packard keithp at keithp.com
Tue Apr 22 16:33:45 PDT 2014


When sourcing a picture that has no alpha values, make sure any
texture fetches wire the alpha value to one. This ensures that bits
beyond the depth of the pixmap, or bits other than the RGB values
aren't used.
    
Here's the actual patch:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-glamor-Wire-alpha-to-1-for-pictures-without-alpha-bi.patch
Type: text/x-diff
Size: 1075 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140422/4ee4c11f/attachment.patch>
-------------- next part --------------

And here's a test case:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: render-invert.c
Type: text/x-csrc
Size: 3606 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140422/4ee4c11f/attachment.c>
-------------- next part --------------

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140422/4ee4c11f/attachment.sig>


More information about the xorg-devel mailing list