Mesa (lp-binning): llvmpipe: added some bin queue debug code
Brian Paul
brianp at kemper.freedesktop.org
Thu Dec 10 21:56:53 UTC 2009
Module: Mesa
Branch: lp-binning
Commit: 721b5167dcb2558b4bd53e09fc33936feeb93744
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=721b5167dcb2558b4bd53e09fc33936feeb93744
Author: Brian Paul <brianp at vmware.com>
Date: Thu Dec 10 14:54:32 2009 -0700
llvmpipe: added some bin queue debug code
---
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 19e1a58..0fda0b5 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;
More information about the mesa-commit
mailing list