CELL: fix stencil twiddling, stencil invert
authorRobert Ellison <papillo@tungstengraphics.com>
Thu, 13 Nov 2008 18:22:12 +0000 (11:22 -0700)
committerRobert Ellison <papillo@tungstengraphics.com>
Thu, 13 Nov 2008 18:23:04 +0000 (11:23 -0700)
commit2c29a6896a4a026ed3568db9caf90f422b711d8b
tree77f88664f18494ab84859b6b57cf1ec7f3592b0c
parent42330d929c3bdc953948294906c49ee693818b47
CELL: fix stencil twiddling, stencil invert

Many stencil tests were failing because of a failure to read the
stencil buffer, due to "twiddling" (or "untwiddling") "an unsupported
texture format".  This is fixed for the case of a stencil/Z S824Z format
(which twiddles just like the 32-bit color formats).

tests/stencilwrap.c was failing on the GL_INVERT test, because
the emitted code for "spe_xori" turned out not to be an actual
"xori" instruction, but rather a "stqd" instruction, because
of a typo in the rtasm code.  This is now fixed, and
tests/stencil_wrap now works.
src/gallium/auxiliary/rtasm/rtasm_ppc_spe.h
src/gallium/drivers/cell/ppu/cell_texture.c