r500: Use 8bit fog alpha compare value.
authorMarkus Amsler <markus.amsler@oribi.org>
Sat, 31 May 2008 01:10:21 +0000 (03:10 +0200)
committerMarkus Amsler <markus.amsler@oribi.org>
Sat, 31 May 2008 01:10:21 +0000 (03:10 +0200)
This fixes transparency issues on r500 by enabling
backwards compatibility with the r300 alpha compare value.

src/mesa/drivers/dri/r300/r300_state.c

index cb39ce01106a4b8bf77448a52b62b468869170d7..dc14759c08160f173f0b7262b8d795a4fef4580a 100644 (file)
@@ -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;