tnl: Silence unused parameter warnings in _tnl_split_inplace
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 10 Apr 2020 17:31:14 +0000 (10:31 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Apr 2020 17:26:54 +0000 (10:26 -0700)
Unused since db0eb3a437f ("vbo: Fix up in-place splitting for non-contiguous/indexed primitives.") which landed in 2010.

src/mesa/tnl/t_split_inplace.c: In function ‘_tnl_split_inplace’:
src/mesa/tnl/t_split_inplace.c:270:27: warning: unused parameter ‘min_index’ [-Wunused-parameter]
  270 |                    GLuint min_index,
      |                    ~~~~~~~^~~~~~~~~
src/mesa/tnl/t_split_inplace.c:271:27: warning: unused parameter ‘max_index’ [-Wunused-parameter]
  271 |                    GLuint max_index,
      |                    ~~~~~~~^~~~~~~~~

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4512>

src/mesa/tnl/t_split.c
src/mesa/tnl/t_split.h
src/mesa/tnl/t_split_inplace.c

index 9c59380c8313584e65ea349bce9cfbe2c5798d9f..3959e11d236bf323f17584e781884a146be7ae2c 100644 (file)
@@ -137,8 +137,7 @@ _tnl_split_prims(struct gl_context *ctx,
           * individual primitives.
           */
          _tnl_split_inplace(ctx, arrays, prim, nr_prims, ib,
-                            min_index, max_index, num_instances,
-                            base_instance, draw, limits);
+                            num_instances, base_instance, draw, limits);
       }
       else {
          /* Why were we called? */
@@ -152,8 +151,7 @@ _tnl_split_prims(struct gl_context *ctx,
           * otherwise try to split the individual primitives.
           */
          _tnl_split_inplace(ctx, arrays, prim, nr_prims, ib,
-                            min_index, max_index, num_instances,
-                            base_instance, draw, limits);
+                            num_instances, base_instance, draw, limits);
       }
       else {
          /* Why were we called? */
index 7634e553a872e2fbe09c51f47f11c0d358b0a2bb..8f2d1baa53c8f873aec4cf22b4a48db06aa7e139 100644 (file)
@@ -55,8 +55,6 @@ _tnl_split_inplace(struct gl_context *ctx,
                    const struct _mesa_prim *prim,
                    GLuint nr_prims,
                    const struct _mesa_index_buffer *ib,
-                   GLuint min_index,
-                   GLuint max_index,
                    GLuint num_instances,
                    GLuint base_instance,
                    tnl_draw_func draw,
index 3ff9e01360bef19c79301ce0d57a1c46fd8b8ada..126f6fddfdfe15cf384b94dfb191bd752cac83cd 100644 (file)
@@ -267,8 +267,6 @@ _tnl_split_inplace(struct gl_context *ctx,
                    const struct _mesa_prim *prim,
                    GLuint nr_prims,
                    const struct _mesa_index_buffer *ib,
-                   GLuint min_index,
-                   GLuint max_index,
                    GLuint num_instances,
                    GLuint base_instance,
                    tnl_draw_func draw,
@@ -296,5 +294,3 @@ _tnl_split_inplace(struct gl_context *ctx,
 
    split_prims(&split);
 }
-
-