intel: Stop exposing useless 24 depth/0 stencil configs
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 8 Feb 2010 18:34:52 +0000 (10:34 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 10 Feb 2010 18:50:28 +0000 (10:50 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/intel/intel_screen.c

index bda94e0df353bbe240e36215bb08278b5811b4f9..b308ae191040738fcf4fd060f7b65cc0c5bdb807 100644 (file)
@@ -399,16 +399,13 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp)
       if (fb_type[color] == GL_UNSIGNED_SHORT_5_6_5) {
         depth_bits[1] = 16;
         stencil_bits[1] = 0;
-
-        depth_factor = 2;
       } else {
         depth_bits[1] = 24;
-        stencil_bits[1] = 0;
-        depth_bits[2] = 24;
-        stencil_bits[2] = 8;
-
-        depth_factor = 3;
+        stencil_bits[1] = 8;
       }
+
+      depth_factor = 2;
+
       new_configs = driCreateConfigs(fb_format[color], fb_type[color],
                                     depth_bits,
                                     stencil_bits,