[Mesa-dev] [PATCH 2/2] meta: Handle bitmaps with alpha test enabled.

Francisco Jerez currojerez at riseup.net
Wed Nov 3 08:12:36 PDT 2010


Brian Paul <brianp at vmware.com> writes:

> On 11/02/2010 12:25 PM, Francisco Jerez wrote:
>>
>> We have several options.
>>
>> - Fall back to swrast in the floating point renderbuffer case. In other
>>    cases the conversion to fixed point guarantees that EQUAL will behave
>>    as expected. Simple and good enough ATM because all the users of
>>    _mesa_meta_Bitmap don't support floating point color buffers (no-one
>>    does). Some of them might at some point though.
>>
>> - Choose a background alpha value different to the current raster color
>>    that is known to be represented exactly all the way down the pipeline
>>    (e.g. 0.0/1.0), then use NOTEQUAL to cull them out.
>>
>> - Stick to GREATER/LESS for maximum robustness/paranoia.
>>
>> I'm fine with any of them. What do you suggest?
>
> Either of the later two.  Thanks.
>
OK, the following patch implements the second one.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-meta-Fix-incorrect-rendering-of-the-bitmap-alpha-com.patch
Type: text/x-diff
Size: 1976 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20101103/0aad8c23/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20101103/0aad8c23/attachment.pgp>


More information about the mesa-dev mailing list