llvmpipe: added lp_bin_get_num_bins()
authorBrian Paul <brianp@vmware.com>
Sat, 12 Dec 2009 00:33:30 +0000 (17:33 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 12 Dec 2009 00:33:30 +0000 (17:33 -0700)
src/gallium/drivers/llvmpipe/lp_bin.h

index 565dd49..e763b16 100644 (file)
@@ -258,6 +258,13 @@ lp_bin_state_command( struct lp_bins *bins,
                       const union lp_rast_cmd_arg arg );
 
 
+static INLINE unsigned
+lp_bin_get_num_bins( const struct lp_bins *bins )
+{
+   return bins->tiles_x * bins->tiles_y;
+}
+
+
 void
 lp_bin_iter_begin( struct lp_bins *bins );