r600g: fix typo in stencil translate.
authorDave Airlie <airlied@redhat.com>
Thu, 12 Aug 2010 06:32:19 +0000 (16:32 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 12 Aug 2010 06:32:19 +0000 (16:32 +1000)
fixes piglit stencil-twoside and stencil-wrap

src/gallium/drivers/r600/r600_state_inlines.h

index 060a27c..f93c20d 100644 (file)
@@ -110,7 +110,7 @@ static INLINE uint32_t r600_translate_stencil_op(int s_op)
        case PIPE_STENCIL_OP_DECR:
                return V_028800_STENCIL_DECR;
        case PIPE_STENCIL_OP_INCR_WRAP:
-               return V_028800_STENCIL_INVERT;
+               return V_028800_STENCIL_INCR_WRAP;
        case PIPE_STENCIL_OP_DECR_WRAP:
                return V_028800_STENCIL_DECR_WRAP;
        case PIPE_STENCIL_OP_INVERT: