summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-12-10 14:54:32 -0700
committerBrian Paul <brianp@vmware.com>2009-12-10 14:54:32 -0700
commit721b5167dcb2558b4bd53e09fc33936feeb93744 (patch)
tree0ca0d60acc47ff8918195d0bd6d76884c386bb75
parent21008441e4609c8590ede093a549ef689516ddd4 (diff)
llvmpipe: added some bin queue debug code
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bin_queue.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bin_queue.c b/src/gallium/drivers/llvmpipe/lp_bin_queue.c
index 19e1a5827b..0fda0b5bae 100644
--- a/src/gallium/drivers/llvmpipe/lp_bin_queue.c
+++ b/src/gallium/drivers/llvmpipe/lp_bin_queue.c
@@ -122,6 +122,14 @@ lp_bins_enqueue(struct lp_bins_queue *queue, struct lp_bins *bins)
assert(queue->size < MAX_BINS);
+ /* debug: check that bins is not already in the queue */
+ if (0) {
+ unsigned i;
+ for (i = 0; i < queue->size; i++) {
+ assert(queue->bins[i] != bins);
+ }
+ }
+
/* add to end */
queue->bins[queue->size++] = bins;