From: Markus Amsler Date: Sat, 31 May 2008 01:10:21 +0000 (+0200) Subject: r500: Use 8bit fog alpha compare value. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a947c1a3fe100dfc1ac519010673d1136f1dcd08;p=mesa.git r500: Use 8bit fog alpha compare value. This fixes transparency issues on r500 by enabling backwards compatibility with the r300 alpha compare value. --- diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c index cb39ce01106..dc14759c081 100644 --- a/src/mesa/drivers/dri/r300/r300_state.c +++ b/src/mesa/drivers/dri/r300/r300_state.c @@ -479,6 +479,7 @@ static void r300SetAlphaState(GLcontext * ctx) if (really_enabled) { pp_misc |= R300_FG_ALPHA_FUNC_ENABLE; + pp_misc |= R500_FG_ALPHA_FUNC_8BIT; pp_misc |= (refByte & R300_FG_ALPHA_FUNC_VAL_MASK); } else { pp_misc = 0x0;