summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index 10e33bb8c7b..658f7ea6989 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -293,7 +293,8 @@ grow_buffer(struct brw_context *brw,
uint32_t *old_map = *map_ptr;
struct brw_bo *old_bo = *bo_ptr;
- struct brw_bo *new_bo = brw_bo_alloc(bufmgr, old_bo->name, new_size, 4096);
+ struct brw_bo *new_bo =
+ brw_bo_alloc(bufmgr, old_bo->name, new_size, old_bo->align);
uint32_t *new_map;
perf_debug("Growing %s - ran out of space\n", old_bo->name);