i965: Move index buffer upload to emit() time.
authorEric Anholt <eric@anholt.net>
Sat, 22 Oct 2011 18:54:32 +0000 (11:54 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:17:11 +0000 (12:17 -0700)
It's consumed by the brw_emit_index_buffer() code at emit() time.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_draw_upload.c

index 112c9f0cbae60cf56d5edbce61cd40b9bc67830d..b7ae4cdd7194596db8a776a5d2bc29b79f8e1a59 100644 (file)
@@ -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)