nouveau: nv10: keep 24/8 depth/stencil value, don't check for depth bits
authorPatrice Mandin <pmandin@caramail.com>
Tue, 20 Feb 2007 22:04:21 +0000 (23:04 +0100)
committerPatrice Mandin <pmandin@caramail.com>
Tue, 20 Feb 2007 22:04:21 +0000 (23:04 +0100)
src/mesa/drivers/dri/nouveau/nv10_state.c

index e0475bb3da0d55663553e9dc69955a27ed2854fb..09fc07556d92cbd2c8181863fead08e1da00ada2 100644 (file)
@@ -123,25 +123,25 @@ static void nv10ClearDepth(GLcontext *ctx, GLclampd d)
 {
        nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx);
 
-       switch (ctx->DrawBuffer->_DepthBuffer->DepthBits) {
+/*     switch (ctx->DrawBuffer->_DepthBuffer->DepthBits) {
                case 16:
                        nmesa->clear_value = (uint32_t)(d*0x7FFF);
                        break;
-               case 24:
+               case 24:*/
                        nmesa->clear_value = ((nmesa->clear_value&0x000000FF) |
                                (((uint32_t)(d*0xFFFFFF))<<8));
-                       break;
-       }
+/*                     break;
+       }*/
 }
 
 static void nv10ClearStencil(GLcontext *ctx, GLint s)
 {
        nouveauContextPtr nmesa = NOUVEAU_CONTEXT(ctx);
 
-       if (ctx->DrawBuffer->_DepthBuffer->DepthBits == 24) {
+/*     if (ctx->DrawBuffer->_DepthBuffer->DepthBits == 24) {*/
                nmesa->clear_value = ((nmesa->clear_value&0xFFFFFF00)|
                        (s&0x000000FF));
-       }
+/*     }*/
 }
 
 static void nv10ClipPlane(GLcontext *ctx, GLenum plane, const GLfloat *equation)