From: Eric Anholt Date: Sat, 22 Oct 2011 18:54:32 +0000 (-0700) Subject: i965: Move index buffer upload to emit() time. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c83bfeabc6af82f061d53b8b5923ee26f14efb58;p=mesa.git i965: Move index buffer upload to emit() time. It's consumed by the brw_emit_index_buffer() code at emit() time. Reviewed-by: Kenneth Graunke Acked-by: Paul Berry --- diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 112c9f0cbae..b7ae4cdd719 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -670,7 +670,7 @@ const struct brw_tracked_state brw_vertices = { .emit = brw_emit_vertices, }; -static void brw_prepare_indices(struct brw_context *brw) +static void brw_upload_indices(struct brw_context *brw) { struct gl_context *ctx = &brw->intel.ctx; struct intel_context *intel = &brw->intel; @@ -753,7 +753,7 @@ const struct brw_tracked_state brw_indices = { .brw = BRW_NEW_INDICES, .cache = 0, }, - .prepare = brw_prepare_indices, + .emit = brw_upload_indices, }; static void brw_emit_index_buffer(struct brw_context *brw)