summaryrefslogtreecommitdiffstats
path: root/progs/trivial/tri-stencil.c
Commit message (Collapse)AuthorAgeFilesLines
* progs/trivial: added commentsBrian Paul2010-03-171-0/+3
|
* trival: Make the last of progs show the nameJakob Bornecrantz2009-02-191-1/+1
|
* CELL: stencil bug fixesRobert Ellison2008-10-301-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | Two definitive bugs in stenciling were fixed. The first, reversed registers in the generated Select Bytes (selb) instruction, caused the stenciling INCR and DECR operations to fail dramatically, putting new values in where old values were supposed to be and vice versa. The second caused stencil tiles to not be read and written from main memory by the SPUs. A per-spu flag, spu.read_depth, was used to indicate whether the SPU should be reading depth tiles, and was set only when depth was enabled. A second flag, spu.read_stencil, was set when stenciling was enabled, but never referenced. As stenciling and depth are in the same tiles on the Cell, and there is no corresponding TAG_WRITE_TILE_STENCIL to complement TAG_WRITE_TILE_COLOR and TAG_WRITE_TILE_Z, I fixed this by eliminating the unused "spu.read_stencil", renaming "spu.read_depth" to "spu.read_depth_stencil", and setting it if either stenciling or depth is enabled. I also added an optimization to the fragment ops generation code, that avoids calculating stencil values and/or stencil writemask when the stencil operations are all KEEP.
* gallium: more trivial testsKeith Whitwell2007-12-091-0/+149