OSDN Git Service

svga: Fix stencil op mapping
authorZack Rusin <zackr@vmware.com>
Fri, 24 Feb 2012 19:26:41 +0000 (14:26 -0500)
committerZack Rusin <zackr@vmware.com>
Fri, 24 Feb 2012 19:55:56 +0000 (14:55 -0500)
commit5d9bfc4d3f117fd6d95e1818c60f4f7ea47e6929
tree88b514253465324b3ac0d0b078dabfa2b1a36a72
parente0095548c02200d00a4edbd5bb1a28a32c324c5b
svga: Fix stencil op mapping

We were inverting the meaning of the stencil op flags: in svga/d3d
the normal incr/decr wraps and the SAT ops clamp.
This fixes piglit failures (at least stencil-twoside and stencil-wrap).
We should backport this everywhere we can.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_pipe_depthstencil.c