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 060a27cd6f7977117201ff8a3ba5c64bef84cfb6..f93c20da35e820a8bd09757210d91327af037b31 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: