diff options
author | Robert Ellison <papillo@tungstengraphics.com> | 2008-11-12 12:23:52 -0700 |
---|---|---|
committer | Robert Ellison <papillo@tungstengraphics.com> | 2008-11-12 12:24:22 -0700 |
commit | 44257a8e752a5f10aed7e5797b23cdb42120703c (patch) | |
tree | cb059e6d0a3e7370da4e9f2705a463567c436f5f /src/gallium/drivers/cell/ppu/cell_gen_fragment.h | |
parent | b44ec717c831bb2e3363ee79ae1faca7e0665bea (diff) |
CELL: fix stencil test bugs
Fixed a boneheaded error in the generation of SPU code that calculates
the results of the stencil test. Basically, all the greater than/less than
calculations were exactly inverted: they were coded as though the
given comparison took the stencil value as a left-hand operand and the
reference value as a right-hand operand, but the actual semantics always
put the reference as the left-hand operand and the stencil as the right-hand
operand.
With this fix, tests/dinoshade runs, as do all the other Mesa tests
and samples that use stencil (and that don't use texture formats
unsupported by Cell).
Diffstat (limited to 'src/gallium/drivers/cell/ppu/cell_gen_fragment.h')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_gen_fragment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_gen_fragment.h b/src/gallium/drivers/cell/ppu/cell_gen_fragment.h index 2fabfdfb08..21b35d1faf 100644 --- a/src/gallium/drivers/cell/ppu/cell_gen_fragment.h +++ b/src/gallium/drivers/cell/ppu/cell_gen_fragment.h @@ -31,7 +31,7 @@ extern void -cell_gen_fragment_function(struct cell_context *cell, uint facing, struct spe_function *f); +cell_gen_fragment_function(struct cell_context *cell, const uint facing, struct spe_function *f); #endif /* CELL_GEN_FRAGMENT_H */ |