diff options
-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 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; |