identity: Whitespace & Style
authorJakob Bornecrantz <jakob@vmware.com>
Sat, 1 May 2010 10:50:36 +0000 (11:50 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Sun, 2 May 2010 23:27:37 +0000 (00:27 +0100)
src/gallium/drivers/identity/id_context.c
src/gallium/drivers/identity/id_objects.c
src/gallium/drivers/identity/id_objects.h
src/gallium/drivers/identity/id_screen.c

index 0bc8bf21966b5d2b847f8de109d7cf363f8609f5..6e88239d65461a7ef91f54d6e42c4e337af9f14a 100644 (file)
@@ -684,9 +684,9 @@ identity_flush(struct pipe_context *_pipe,
 
 static unsigned int
 identity_is_resource_referenced(struct pipe_context *_pipe,
-                               struct pipe_resource *_resource,
-                               unsigned face,
-                               unsigned level)
+                                struct pipe_resource *_resource,
+                                unsigned face,
+                                unsigned level)
 {
    struct identity_context *id_pipe = identity_context(_pipe);
    struct identity_resource *id_resource = identity_resource(_resource);
@@ -694,9 +694,9 @@ identity_is_resource_referenced(struct pipe_context *_pipe,
    struct pipe_resource *texture = id_resource->resource;
 
    return pipe->is_resource_referenced(pipe,
-                                      texture,
-                                      face,
-                                      level);
+                                       texture,
+                                       face,
+                                       level);
 }
 
 static struct pipe_sampler_view *
@@ -741,10 +741,10 @@ identity_sampler_view_destroy(struct pipe_context *pipe,
 
 static struct pipe_transfer *
 identity_context_get_transfer(struct pipe_context *_context,
-                             struct pipe_resource *_resource,
-                             struct pipe_subresource sr,
-                             unsigned usage,
-                             const struct pipe_box *box)
+                              struct pipe_resource *_resource,
+                              struct pipe_subresource sr,
+                              unsigned usage,
+                              const struct pipe_box *box)
 {
    struct identity_context *id_context = identity_context(_context);
    struct identity_resource *id_resource = identity_resource(_resource);
@@ -753,10 +753,10 @@ identity_context_get_transfer(struct pipe_context *_context,
    struct pipe_transfer *result;
 
    result = context->get_transfer(context,
-                                 texture,
-                                 sr,
-                                 usage,
-                                 box);
+                                  texture,
+                                  sr,
+                                  usage,
+                                  box);
 
    if (result)
       return identity_transfer_create(id_context, id_resource, result);
@@ -765,7 +765,7 @@ identity_context_get_transfer(struct pipe_context *_context,
 
 static void
 identity_context_transfer_destroy(struct pipe_context *_pipe,
-                                      struct pipe_transfer *_transfer)
+                                  struct pipe_transfer *_transfer)
 {
    identity_transfer_destroy(identity_context(_pipe),
                              identity_transfer(_transfer));
@@ -773,7 +773,7 @@ identity_context_transfer_destroy(struct pipe_context *_pipe,
 
 static void *
 identity_context_transfer_map(struct pipe_context *_context,
-                             struct pipe_transfer *_transfer)
+                              struct pipe_transfer *_transfer)
 {
    struct identity_context *id_context = identity_context(_context);
    struct identity_transfer *id_transfer = identity_transfer(_transfer);
@@ -781,15 +781,15 @@ identity_context_transfer_map(struct pipe_context *_context,
    struct pipe_transfer *transfer = id_transfer->transfer;
 
    return context->transfer_map(context,
-                               transfer);
+                                transfer);
 }
 
 
 
 static void
-identity_context_transfer_flush_region( struct pipe_context *_context,
-                                       struct pipe_transfer *_transfer,
-                                       const struct pipe_box *box)
+identity_context_transfer_flush_region(struct pipe_context *_context,
+                                       struct pipe_transfer *_transfer,
+                                       const struct pipe_box *box)
 {
    struct identity_context *id_context = identity_context(_context);
    struct identity_transfer *id_transfer = identity_transfer(_transfer);
@@ -797,14 +797,14 @@ identity_context_transfer_flush_region( struct pipe_context *_context,
    struct pipe_transfer *transfer = id_transfer->transfer;
 
    context->transfer_flush_region(context,
-                                 transfer,
-                                 box);
+                                  transfer,
+                                  box);
 }
 
 
 static void
 identity_context_transfer_unmap(struct pipe_context *_context,
-                               struct pipe_transfer *_transfer)
+                                struct pipe_transfer *_transfer)
 {
    struct identity_context *id_context = identity_context(_context);
    struct identity_transfer *id_transfer = identity_transfer(_transfer);
@@ -812,19 +812,19 @@ identity_context_transfer_unmap(struct pipe_context *_context,
    struct pipe_transfer *transfer = id_transfer->transfer;
 
    context->transfer_unmap(context,
-                          transfer);
+                           transfer);
 }
 
 
 static void 
-identity_context_transfer_inline_write( struct pipe_context *_context,
-                                       struct pipe_resource *_resource,
-                                       struct pipe_subresource sr,
-                                       unsigned usage,
-                                       const struct pipe_box *box,
-                                       const void *data,
-                                       unsigned stride,
-                                       unsigned slice_stride)
+identity_context_transfer_inline_write(struct pipe_context *_context,
+                                       struct pipe_resource *_resource,
+                                       struct pipe_subresource sr,
+                                       unsigned usage,
+                                       const struct pipe_box *box,
+                                       const void *data,
+                                       unsigned stride,
+                                       unsigned slice_stride)
 {
    struct identity_context *id_context = identity_context(_context);
    struct identity_resource *id_resource = identity_resource(_resource);
@@ -832,13 +832,13 @@ identity_context_transfer_inline_write( struct pipe_context *_context,
    struct pipe_resource *texture = id_resource->resource;
 
    context->transfer_inline_write(context,
-                                 texture,
-                                 sr,
-                                 usage,
-                                 box,
-                                 data,
-                                 stride,
-                                 slice_stride);
+                                  texture,
+                                  sr,
+                                  usage,
+                                  box,
+                                  data,
+                                  stride,
+                                  slice_stride);
 }
 
 
index d50914e7d5dc637a2ce48254dfce7a5220c5f5b6..5070c0475d39e5a1461ea1ffcd7841ed91e39217 100644 (file)
@@ -110,7 +110,7 @@ identity_surface_destroy(struct identity_surface *id_surface)
 
 struct pipe_transfer *
 identity_transfer_create(struct identity_context *id_context,
-                        struct identity_resource *id_resource,
+                         struct identity_resource *id_resource,
                          struct pipe_transfer *transfer)
 {
    struct identity_transfer *id_transfer;
@@ -145,7 +145,7 @@ identity_transfer_destroy(struct identity_context *id_context,
 {
    pipe_resource_reference(&id_transfer->base.resource, NULL);
    id_context->pipe->transfer_destroy(id_context->pipe,
-                                     id_transfer->transfer);
+                                      id_transfer->transfer);
    FREE(id_transfer);
 }
 
index 058cf3009df801babf0a6335c18a99d8036d06ae..611519b6e87aa91f8fc27135d98b43790ad35c8c 100644 (file)
@@ -142,7 +142,7 @@ identity_transfer_unwrap(struct pipe_transfer *_transfer)
 
 struct pipe_resource *
 identity_resource_create(struct identity_screen *id_screen,
-                        struct pipe_resource *resource);
+                         struct pipe_resource *resource);
 
 void
 identity_resource_destroy(struct identity_resource *id_resource);
@@ -156,7 +156,7 @@ identity_surface_destroy(struct identity_surface *id_surface);
 
 struct pipe_transfer *
 identity_transfer_create(struct identity_context *id_context,
-                        struct identity_resource *id_resource,
+                         struct identity_resource *id_resource,
                          struct pipe_transfer *transfer);
 
 void
index 52573b211fbd1d78f436db7b470ee5b5b0d0dc4f..4fddd62ac2ccf3de57c16e5a378fd196bbc831df 100644 (file)
@@ -120,14 +120,14 @@ identity_screen_context_create(struct pipe_screen *_screen,
 
 static struct pipe_resource *
 identity_screen_resource_create(struct pipe_screen *_screen,
-                               const struct pipe_resource *templat)
+                                const struct pipe_resource *templat)
 {
    struct identity_screen *id_screen = identity_screen(_screen);
    struct pipe_screen *screen = id_screen->screen;
    struct pipe_resource *result;
 
    result = screen->resource_create(screen,
-                                   templat);
+                                    templat);
 
    if (result)
       return identity_resource_create(id_screen, result);
@@ -136,8 +136,8 @@ identity_screen_resource_create(struct pipe_screen *_screen,
 
 static struct pipe_resource *
 identity_screen_resource_from_handle(struct pipe_screen *_screen,
-                                    const struct pipe_resource *templ,
-                                    struct winsys_handle *handle)
+                                     const struct pipe_resource *templ,
+                                     struct winsys_handle *handle)
 {
    struct identity_screen *id_screen = identity_screen(_screen);
    struct pipe_screen *screen = id_screen->screen;
@@ -154,8 +154,8 @@ identity_screen_resource_from_handle(struct pipe_screen *_screen,
 
 static boolean
 identity_screen_resource_get_handle(struct pipe_screen *_screen,
-                                   struct pipe_resource *_texture,
-                                   struct winsys_handle *handle)
+                                    struct pipe_resource *_texture,
+                                    struct winsys_handle *handle)
 {
    struct identity_screen *id_screen = identity_screen(_screen);
    struct identity_resource *id_resource = identity_resource(_texture);
@@ -171,7 +171,7 @@ identity_screen_resource_get_handle(struct pipe_screen *_screen,
 
 static void
 identity_screen_resource_destroy(struct pipe_screen *screen,
-                                struct pipe_resource *_texture)
+                                 struct pipe_resource *_texture)
 {
    identity_resource_destroy(identity_resource(_texture));
 }
@@ -214,7 +214,7 @@ static struct pipe_resource *
 identity_screen_user_buffer_create(struct pipe_screen *_screen,
                                    void *ptr,
                                    unsigned bytes,
-                                  unsigned usage)
+                                   unsigned usage)
 {
    struct identity_screen *id_screen = identity_screen(_screen);
    struct pipe_screen *screen = id_screen->screen;
@@ -223,7 +223,7 @@ identity_screen_user_buffer_create(struct pipe_screen *_screen,
    result = screen->user_buffer_create(screen,
                                        ptr,
                                        bytes,
-                                      usage);
+                                       usage);
 
    if (result)
       return identity_resource_create(id_screen, result);