i965: Don't double count the batch in aperture_space.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 30 Aug 2017 08:02:30 +0000 (01:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 1 Sep 2017 16:59:25 +0000 (09:59 -0700)
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 <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/intel_batchbuffer.c

index 6a0490149526d261132ff195c1153d3ef7af6dae..daed8526eae426c45394b36fe86b092392b473bf 100644 (file)
@@ -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);