summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-08-30 01:02:30 -0700
committerKenneth Graunke <[email protected]>2017-09-01 09:59:25 -0700
commit6ec7bddb19aee9faf28bfaac45f39b81708214d7 (patch)
treed8f8ba8fdc3faab21ba3e55994d5d328c0b258a4 /src/mesa
parent43145bbf097dd0c973bb19afd9227cf3ce75f52a (diff)
i965: Don't double count the batch in aperture_space.
intel_batchbuffer_reset calls add_exec_bo on the batch right away, which adds in the batch BO size. Fixes: 29ba502a4e28 ("i965: Use I915_EXEC_BATCH_FIRST when available.") Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index 6a049014952..daed8526eae 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -454,7 +454,7 @@ brw_new_batch(struct brw_context *brw)
}
brw->batch.reloc_count = 0;
brw->batch.exec_count = 0;
- brw->batch.aperture_space = BATCH_SZ;
+ brw->batch.aperture_space = 0;
/* Create a new batchbuffer and reset the associated state: */
intel_batchbuffer_reset_and_clear_render_cache(brw);