llvmpipe: asst. clean-ups in lp_state_vertex.c
authorBrian Paul <brianp@vmware.com>
Wed, 21 Sep 2022 17:30:13 +0000 (11:30 -0600)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Oct 2022 15:27:13 +0000 (15:27 +0000)
Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19289>

src/gallium/drivers/llvmpipe/lp_state_vertex.c

index ee87bed..4056f56 100644 (file)
@@ -1,5 +1,5 @@
 /**************************************************************************
- * 
+ *
  * Copyright 2007 VMware, Inc.
  * All Rights Reserved.
  *
  * distribute, sub license, and/or sell copies of the Software, and to
  * permit persons to whom the Software is furnished to do so, subject to
  * the following conditions:
- * 
+ *
  * The above copyright notice and this permission notice (including the
  * next paragraph) shall be included in all copies or substantial portions
  * of the Software.
- * 
+ *
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
@@ -22,7 +22,7 @@
  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- * 
+ *
  **************************************************************************/
 
 /* Authors:  Keith Whitwell <keithw@vmware.com>
@@ -53,6 +53,7 @@ llvmpipe_create_vertex_elements_state(struct pipe_context *pipe,
    return velems;
 }
 
+
 static void
 llvmpipe_bind_vertex_elements_state(struct pipe_context *pipe,
                                     void *velems)
@@ -65,15 +66,18 @@ llvmpipe_bind_vertex_elements_state(struct pipe_context *pipe,
    llvmpipe->dirty |= LP_NEW_VERTEX;
 
    if (velems)
-      draw_set_vertex_elements(llvmpipe->draw, lp_velems->count, lp_velems->velem);
+      draw_set_vertex_elements(llvmpipe->draw, lp_velems->count,
+                               lp_velems->velem);
 }
 
+
 static void
 llvmpipe_delete_vertex_elements_state(struct pipe_context *pipe, void *velems)
 {
-   FREE( velems );
+   FREE(velems);
 }
 
+
 static void
 llvmpipe_set_vertex_buffers(struct pipe_context *pipe,
                             unsigned start_slot, unsigned count,