dri/nouveau: Add two stencil operation cases in nv04_state_raster.c.
authorAndrew Randrianasulu <randrianasulu@gmail.com>
Mon, 1 Mar 2010 00:48:29 +0000 (01:48 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 1 Mar 2010 01:07:00 +0000 (02:07 +0100)
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/nouveau/nv04_state_raster.c

index 5e3788d18545e5fb0015f87a2f2e7bda2f632c28..6d0b262a4d3670de6f7870271a23e6f7da79fb55 100644 (file)
@@ -61,6 +61,10 @@ get_stencil_op(unsigned op)
        switch (op) {
        case GL_KEEP:
                return 0x1;
+       case GL_ZERO:
+               return 0x2;
+       case GL_REPLACE:
+               return 0x3;
        case GL_INCR:
                return 0x4;
        case GL_DECR: