Module: Mesa
Branch: master
Commit: 394672659ddc1175747bae29fbf9957365d61e4c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=394672659ddc1175747bae29fbf9957365d61e4c

Author: Andrew Randrianasulu <randrianas...@gmail.com>
Date:   Mon Mar  1 01:48:29 2010 +0100

dri/nouveau: Add two stencil operation cases in nv04_state_raster.c.

Signed-off-by: Francisco Jerez <curroje...@riseup.net>

---

 src/mesa/drivers/dri/nouveau/nv04_state_raster.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/nouveau/nv04_state_raster.c 
b/src/mesa/drivers/dri/nouveau/nv04_state_raster.c
index 5e3788d..6d0b262 100644
--- a/src/mesa/drivers/dri/nouveau/nv04_state_raster.c
+++ b/src/mesa/drivers/dri/nouveau/nv04_state_raster.c
@@ -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:

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to