Mesa (master): st/mesa: whitespace clean-ups in st_manager.c

Brian Paul brianp at kemper.freedesktop.org
Fri Apr 28 19:12:15 UTC 2017


Module: Mesa
Branch: master
Commit: 054fb129e1117315d0c4d1ac95bde650aee3faf5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=054fb129e1117315d0c4d1ac95bde650aee3faf5

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Apr 27 09:03:02 2017 -0600

st/mesa: whitespace clean-ups in st_manager.c

Trivial.

---

 src/mesa/state_tracker/st_manager.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index 90e4177f69..41de5967ea 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -183,8 +183,8 @@ st_framebuffer_validate(struct st_framebuffer *stfb,
    /* validate the fb */
    do {
       if (!stfb->iface->validate(&st->iface, stfb->iface, stfb->statts,
-				 stfb->num_statts, textures))
-	 return;
+                                 stfb->num_statts, textures))
+         return;
 
       stfb->iface_stamp = new_stamp;
       new_stamp = p_atomic_read(&stfb->iface->stamp);
@@ -589,7 +589,7 @@ st_context_teximage(struct st_context_iface *stctxi,
 
    _mesa_dirty_texobj(ctx, texObj);
    _mesa_unlock_texture(ctx, texObj);
-   
+
    return TRUE;
 }
 
@@ -716,7 +716,7 @@ st_api_create_context(struct st_api *stapi, struct st_manager *smapi,
       /* Is the actual version less than the requested version?
        */
       if (st->ctx->Version < attribs->major * 10U + attribs->minor) {
-	 *error = ST_CONTEXT_ERROR_BAD_VERSION;
+         *error = ST_CONTEXT_ERROR_BAD_VERSION;
          st_destroy_context(st);
          return NULL;
       }
@@ -905,7 +905,7 @@ st_manager_add_color_renderbuffer(struct st_context *st,
     * new renderbuffer. It might be that there is a window system
     * renderbuffer available.
     */
-   if(stfb->iface)
+   if (stfb->iface)
       stfb->iface_stamp = p_atomic_read(&stfb->iface->stamp) - 1;
 
    st_invalidate_state(st->ctx, _NEW_BUFFERS);
@@ -913,8 +913,9 @@ st_manager_add_color_renderbuffer(struct st_context *st,
    return TRUE;
 }
 
-static unsigned get_version(struct pipe_screen *screen,
-                            struct st_config_options *options, gl_api api)
+static unsigned
+get_version(struct pipe_screen *screen,
+            struct st_config_options *options, gl_api api)
 {
    struct gl_constants consts = {0};
    struct gl_extensions extensions = {0};




More information about the mesa-commit mailing list