[Mesa-dev] [PATCH 2/2] meta: Handle bitmaps with alpha test enabled.
brianp at vmware.com
Wed Nov 3 09:06:36 PDT 2010
On 11/03/2010 09:12 AM, Francisco Jerez wrote:
> 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.
Looks good. Thanks.
Reviewed-by: Brian Paul <brianp at vmware.com>
Another thing: it looks like we don't really need to specify vertex
colors when drawing the bitmap quad. Want to remove/fix that?
More information about the mesa-dev