i965: Fix indentation in brw_upload_indices().
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Mar 2014 00:39:56 +0000 (16:39 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Mar 2014 17:38:48 +0000 (10:38 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_draw_upload.c

index 3c537a57b4754619b3e571f1240a2331d22376fd..f2945c124e1318754eee4ed554a77a4f6bba7d6c 100644 (file)
@@ -851,25 +851,25 @@ static void brw_upload_indices(struct brw_context *brw)
       /* If the index buffer isn't aligned to its element size, we have to
        * rebase it into a temporary.
        */
-       if ((ib_type_size - 1) & offset) {
-          perf_debug("copying index buffer to a temporary to work around "
-                     "misaligned offset %d\n", offset);
-
-          GLubyte *map = ctx->Driver.MapBufferRange(ctx,
-                                                    offset,
-                                                    ib_size,
-                                                    GL_MAP_READ_BIT,
-                                                    bufferobj,
-                                                    MAP_INTERNAL);
-
-          intel_upload_data(brw, map, ib_size, ib_type_size, &bo, &offset);
-
-          ctx->Driver.UnmapBuffer(ctx, bufferobj, MAP_INTERNAL);
-       } else {
-         bo = intel_bufferobj_buffer(brw, intel_buffer_object(bufferobj),
-                                     offset, ib_size);
-         drm_intel_bo_reference(bo);
-       }
+      if ((ib_type_size - 1) & offset) {
+         perf_debug("copying index buffer to a temporary to work around "
+                    "misaligned offset %d\n", offset);
+
+         GLubyte *map = ctx->Driver.MapBufferRange(ctx,
+                                                   offset,
+                                                   ib_size,
+                                                   GL_MAP_READ_BIT,
+                                                   bufferobj,
+                                                   MAP_INTERNAL);
+
+         intel_upload_data(brw, map, ib_size, ib_type_size, &bo, &offset);
+
+         ctx->Driver.UnmapBuffer(ctx, bufferobj, MAP_INTERNAL);
+      } else {
+         bo = intel_bufferobj_buffer(brw, intel_buffer_object(bufferobj),
+                                     offset, ib_size);
+         drm_intel_bo_reference(bo);
+      }
    }
 
    /* Use 3DPRIMITIVE's start_vertex_offset to avoid re-uploading