summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_bin.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-12-07 18:04:31 -0700
committerBrian Paul <brianp@vmware.com>2009-12-07 18:04:31 -0700
commit270f15486072b0a2fbea2a21b7a4a9d4c76d4bfb (patch)
treee580696365800adc14d693a6d15c56eff2c3009e /src/gallium/drivers/llvmpipe/lp_bin.h
parent8a23105fa016ec4368f407ca64e7763f110da4e5 (diff)
llvmpipe: introduce mutex and bin iteration functions
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bin.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bin.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bin.h b/src/gallium/drivers/llvmpipe/lp_bin.h
index fcbb975ad6..24e599ea66 100644
--- a/src/gallium/drivers/llvmpipe/lp_bin.h
+++ b/src/gallium/drivers/llvmpipe/lp_bin.h
@@ -35,6 +35,7 @@
#ifndef LP_BIN_H
#define LP_BIN_H
+#include "pipe/p_thread.h"
#include "lp_tile_soa.h"
#include "lp_rast.h"
@@ -110,6 +111,9 @@ struct lp_bins {
* This basically the framebuffer size divided by tile size
*/
unsigned tiles_x, tiles_y;
+
+ int curr_x, curr_y; /**< for iterating over bins */
+ pipe_mutex mutex;
};
@@ -239,4 +243,11 @@ lp_bin_state_command( struct lp_bins *bins,
const union lp_rast_cmd_arg arg );
+void
+lp_bin_iter_begin( struct lp_bins *bins );
+
+struct cmd_bin *
+lp_bin_iter_next( struct lp_bins *bins, int *bin_x, int *bin_y );
+
+
#endif /* LP_BIN_H */