Cell: reformattting
authorBrian <brian.paul@tungstengraphics.com>
Fri, 11 Jan 2008 18:27:24 +0000 (11:27 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 11 Jan 2008 18:27:24 +0000 (11:27 -0700)
src/mesa/pipe/cell/ppu/cell_draw_arrays.c

index c014f5b29d9814e9abc067d3f53be4bda3701774..537cec8785c55e4a2dc750f32e08b34b93f07043 100644 (file)
@@ -121,18 +121,17 @@ cell_draw_elements(struct pipe_context *pipe,
     */
    for (i = 0; i < PIPE_ATTRIB_MAX; i++) {
       if (sp->vertex_buffer[i].buffer) {
-         void *buf
-            = pipe->winsys->buffer_map(pipe->winsys,
-                                       sp->vertex_buffer[i].buffer,
-                                       PIPE_BUFFER_FLAG_READ);
+         void *buf = pipe->winsys->buffer_map(pipe->winsys,
+                                              sp->vertex_buffer[i].buffer,
+                                              PIPE_BUFFER_FLAG_READ);
          draw_set_mapped_vertex_buffer(draw, i, buf);
       }
    }
    /* Map index buffer, if present */
    if (indexBuffer) {
-      void *mapped_indexes
-         = pipe->winsys->buffer_map(pipe->winsys, indexBuffer,
-                                    PIPE_BUFFER_FLAG_READ);
+      void *mapped_indexes = pipe->winsys->buffer_map(pipe->winsys,
+                                                      indexBuffer,
+                                                      PIPE_BUFFER_FLAG_READ);
       draw_set_mapped_element_buffer(draw, indexSize, mapped_indexes);
    }
    else {
@@ -161,7 +160,6 @@ cell_draw_elements(struct pipe_context *pipe,
       draw_set_mapped_element_buffer(draw, 0, NULL);
    }
 
-
    /* Note: leave drawing surfaces mapped */
    cell_unmap_constant_buffers(sp);