From 721b5167dcb2558b4bd53e09fc33936feeb93744 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 10 Dec 2009 14:54:32 -0700 Subject: llvmpipe: added some bin queue debug code --- src/gallium/drivers/llvmpipe/lp_bin_queue.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_bin_queue.c b/src/gallium/drivers/llvmpipe/lp_bin_queue.c index 19e1a5827b7..0fda0b5baeb 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; -- cgit v1.2.3