r600: visual depth has no meaning here.
authorDave Airlie <airlied@redhat.com>
Thu, 3 Sep 2009 04:14:47 +0000 (14:14 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 3 Sep 2009 04:14:47 +0000 (14:14 +1000)
fbos get angry when this happens.

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

index 91cb492ce6a25240e1d3456b6ea03e007f8c4b1e..09344426f4daa6f4d913bc93a41ccd24e880f3e2 100644 (file)
@@ -1451,18 +1451,8 @@ static void r700SetDepthTarget(context_t *context)
 
     if(4 == rrb->cpp)
     {
-        switch (GL_CONTEXT(context)->Visual.depthBits)
-        {
-        case 16:
-        case 24:
-            SETfield(r700->DB_DEPTH_INFO.u32All, DEPTH_8_24,
-                     DB_DEPTH_INFO__FORMAT_shift, DB_DEPTH_INFO__FORMAT_mask);
-            break;
-        default:
-            fprintf(stderr, "Error: Unsupported depth %d... exiting\n",
-                GL_CONTEXT(context)->Visual.depthBits);
-            _mesa_exit(-1);
-        }
+        SETfield(r700->DB_DEPTH_INFO.u32All, DEPTH_8_24,
+                 DB_DEPTH_INFO__FORMAT_shift, DB_DEPTH_INFO__FORMAT_mask);
     }
     else
     {