summaryrefslogtreecommitdiff
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2020-04-07 21:10:45 -0700
committerIan Romanick <ian.d.romanick@intel.com>2020-04-13 10:26:48 -0700
commit114e078001b3bade76b80fe99e39d346e88b6a4a (patch)
treeaae24b7de5276c1b3728386644809414e1469525 /src/mesa/tnl
parent1996f1d3dd2ddd5e894ce608436219c63872570f (diff)
tnl: Silence unused parameter warnings in _tnl_draw_prims
A tangled mess of a couple parameters that nobody wanted. src/mesa/tnl/t_draw.c: In function ‘_tnl_draw_prims’: src/mesa/tnl/t_draw.c:440:42: warning: unused parameter ‘tfb_vertcount’ [-Wunused-parameter] 440 | struct gl_transform_feedback_object *tfb_vertcount, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ src/mesa/tnl/t_draw.c:441:35: warning: unused parameter ‘stream’ [-Wunused-parameter] 441 | unsigned stream) | ~~~~~~~~~^~~~~~ Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4512>
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_draw.c10
-rw-r--r--src/mesa/tnl/t_rebase.c3
-rw-r--r--src/mesa/tnl/t_split_copy.c3
-rw-r--r--src/mesa/tnl/t_split_inplace.c3
-rw-r--r--src/mesa/tnl/tnl.h8
5 files changed, 9 insertions, 18 deletions
diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c
index b60cec43e00..f790c0f3476 100644
--- a/src/mesa/tnl/t_draw.c
+++ b/src/mesa/tnl/t_draw.c
@@ -436,9 +436,7 @@ void _tnl_draw_prims(struct gl_context *ctx,
GLuint min_index,
GLuint max_index,
GLuint num_instances,
- GLuint base_instance,
- struct gl_transform_feedback_object *tfb_vertcount,
- unsigned stream)
+ GLuint base_instance)
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
const GLuint TEST_SPLIT = 0;
@@ -642,8 +640,8 @@ _tnl_draw(struct gl_context *ctx,
const struct _mesa_index_buffer *ib,
GLboolean index_bounds_valid, GLuint min_index, GLuint max_index,
GLuint num_instances, GLuint base_instance,
- struct gl_transform_feedback_object *tfb_vertcount,
- unsigned stream)
+ UNUSED struct gl_transform_feedback_object *tfb_vertcount,
+ UNUSED unsigned stream)
{
/* Update TNLcontext::draw_arrays and return that pointer.
*/
@@ -651,7 +649,7 @@ _tnl_draw(struct gl_context *ctx,
_tnl_draw_prims(ctx, arrays, prim, nr_prims, ib,
index_bounds_valid, min_index, max_index,
- num_instances, base_instance, tfb_vertcount, stream);
+ num_instances, base_instance);
}
diff --git a/src/mesa/tnl/t_rebase.c b/src/mesa/tnl/t_rebase.c
index dc64e81fbd2..23395e4b576 100644
--- a/src/mesa/tnl/t_rebase.c
+++ b/src/mesa/tnl/t_rebase.c
@@ -247,8 +247,7 @@ void t_rebase_prims( struct gl_context *ctx,
GL_TRUE,
0,
max_index - min_index,
- num_instances, base_instance,
- NULL, 0);
+ num_instances, base_instance);
free(tmp_indices);
diff --git a/src/mesa/tnl/t_split_copy.c b/src/mesa/tnl/t_split_copy.c
index 10f90b57d4d..9032238c58b 100644
--- a/src/mesa/tnl/t_split_copy.c
+++ b/src/mesa/tnl/t_split_copy.c
@@ -212,8 +212,7 @@ flush(struct copy_context *copy)
0,
copy->dstbuf_nr - 1,
1,
- 0,
- NULL, 0);
+ 0);
/* Reset all pointers:
*/
diff --git a/src/mesa/tnl/t_split_inplace.c b/src/mesa/tnl/t_split_inplace.c
index 817b641e515..3ff9e01360b 100644
--- a/src/mesa/tnl/t_split_inplace.c
+++ b/src/mesa/tnl/t_split_inplace.c
@@ -96,8 +96,7 @@ flush_vertex( struct split_context *split)
split->min_index,
split->max_index,
split->num_instances,
- split->base_instance,
- NULL, 0);
+ split->base_instance);
split->dstprim_nr = 0;
split->min_index = ~0;
diff --git a/src/mesa/tnl/tnl.h b/src/mesa/tnl/tnl.h
index 4bf8ee20f68..58503016a9b 100644
--- a/src/mesa/tnl/tnl.h
+++ b/src/mesa/tnl/tnl.h
@@ -108,9 +108,7 @@ _tnl_draw_prims(struct gl_context *ctx,
GLuint min_index,
GLuint max_index,
GLuint num_instances,
- GLuint base_instance,
- struct gl_transform_feedback_object *tfb_vertcount,
- unsigned stream);
+ GLuint base_instance);
void
_tnl_draw(struct gl_context *ctx,
@@ -176,9 +174,7 @@ typedef void (*tnl_draw_func)(struct gl_context *ctx,
GLuint min_index,
GLuint max_index,
GLuint num_instances,
- GLuint base_instance,
- struct gl_transform_feedback_object *tfb_vertcount,
- unsigned tfb_stream);
+ GLuint base_instance);
/* Utility function to cope with various constraints on tnl modules or