summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-10-22 11:54:32 -0700
committerEric Anholt <[email protected]>2011-10-29 12:17:11 -0700
commitc83bfeabc6af82f061d53b8b5923ee26f14efb58 (patch)
tree818477719c773c086f2a48984e60ff96addf0c1c /src
parent78a010127f3eb600fb7b145bc562b62a77af5a34 (diff)
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 <[email protected]> Acked-by: Paul Berry <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw_upload.c4
1 files 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)