diff options
author | Ian Romanick <[email protected]> | 2020-04-10 10:31:14 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2020-04-13 10:26:54 -0700 |
commit | ac13258a6eb468b4cc3995b423319b9b62f54d94 (patch) | |
tree | 17d2e7b9daed2d2bfb3032d1dfa7bfc3e9e94717 /src/mesa/tnl | |
parent | 7a004f7987d179bdfba12ab7e92b0bb9a55b9df4 (diff) |
tnl: Silence unused parameter warnings in _tnl_split_inplace
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4512>
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r-- | src/mesa/tnl/t_split.c | 6 | ||||
-rw-r--r-- | src/mesa/tnl/t_split.h | 2 | ||||
-rw-r--r-- | src/mesa/tnl/t_split_inplace.c | 4 |
3 files changed, 2 insertions, 10 deletions
diff --git a/src/mesa/tnl/t_split.c b/src/mesa/tnl/t_split.c index 9c59380c831..3959e11d236 100644 --- a/src/mesa/tnl/t_split.c +++ b/src/mesa/tnl/t_split.c @@ -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? */ diff --git a/src/mesa/tnl/t_split.h b/src/mesa/tnl/t_split.h index 7634e553a87..8f2d1baa53c 100644 --- a/src/mesa/tnl/t_split.h +++ b/src/mesa/tnl/t_split.h @@ -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, diff --git a/src/mesa/tnl/t_split_inplace.c b/src/mesa/tnl/t_split_inplace.c index 3ff9e01360b..126f6fddfdf 100644 --- a/src/mesa/tnl/t_split_inplace.c +++ b/src/mesa/tnl/t_split_inplace.c @@ -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); } - - |