aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_batchbuffer.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-06-28 19:38:13 -0700
committerKenneth Graunke <[email protected]>2013-07-03 10:48:14 -0700
commitabc2bdffd6fe814d546a496733162fb1732f4c94 (patch)
treee42172baa391a813458408d8df0b2ce4266eba9c /src/mesa/drivers/dri/i965/intel_batchbuffer.c
parent2c602d2adff5bbe2954fdde63adcea63c2a499ed (diff)
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 <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_batchbuffer.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index 46f17fd1927..409df29c7d1 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -71,7 +71,7 @@ intel_batchbuffer_init(struct intel_context *intel)
}
if (!intel->has_llc) {
- intel->batch.cpu_map = malloc(intel->maxBatchSize);
+ intel->batch.cpu_map = malloc(BATCH_SZ);
intel->batch.map = intel->batch.cpu_map;
}
}
@@ -88,7 +88,7 @@ intel_batchbuffer_reset(struct intel_context *intel)
clear_cache(intel);
intel->batch.bo = drm_intel_bo_alloc(intel->bufmgr, "batchbuffer",
- intel->maxBatchSize, 4096);
+ BATCH_SZ, 4096);
if (intel->has_llc) {
drm_intel_bo_map(intel->batch.bo, true);
intel->batch.map = intel->batch.bo->virtual;