diff options
author | Brian Paul <[email protected]> | 2009-12-11 17:33:30 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-12-11 17:33:30 -0700 |
commit | 8736ee1e7d45c2a3868d46b2ecba7471518cd9b6 (patch) | |
tree | 648a2211acde8436d49b187ecd98cd888a4ecb84 /src/gallium/drivers | |
parent | 2876b684de39dbdf803b3f3d1ac231e76fb4357e (diff) |
llvmpipe: added lp_bin_get_num_bins()
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | 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 565dd49f684..e763b16ffe6 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 ); |