From: Aapo Tahkola Date: Sun, 13 Mar 2005 12:23:08 +0000 (+0000) Subject: Replacing alpha test bits with values that give desired results as compaired to softw... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=278c6025f93e51e2b9c3a8c7b53a1576d0964b61;p=mesa.git Replacing alpha test bits with values that give desired results as compaired to software rendering. Alpha test in textures is still completely broken as can be seen in progs/demos/fire and various games. --- diff --git a/src/mesa/drivers/dri/r300/r300_reg.h b/src/mesa/drivers/dri/r300/r300_reg.h index 4e3772c5d34..f98e9b3bff1 100644 --- a/src/mesa/drivers/dri/r300/r300_reg.h +++ b/src/mesa/drivers/dri/r300/r300_reg.h @@ -1000,19 +1000,12 @@ I am fairly certain that they are correct unless stated otherwise in comments. # define R300_REF_ALPHA_MASK 0x000000ff # define R300_ALPHA_TEST_FAIL (0 << 8) # define R300_ALPHA_TEST_LESS (1 << 8) -# define R300_ALPHA_TEST_LEQUAL (2 << 8) -# define R300_ALPHA_TEST_EQUAL (3 << 8) -# define R300_ALPHA_TEST_GEQUAL (4 << 8) -# define R300_ALPHA_TEST_GREATER (5 << 8) -# define R300_ALPHA_TEST_NEQUAL (6 << 8) -# define R300_ALPHA_TEST_PASS (7 << 8) -/* // Possibly more correct values: # define R300_ALPHA_TEST_LEQUAL (3 << 8) # define R300_ALPHA_TEST_EQUAL (2 << 8) # define R300_ALPHA_TEST_GEQUAL (6 << 8) # define R300_ALPHA_TEST_GREATER (4 << 8) # define R300_ALPHA_TEST_NEQUAL (5 << 8) -*/ +# define R300_ALPHA_TEST_PASS (7 << 8) # define R300_ALPHA_TEST_OP_MASK (7 << 8) # define R300_ALPHA_TEST_ENABLE (1 << 11)