Mesa (lp-binning): llvmpipe: remove dead code left over from a previous commit

Brian Paul brianp at kemper.freedesktop.org
Fri Dec 4 23:02:57 UTC 2009


Module: Mesa
Branch: lp-binning
Commit: 2c8d5c66ce2ddc0b7182e4844690736fc4c47212
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c8d5c66ce2ddc0b7182e4844690736fc4c47212

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Dec  4 15:46:37 2009 -0700

llvmpipe: remove dead code left over from a previous commit

---

 src/gallium/drivers/llvmpipe/lp_setup.c |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c
index efaf5ac..e561e8e 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup.c
@@ -284,39 +284,9 @@ lp_setup_bind_framebuffer( struct setup_context *setup,
 
    set_state( setup, SETUP_FLUSHED );
 
-#if 0
-   pipe_surface_reference( &setup->fb.cbuf, color );
-   pipe_surface_reference( &setup->fb.zsbuf, zstencil );
-
-   if (!setup->fb.cbuf && !setup->fb.zsbuf) {
-      setup->fb.width = 0;
-      setup->fb.height = 0;
-   }
-   else if (!setup->fb.zsbuf) {
-      setup->fb.width = setup->fb.cbuf->width;
-      setup->fb.height = setup->fb.cbuf->height;
-   }
-   else if (!setup->fb.cbuf) {
-      setup->fb.width = setup->fb.zsbuf->width;
-      setup->fb.height = setup->fb.zsbuf->height;
-   }
-   else {
-      /* XXX: not sure what we're really supposed to do for
-       * mis-matched color & depth buffer sizes.
-       */
-      setup->fb.width = MIN2(setup->fb.cbuf->width,
-                             setup->fb.zsbuf->width);
-      setup->fb.height = MIN2(setup->fb.cbuf->height,
-                              setup->fb.zsbuf->height);
-   }
-   setup->tiles_x = align(setup->fb.width, TILE_SIZE) / TILE_SIZE;
-   setup->tiles_y = align(setup->fb.height, TILE_SIZE) / TILE_SIZE;
-#else
    setup->fb = fb;
    setup->tiles_x = align(setup->fb->width, TILE_SIZE) / TILE_SIZE;
    setup->tiles_y = align(setup->fb->height, TILE_SIZE) / TILE_SIZE;
-#endif
-
 }
 
 




More information about the mesa-commit mailing list