summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-09 16:32:32 -0700
committerBrian Paul <[email protected]>2009-12-09 16:32:32 -0700
commit96689d451a24753e088f40fb167c3cb26d8045ac (patch)
tree137048e2743eff0a0477a6478cf3aab3d3c3137b /src/gallium/drivers/llvmpipe
parentad3c16c127f167513a136759a1700e111a0ef7b8 (diff)
llvmpipe: added some debug/info code
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c
index 3165128f8f6..5659ae2ca5a 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast.c
@@ -40,6 +40,7 @@
+
/**
* Begin the rasterization phase.
* Map the framebuffer surfaces. Initialize the 'rast' state.
@@ -555,8 +556,22 @@ lp_rasterize_bins( struct lp_rasterizer *rast,
const struct pipe_framebuffer_state *fb,
bool write_depth )
{
+ boolean debug = false;
+
LP_DBG(DEBUG_SETUP, "%s\n", __FUNCTION__);
+ if (debug) {
+ unsigned x, y;
+ printf("rasterize bins:\n");
+ printf(" data size: %u\n", lp_bin_data_size(bins));
+ for (y = 0; y < bins->tiles_y; y++) {
+ for (x = 0; x < bins->tiles_x; x++) {
+ printf(" bin %u, %u size: %u\n", x, y,
+ lp_bin_cmd_size(bins, x, y));
+ }
+ }
+ }
+
lp_rast_begin( rast,
fb->cbufs[0],
fb->zsbuf,