From a947c1a3fe100dfc1ac519010673d1136f1dcd08 Mon Sep 17 00:00:00 2001 From: Markus Amsler Date: Sat, 31 May 2008 03:10:21 +0200 Subject: [PATCH] r500: Use 8bit fog alpha compare value. This fixes transparency issues on r500 by enabling backwards compatibility with the r300 alpha compare value. --- src/mesa/drivers/dri/r300/r300_state.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2