llvmpipe: Fix alpha testing precision on rgba8 formats.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 22 May 2012 15:04:33 +0000 (16:04 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 22 May 2012 18:23:49 +0000 (19:23 +0100)
commit7a75e7d6e85d27e102ff7e15583c33b1ce282fe4
treea4343f2b8b3731addad28107502afed6cab0a1e2
parente4fb332af1e62db930bc9a435cab3c0aa32cdea8
llvmpipe: Fix alpha testing precision on rgba8 formats.

This is a long standing problem, that recently surfaced with the change
to enable perspective correct color interpolation.

A fix for all possible formats is left to the future.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_bld_alpha.c
src/gallium/drivers/llvmpipe/lp_bld_alpha.h
src/gallium/drivers/llvmpipe/lp_state_fs.c