Add support for GL_EXT_stencil_wrap by guessing that the skip of two values in
authorEric Anholt <anholt@FreeBSD.org>
Mon, 24 Oct 2005 06:40:56 +0000 (06:40 +0000)
committerEric Anholt <anholt@FreeBSD.org>
Mon, 24 Oct 2005 06:40:56 +0000 (06:40 +0000)
commitdc793d4e9a71159da13b9230abde344309924287
treed2e68f18eb5f57e9dd82388ad651bb4c05e5b1f6
parent3265585b151d44c825fb7a82b16b076fb7fdca77
Add support for GL_EXT_stencil_wrap by guessing that the skip of two values in
the register header was meaningful.  It turns out those were the proper values
for the plain INCR/DECR ops, while what we were using as INCR/DECR were the
_WRAP versions.  Tested with stencil_wrap (didn't expose normal/_WRAP swapping)
and stencilwrap (exposed it nicely) tests.  Props to idr for poking me about
adding this.
src/mesa/drivers/dri/sis/sis_context.c
src/mesa/drivers/dri/sis/sis_dd.c
src/mesa/drivers/dri/sis/sis_reg.h
src/mesa/drivers/dri/sis/sis_stencil.c