From f0dfc05660c020464ed79cc6b1a68687cc5db359 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 10 Jun 2022 11:40:01 -0600 Subject: [PATCH] draw: asst. clean-up in draw_pt_util.c Signed-off-by: Brian Paul Acked-by: Dave Airlie Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/auxiliary/draw/draw_pt_util.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/gallium/auxiliary/draw/draw_pt_util.c b/src/gallium/auxiliary/draw/draw_pt_util.c index 80e4c58..ca241a2 100644 --- a/src/gallium/auxiliary/draw/draw_pt_util.c +++ b/src/gallium/auxiliary/draw/draw_pt_util.c @@ -1,8 +1,8 @@ /************************************************************************** - * + * * Copyright 2007 VMware, Inc. * All Rights Reserved. - * + * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -10,11 +10,11 @@ * 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. - * + * **************************************************************************/ /* @@ -35,6 +35,7 @@ #include "draw/draw_pt.h" #include "util/u_debug.h" + void draw_pt_split_prim(enum pipe_prim_type prim, unsigned *first, unsigned *incr) { @@ -94,7 +95,9 @@ draw_pt_split_prim(enum pipe_prim_type prim, unsigned *first, unsigned *incr) } } -unsigned draw_pt_trim_count(unsigned count, unsigned first, unsigned incr) + +unsigned +draw_pt_trim_count(unsigned count, unsigned first, unsigned incr) { if (count < first) return 0; -- 2.7.4