diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2013-06-28 19:38:13 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2013-07-03 10:48:14 -0700 |
commit | abc2bdffd6fe814d546a496733162fb1732f4c94 (patch) | |
tree | e42172baa391a813458408d8df0b2ce4266eba9c /src/mesa/drivers/dri/i965/intel_batchbuffer.h | |
parent | 2c602d2adff5bbe2954fdde63adcea63c2a499ed (diff) | |
download | external_mesa3d-abc2bdffd6fe814d546a496733162fb1732f4c94.zip external_mesa3d-abc2bdffd6fe814d546a496733162fb1732f4c94.tar.gz external_mesa3d-abc2bdffd6fe814d546a496733162fb1732f4c94.tar.bz2 |
i965: Replace maxBatchSize variable with BATCH_SZ define.
maxBatchSize was only ever initialized to BATCH_SZ, and a few places
used BATCH_SZ directly anyway.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_batchbuffer.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_batchbuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.h b/src/mesa/drivers/dri/i965/intel_batchbuffer.h index 1a6d1aa..0845545 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.h +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.h @@ -111,7 +111,7 @@ intel_batchbuffer_require_space(struct intel_context *intel, intel->batch.is_blit = is_blit; #ifdef DEBUG - assert(sz < intel->maxBatchSize - BATCH_RESERVED); + assert(sz < BATCH_SZ - BATCH_RESERVED); #endif if (intel_batchbuffer_space(intel) < sz) intel_batchbuffer_flush(intel); |