summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_reg.h
diff options
context:
space:
mode:
authorVladimir Dergachev <volodya@freedesktop.org>2005-01-21 21:30:55 +0000
committerVladimir Dergachev <volodya@freedesktop.org>2005-01-21 21:30:55 +0000
commit4ac53aed6c3f217d44e60b5004d3424b0e034e3e (patch)
tree86442fb937b4964fa97d03eaaa5eef8bb66f8c5f /src/mesa/drivers/dri/r300/r300_reg.h
parent10602119182a55985e9d8183b6cb846755c6f415 (diff)
Properly input stencil info contributed by Wladimir.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_reg.h')
-rw-r--r--src/mesa/drivers/dri/r300/r300_reg.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_reg.h b/src/mesa/drivers/dri/r300/r300_reg.h
index d07eb75a01..083ba9b1b6 100644
--- a/src/mesa/drivers/dri/r300/r300_reg.h
+++ b/src/mesa/drivers/dri/r300/r300_reg.h
@@ -1049,6 +1049,7 @@ I am fairly certain that they are correct unless stated otherwise in comments.
# define R300_COLOR_ENDIAN_WORD_SWAP (1 << 18) /* GUESS */
# define R300_COLOR_ENDIAN_DWORD_SWAP (2 << 18) /* GUESS */
# define R300_COLOR_UNKNOWN_22_23 (3 << 22) /* GUESS: Format? */
+ /* if format then it is (6<<21) - RGBA8 */
#define R300_RB3D_COLORPITCH1 0x4E3C /* GUESS */
#define R300_RB3D_COLORPITCH2 0x4E40 /* GUESS */
#define R300_RB3D_COLORPITCH3 0x4E44 /* GUESS */
@@ -1071,7 +1072,12 @@ I am fairly certain that they are correct unless stated otherwise in comments.
# define R300_RB3D_Z_WRITE_ONLY 0x00000006
# define R300_STENCIL_ENABLE 0x00000000 /* UNKNOWN yet.. */
-#define R300_RB3D_ZSTENCILCNTL_1 0x4F04
+# define R300_RB3D_Z_TEST 0x00000012
+# define R300_RB3D_Z_TEST_AND_WRITE 0x00000016
+# define R300_RB3D_Z_WRITE_ONLY 0x00000006
+# define R300_STENCIL_ENABLE (0<<1) /* UNKNOWN yet.. */
+
+#define R300_RB3D_ZSTENCIL_CNTL_1 0x4F04
/* functions */
# define R300_ZS_NEVER 0
# define R300_ZS_LESS 1
@@ -1094,14 +1100,17 @@ I am fairly certain that they are correct unless stated otherwise in comments.
# define R300_RB3D_ZS1_DEPTH_FUNC_SHIFT 0
+ /* front and back refer to operations done for front
+ and back faces - newer Radeons can perform different
+ functions */
# define R300_RB3D_ZS1_FRONT_FUNC_SHIFT 3
# define R300_RB3D_ZS1_FRONT_FAIL_OP_SHIFT 6
# define R300_RB3D_ZS1_FRONT_ZPASS_OP_SHIFT 9
# define R300_RB3D_ZS1_FRONT_ZFAIL_OP_SHIFT 12
-# define R300_RB3D_ZS1_STENCIL_FUNC_SHIFT 15
-# define R300_RB3D_ZS1_STENCIL_FAIL_OP_SHIFT 18
-# define R300_RB3D_ZS1_STENCIL_ZPASS_OP_SHIFT 21
-# define R300_RB3D_ZS1_STENCIL_ZFAIL_OP_SHIFT 24
+# define R300_RB3D_ZS1_BACK_FUNC_SHIFT 15
+# define R300_RB3D_ZS1_BACK_FAIL_OP_SHIFT 18
+# define R300_RB3D_ZS1_BACK_ZPASS_OP_SHIFT 21
+# define R300_RB3D_ZS1_BACK_ZFAIL_OP_SHIFT 24