mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 16:30:10 +01:00
Cell: add check to catch recursive batch flushing
This commit is contained in:
parent
7f4bec264e
commit
d4bd6ca816
1 changed files with 7 additions and 0 deletions
|
|
@ -34,13 +34,18 @@
|
|||
void
|
||||
cell_batch_flush(struct cell_context *cell)
|
||||
{
|
||||
static boolean flushing = FALSE;
|
||||
uint batch = cell->cur_batch;
|
||||
const uint size = cell->batch_buffer_size[batch];
|
||||
uint spu, cmd_word;
|
||||
|
||||
assert(!flushing);
|
||||
|
||||
if (size == 0)
|
||||
return;
|
||||
|
||||
flushing = TRUE;
|
||||
|
||||
assert(batch < CELL_NUM_BATCH_BUFFERS);
|
||||
|
||||
/*
|
||||
|
|
@ -86,6 +91,8 @@ cell_batch_flush(struct cell_context *cell)
|
|||
|
||||
cell->batch_buffer_size[batch] = 0; /* empty */
|
||||
cell->cur_batch = batch;
|
||||
|
||||
flushing = FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue