From c83bfeabc6af82f061d53b8b5923ee26f14efb58 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 22 Oct 2011 11:54:32 -0700 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/brw_draw_upload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2