summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_bin.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-09 16:30:05 -0700
committerBrian Paul <[email protected]>2009-12-09 16:30:05 -0700
commitad3c16c127f167513a136759a1700e111a0ef7b8 (patch)
tree8e02237561fe60f264b6b4319e084f785386cd70 /src/gallium/drivers/llvmpipe/lp_bin.c
parentedf11da7f8e2fbe090e60e58c12c6a5ece3089bc (diff)
llvmpipe: simplify the tiles_x, tiles_y code a bit
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bin.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bin.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bin.c b/src/gallium/drivers/llvmpipe/lp_bin.c
index f2d3c2df4d2..703cdd2de59 100644
--- a/src/gallium/drivers/llvmpipe/lp_bin.c
+++ b/src/gallium/drivers/llvmpipe/lp_bin.c
@@ -25,6 +25,7 @@
*
**************************************************************************/
+#include "util/u_math.h"
#include "util/u_memory.h"
#include "lp_bin.h"
@@ -137,13 +138,14 @@ lp_free_bin_data(struct lp_bins *bins)
void
-lp_bin_set_num_bins( struct lp_bins *bins,
- unsigned tiles_x, unsigned tiles_y )
+lp_bin_set_framebuffer_size( struct lp_bins *bins,
+ unsigned width, unsigned height )
{
- bins->tiles_x = tiles_x;
- bins->tiles_y = tiles_y;
+ bins->tiles_x = align(width, TILE_SIZE) / TILE_SIZE;
+ bins->tiles_y = align(height, TILE_SIZE) / TILE_SIZE;
}
+
void
lp_bin_new_cmd_block( struct cmd_block_list *list )
{