r600: update vport z & clipping when depth_clamp is changed
authorAndre Maasikas <amaasikas@gmail.com>
Fri, 22 Jan 2010 12:06:10 +0000 (14:06 +0200)
committerAndre Maasikas <amaasikas@gmail.com>
Fri, 22 Jan 2010 12:14:01 +0000 (14:14 +0200)
fixes piglit depth_clamp

src/mesa/drivers/dri/r600/r700_state.c

index 3c8cb579f9bcae6e5d0ebbc3e267d3fcf3861dd2..a795f62ab738f973a3581bff86f2b17971095060 100644 (file)
@@ -59,6 +59,7 @@ static void r700SetClipPlaneState(GLcontext * ctx, GLenum cap, GLboolean state);
 static void r700UpdatePolygonMode(GLcontext * ctx);
 static void r700SetPolygonOffsetState(GLcontext * ctx, GLboolean state);
 static void r700SetStencilState(GLcontext * ctx, GLboolean state);
+static void r700UpdateWindow(GLcontext * ctx, int id);
 
 void r700UpdateShaders(GLcontext * ctx)
 {
@@ -780,6 +781,9 @@ static void r700Enable(GLcontext * ctx, GLenum cap, GLboolean state) //---------
        case GL_LINE_STIPPLE:
                r700UpdateLineStipple(ctx);
                break;
+       case GL_DEPTH_CLAMP:
+               r700UpdateWindow(ctx, 0);
+               break;
        default:
                break;
        }