mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
Use braces around size parameter in BEGIN_BATCH. Hopefully fixes
batch overrun problems.
This commit is contained in:
parent
1ff99fcd50
commit
c848a65b5e
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ intel_batchbuffer_require_space(struct intel_batchbuffer *batch,
|
|||
|
||||
#define BEGIN_BATCH(n, flags) do { \
|
||||
assert(!intel->prim.flush); \
|
||||
intel_batchbuffer_require_space(intel->batch, n*4, flags); \
|
||||
intel_batchbuffer_require_space(intel->batch, (n)*4, flags); \
|
||||
} while (0)
|
||||
|
||||
#define OUT_BATCH(d) intel_batchbuffer_emit_dword(intel->batch, d)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue