[Mesa-dev] [PATCH 1/5] i965: Fix indentation of index buffer rebase code.

Eric Anholt eric at anholt.net
Mon Feb 4 19:31:49 PST 2013


---
 src/mesa/drivers/dri/i965/brw_draw_upload.c |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index ed3b378..e7f45ad 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -808,17 +808,17 @@ static void brw_upload_indices(struct brw_context *brw)
        * rebase it into a temporary.
        */
        if ((ib_type_size - 1) & offset) {
-           GLubyte *map = ctx->Driver.MapBufferRange(ctx,
-						     offset,
-						     ib_size,
-						     GL_MAP_WRITE_BIT,
-						     bufferobj);
+          GLubyte *map = ctx->Driver.MapBufferRange(ctx,
+                                                    offset,
+                                                    ib_size,
+                                                    GL_MAP_WRITE_BIT,
+                                                    bufferobj);
 
-	   intel_upload_data(&brw->intel, map, ib_size, ib_type_size,
-			     &bo, &offset);
-	   brw->ib.start_vertex_offset = offset / ib_type_size;
+          intel_upload_data(&brw->intel, map, ib_size, ib_type_size,
+                            &bo, &offset);
+          brw->ib.start_vertex_offset = offset / ib_type_size;
 
-           ctx->Driver.UnmapBuffer(ctx, bufferobj);
+          ctx->Driver.UnmapBuffer(ctx, bufferobj);
        } else {
 	  /* Use CMD_3D_PRIM's start_vertex_offset to avoid re-uploading
 	   * the index buffer state when we're just moving the start index
-- 
1.7.10.4



More information about the mesa-dev mailing list