Bug #1028: Add hardware-accelerated stencil support to r128. Testing with
authorEric Anholt <anholt@FreeBSD.org>
Thu, 27 Oct 2005 20:26:24 +0000 (20:26 +0000)
committerEric Anholt <anholt@FreeBSD.org>
Thu, 27 Oct 2005 20:26:24 +0000 (20:26 +0000)
commit215c4c3a9c989b3d0e7090177ab2fc3eeab0ddaa
tree4d358e322e350f176e5b0dfbc6c838403f7199fd
parent512c994b92126a7575bb3cc327da40710b43f52c
Bug #1028: Add hardware-accelerated stencil support to r128.  Testing with
stencilwrap reported many issues with various modes.  Some of these were
complicated by the fact that spans are broken (Bug #1615), but some appear to be
real bugs.  However, while spans remain broken, I found that visual results were
better by avoiding fallbacks rather than avoiding just a broken stencil
implementation.  Note that this required changing the depth spans at 24+8bpp
into read-modify-write cycles.  It would be nicer as a single write with
a mask, but the kernel span blits turn off masking.

Reviewed by: ajax
src/mesa/drivers/dri/r128/r128_dd.c
src/mesa/drivers/dri/r128/r128_ioctl.c
src/mesa/drivers/dri/r128/r128_screen.c
src/mesa/drivers/dri/r128/r128_span.c
src/mesa/drivers/dri/r128/r128_state.c
src/mesa/drivers/dri/r128/server/r128_reg.h