summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-12-11 17:33:30 -0700
committerBrian Paul <brianp@vmware.com>2009-12-11 17:33:30 -0700
commit8736ee1e7d45c2a3868d46b2ecba7471518cd9b6 (patch)
tree648a2211acde8436d49b187ecd98cd888a4ecb84 /src/gallium/drivers/llvmpipe
parent2876b684de39dbdf803b3f3d1ac231e76fb4357e (diff)
llvmpipe: added lp_bin_get_num_bins()
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bin.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bin.h b/src/gallium/drivers/llvmpipe/lp_bin.h
index 565dd49f68..e763b16ffe 100644
--- a/src/gallium/drivers/llvmpipe/lp_bin.h
+++ b/src/gallium/drivers/llvmpipe/lp_bin.h
@@ -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 );