Mesa (master): tnl: Silence unused parameter warnings in _tnl_split_inplace
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 13 17:49:39 UTC 2020
Module: Mesa
Branch: master
Commit: ac13258a6eb468b4cc3995b423319b9b62f54d94
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac13258a6eb468b4cc3995b423319b9b62f54d94
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Fri Apr 10 10:31:14 2020 -0700
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 <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4512>
---
src/mesa/tnl/t_split.c | 6 ++----
src/mesa/tnl/t_split.h | 2 --
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);
}
-
-
More information about the mesa-commit
mailing list