r600g/radeon/winsys: indentation cleanup
authorJerome Glisse <jglisse@redhat.com>
Fri, 4 Jan 2013 16:46:13 +0000 (11:46 -0500)
committerJerome Glisse <jglisse@redhat.com>
Mon, 7 Jan 2013 16:06:02 +0000 (11:06 -0500)
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/winsys/radeon/drm/radeon_drm_bo.c
src/gallium/winsys/radeon/drm/radeon_drm_cs.h

index f6db3bf9699711b1ca10556c8b4844ca1c433d4f..7a7a4315ec82f1ecc42a81739082f7e817ed50fa 100644 (file)
@@ -292,21 +292,21 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void
        rctx->cs = rctx->ws->cs_create(rctx->ws);
        rctx->ws->cs_set_flush_callback(rctx->cs, r600_flush_from_winsys, rctx);
 
-        rctx->uploader = u_upload_create(&rctx->context, 1024 * 1024, 256,
-                                         PIPE_BIND_INDEX_BUFFER |
-                                         PIPE_BIND_CONSTANT_BUFFER);
-        if (!rctx->uploader)
-                goto fail;
+       rctx->uploader = u_upload_create(&rctx->context, 1024 * 1024, 256,
+                                       PIPE_BIND_INDEX_BUFFER |
+                                       PIPE_BIND_CONSTANT_BUFFER);
+       if (!rctx->uploader)
+               goto fail;
 
        rctx->allocator_fetch_shader = u_suballocator_create(&rctx->context, 64 * 1024, 256,
                                                             0, PIPE_USAGE_STATIC, FALSE);
-        if (!rctx->allocator_fetch_shader)
-                goto fail;
+       if (!rctx->allocator_fetch_shader)
+               goto fail;
 
        rctx->allocator_so_filled_size = u_suballocator_create(&rctx->context, 4096, 4,
-                                                               0, PIPE_USAGE_STATIC, TRUE);
+                                                               0, PIPE_USAGE_STATIC, TRUE);
         if (!rctx->allocator_so_filled_size)
-                goto fail;
+               goto fail;
 
        rctx->blitter = util_blitter_create(&rctx->context);
        if (rctx->blitter == NULL)
index 6b7c053760460d2613996326ce104d6a73541a25..934a6f547c0cc52e04658a97b2afb7c6efe66e94 100644 (file)
@@ -408,7 +408,7 @@ struct r600_context {
        struct radeon_winsys            *ws;
        struct radeon_winsys_cs         *cs;
        struct blitter_context          *blitter;
-       struct u_upload_mgr             *uploader;
+       struct u_upload_mgr             *uploader;
        struct u_suballocator           *allocator_so_filled_size;
        struct u_suballocator           *allocator_fetch_shader;
        struct util_slab_mempool        pool_transfers;
index 07e92c591b595c646e491a6b26bda8c84192d234..897e9627dbc16cef01b7e0bc5d5ce9bc538c8e1e 100644 (file)
@@ -802,8 +802,7 @@ static void radeon_bo_set_tiling(struct pb_buffer *_buf,
                         sizeof(args));
 }
 
-static struct radeon_winsys_cs_handle *radeon_drm_get_cs_handle(
-        struct pb_buffer *_buf)
+static struct radeon_winsys_cs_handle *radeon_drm_get_cs_handle(struct pb_buffer *_buf)
 {
     /* return radeon_bo. */
     return (struct radeon_winsys_cs_handle*)get_radeon_bo(_buf);
index 6336d3a378899d08ff8fb6a4a73b2ee145039c32..286eb6a3409ed7b41cd646085fe4391318eedc69 100644 (file)
@@ -33,7 +33,7 @@
 struct radeon_cs_context {
     uint32_t                    buf[RADEON_MAX_CMDBUF_DWORDS];
 
-    int fd;
+    int                         fd;
     struct drm_radeon_cs        cs;
     struct drm_radeon_cs_chunk  chunks[3];
     uint64_t                    chunk_array[3];