diff options
author | Aapo Tahkola <aet@rasterburn.org> | 2005-01-11 23:34:55 +0000 |
---|---|---|
committer | Aapo Tahkola <aet@rasterburn.org> | 2005-01-11 23:34:55 +0000 |
commit | ff04e50e2e4f423b7d8866b85d299c9acce5fed6 (patch) | |
tree | 7ae829231f3fcbe2164193daa24afa80896cf68b /src/mesa/drivers/dri/r300/r300_reg.h | |
parent | d24e49f301db9612349ed09594e476a8dbc896a5 (diff) |
Mipmapping and other texture filters now work.
Beaware that R300_TX_MIN_FILTER_MASK might be incorrect because i havent
been able to confirm that all filters operate correctly. Because of this its
also pretty pointless trying to get other features that use filter field to
work.
Lod bias should also work but have been unable to test it because lodbias
test doesnt work.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_reg.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_reg.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_reg.h b/src/mesa/drivers/dri/r300/r300_reg.h index 38beffbc21..33b2f3da54 100644 --- a/src/mesa/drivers/dri/r300/r300_reg.h +++ b/src/mesa/drivers/dri/r300/r300_reg.h @@ -578,6 +578,17 @@ I am fairly certain that they are correct unless stated otherwise in comments. # define R300_TX_MAG_FILTER_MASK (3 << 9) # define R300_TX_MIN_FILTER_NEAREST (1 << 11) # define R300_TX_MIN_FILTER_LINEAR (2 << 11) +/* TODO: Test and verify R300_TX_MIN_FILTER_MASK */ +# define R300_TX_MIN_FILTER_NEAREST_MIP_NEAREST (2 << 12) +# define R300_TX_MIN_FILTER_NEAREST_MIP_LINEAR (3 << 12) +# define R300_TX_MIN_FILTER_LINEAR_MIP_NEAREST (6 << 12) +# define R300_TX_MIN_FILTER_LINEAR_MIP_LINEAR (7 << 12) +# define R300_TX_MIN_FILTER_ANISO_NEAREST (8 << 12) +# define R300_TX_MIN_FILTER_ANISO_LINEAR (9 << 12) +# define R300_TX_MIN_FILTER_ANISO_NEAREST_MIP_NEAREST (10 << 12) +# define R300_TX_MIN_FILTER_ANISO_NEAREST_MIP_LINEAR (11 << 12) + +# define R300_TX_MIN_FILTER_MASK (0x0000f800) #define R300_TX_UNK1_0 0x4440 #define R300_TX_SIZE_0 0x4480 # define R300_TX_WIDTHMASK_SHIFT 0 |