Mesa (lp-binning): llvmpipe: added lp_bin_get_num_bins()

Brian Paul brianp at kemper.freedesktop.org
Fri Dec 11 17:01:21 PST 2009


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

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Dec 11 17:33:30 2009 -0700

llvmpipe: added lp_bin_get_num_bins()

---

 src/gallium/drivers/llvmpipe/lp_bin.h |    7 +++++++
 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 565dd49..e763b16 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 );
 



More information about the mesa-commit mailing list