llvmpipe: remove unused write_depth
authorBrian Paul <brianp@vmware.com>
Tue, 27 Apr 2010 19:10:56 +0000 (13:10 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 28 Apr 2010 17:26:37 +0000 (11:26 -0600)
src/gallium/drivers/llvmpipe/lp_scene.c
src/gallium/drivers/llvmpipe/lp_scene.h
src/gallium/drivers/llvmpipe/lp_setup.c

index 02a1b6a20b44f87f1a29f6879c1e93243d099ecd..1482a777ff849f6d13a8bd3c42c8a901773a4c6e 100644 (file)
@@ -427,8 +427,7 @@ void lp_scene_begin_binning( struct lp_scene *scene,
 
 
 void lp_scene_rasterize( struct lp_scene *scene,
-                         struct lp_rasterizer *rast,
-                         boolean write_depth )
+                         struct lp_rasterizer *rast )
 {
    if (0) {
       unsigned x, y;
@@ -442,9 +441,6 @@ void lp_scene_rasterize( struct lp_scene *scene,
       }
    }
 
-   scene->write_depth = (scene->fb.zsbuf != NULL &&
-                         write_depth);
-
    /* Enqueue the scene for rasterization, then immediately wait for
     * it to finish.
     */
index d3a8586a44d3adad0b506d9866c121113dbd6677..9467cd6f16d174d6273b8a7d28626bfbb327cd91 100644 (file)
@@ -124,7 +124,6 @@ struct lp_scene {
     */
    unsigned scene_size;
 
-   boolean write_depth;
    boolean has_color_clear;
    boolean has_depth_clear;
 
@@ -312,8 +311,7 @@ lp_scene_bin_iter_next( struct lp_scene *scene, int *bin_x, int *bin_y );
 
 void
 lp_scene_rasterize( struct lp_scene *scene,
-                    struct lp_rasterizer *rast,
-                    boolean write_depth );
+                    struct lp_rasterizer *rast );
 
 void
 lp_scene_begin_binning( struct lp_scene *scene,
index 649752cb36561728b0fcb9dc25f32ff8466a05af..611ec8c0190314c1dd940382c85f2d9a4d9c10c1 100644 (file)
@@ -152,14 +152,11 @@ static void reset_context( struct lp_setup_context *setup )
 
 /** Rasterize all scene's bins */
 static void
-lp_setup_rasterize_scene( struct lp_setup_context *setup,
-                          boolean write_depth )
+lp_setup_rasterize_scene( struct lp_setup_context *setup )
 {
    struct lp_scene *scene = lp_setup_get_current_scene(setup);
 
-   lp_scene_rasterize(scene,
-                      setup->rast,
-                      write_depth);
+   lp_scene_rasterize(scene, setup->rast);
 
    reset_context( setup );
 
@@ -210,7 +207,7 @@ execute_clears( struct lp_setup_context *setup )
    LP_DBG(DEBUG_SETUP, "%s\n", __FUNCTION__);
 
    begin_binning( setup );
-   lp_setup_rasterize_scene( setup, TRUE );
+   lp_setup_rasterize_scene( setup );
 }
 
 
@@ -241,7 +238,7 @@ set_scene_state( struct lp_setup_context *setup,
       if (old_state == SETUP_CLEARED)
          execute_clears( setup );
       else
-         lp_setup_rasterize_scene( setup, TRUE );
+         lp_setup_rasterize_scene( setup );
       break;
 
    default: