mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
llvmpipe: added some bin queue debug code
This commit is contained in:
parent
21008441e4
commit
721b5167dc
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue