diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2005-10-27 21:21:05 +0000 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2005-10-27 21:21:05 +0000 |
commit | 4b9f1308e55003308a744ad15eed6cab676e4785 (patch) | |
tree | 743f2dfcbc5bf257e29207759c68581852525598 /src/mesa/drivers/dri/r128/server | |
parent | 215c4c3a9c989b3d0e7090177ab2fc3eeab0ddaa (diff) |
Add support for GL_EXT_stencil_wrap, from hearing that the windows drivers did
it, and guessing that the two remaining entries in the 3-bit values were the
new funcs. Tested with modified stencilwrap test. Also, remove the commented
fallback stuff -- more modification to stencilwrap suggests that those issues
were just from span readback, not stencil implementation.
Diffstat (limited to 'src/mesa/drivers/dri/r128/server')
-rw-r--r-- | src/mesa/drivers/dri/r128/server/r128_reg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r128/server/r128_reg.h b/src/mesa/drivers/dri/r128/server/r128_reg.h index cb979cb70d..5669452d74 100644 --- a/src/mesa/drivers/dri/r128/server/r128_reg.h +++ b/src/mesa/drivers/dri/r128/server/r128_reg.h @@ -1075,6 +1075,8 @@ # define R128_STENCIL_S_FAIL_INC (3 << 16) # define R128_STENCIL_S_FAIL_DEC (4 << 16) # define R128_STENCIL_S_FAIL_INV (5 << 16) +# define R128_STENCIL_S_FAIL_INC_WRAP (6 << 16) /* GUESS */ +# define R128_STENCIL_S_FAIL_DEC_WRAP (7 << 16) /* GUESS */ # define R128_STENCIL_S_FAIL_MASK (7 << 16) # define R128_STENCIL_ZPASS_KEEP (0 << 20) # define R128_STENCIL_ZPASS_ZERO (1 << 20) @@ -1082,6 +1084,8 @@ # define R128_STENCIL_ZPASS_INC (3 << 20) # define R128_STENCIL_ZPASS_DEC (4 << 20) # define R128_STENCIL_ZPASS_INV (5 << 20) +# define R128_STENCIL_ZPASS_INC_WRAP (6 << 20) /* GUESS */ +# define R128_STENCIL_ZPASS_DEC_WRAP (7 << 20) /* GUESS */ # define R128_STENCIL_ZPASS_MASK (7 << 20) # define R128_STENCIL_ZFAIL_KEEP (0 << 24) # define R128_STENCIL_ZFAIL_ZERO (1 << 24) @@ -1089,6 +1093,8 @@ # define R128_STENCIL_ZFAIL_INC (3 << 24) # define R128_STENCIL_ZFAIL_DEC (4 << 24) # define R128_STENCIL_ZFAIL_INV (5 << 24) +# define R128_STENCIL_ZFAIL_INC_WRAP (6 << 24) /* GUESS */ +# define R128_STENCIL_ZFAIL_DEC_WRAP (7 << 24) /* GUESS */ # define R128_STENCIL_ZFAIL_MASK (7 << 24) #define R128_TEX_CNTL_C 0x1c9c # define R128_Z_ENABLE (1 << 0) |