From 2c8d5c66ce2ddc0b7182e4844690736fc4c47212 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 4 Dec 2009 15:46:37 -0700 Subject: llvmpipe: remove dead code left over from a previous commit --- src/gallium/drivers/llvmpipe/lp_setup.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index efaf5acfe8..e561e8e9b6 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 - } -- cgit v1.2.3