diff options
author | Aapo Tahkola <[email protected]> | 2005-03-13 12:23:08 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2005-03-13 12:23:08 +0000 |
commit | 278c6025f93e51e2b9c3a8c7b53a1576d0964b61 (patch) | |
tree | 0c1af72675ae8566993b9a16b78134a75545265e | |
parent | 4f05e61543b890682b265a6abd986a89ef024fbb (diff) |
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.
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_reg.h | 9 |
1 files changed, 1 insertions, 8 deletions
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) |