diff options
author | Eric Anholt <[email protected]> | 2011-10-22 11:54:32 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-10-29 12:17:11 -0700 |
commit | c83bfeabc6af82f061d53b8b5923ee26f14efb58 (patch) | |
tree | 818477719c773c086f2a48984e60ff96addf0c1c /src/mesa | |
parent | 78a010127f3eb600fb7b145bc562b62a77af5a34 (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/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw_upload.c | 4 |
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) |