mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 05:00:48 +02:00
intel: assert that we do not overflow the batch buffer.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
415b7c7775
commit
15904c057b
1 changed files with 2 additions and 1 deletions
|
|
@ -158,9 +158,10 @@ _intel_batchbuffer_flush(struct intel_batchbuffer *batch, const char *file,
|
|||
}
|
||||
|
||||
/* Mark the end of the buffer. */
|
||||
*(GLuint *) (batch->ptr) = MI_BATCH_BUFFER_END; /* noop */
|
||||
*(GLuint *) (batch->ptr) = MI_BATCH_BUFFER_END;
|
||||
batch->ptr += 4;
|
||||
used = batch->ptr - batch->map;
|
||||
assert (used <= batch->buf->size);
|
||||
|
||||
/* Workaround for recursive batchbuffer flushing: If the window is
|
||||
* moved, we can get into a case where we try to flush during a
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue