diff options
author | Brian Paul <[email protected]> | 2009-12-10 14:54:32 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-12-10 14:54:32 -0700 |
commit | 721b5167dcb2558b4bd53e09fc33936feeb93744 (patch) | |
tree | 0ca0d60acc47ff8918195d0bd6d76884c386bb75 /src | |
parent | 21008441e4609c8590ede093a549ef689516ddd4 (diff) |
llvmpipe: added some bin queue debug code
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bin_queue.c | 8 |
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 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; |