aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2020-04-07 21:10:45 -0700
committerIan Romanick <[email protected]>2020-04-13 10:26:48 -0700
commit114e078001b3bade76b80fe99e39d346e88b6a4a (patch)
treeaae24b7de5276c1b3728386644809414e1469525 /src/mesa/drivers
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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4512>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
index 720b7c3e1a0..8a7d0f4a338 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
@@ -244,9 +244,7 @@ TAG(vbo_render_prims)(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);
+ GLuint num_instances, GLuint base_instance);
static GLboolean
vbo_maybe_split(struct gl_context *ctx, const struct tnl_vertex_array *arrays,
@@ -489,9 +487,7 @@ TAG(vbo_render_prims)(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)
+ GLuint num_instances, GLuint base_instance)
{
struct nouveau_render_state *render = to_render_state(ctx);
@@ -527,9 +523,7 @@ TAG(vbo_check_render_prims)(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)
+ GLuint num_instances, GLuint base_instance)
{
struct nouveau_context *nctx = to_nouveau_context(ctx);
@@ -538,14 +532,12 @@ TAG(vbo_check_render_prims)(struct gl_context *ctx,
if (nctx->fallback == HWTNL)
TAG(vbo_render_prims)(ctx, arrays, prims, nr_prims, ib,
index_bounds_valid, min_index, max_index,
- num_instances, base_instance,
- tfb_vertcount, stream);
+ num_instances, base_instance);
if (nctx->fallback == SWTNL)
_tnl_draw_prims(ctx, arrays, prims, nr_prims, ib,
index_bounds_valid, min_index, max_index,
- num_instances, base_instance,
- tfb_vertcount, stream);
+ num_instances, base_instance);
}
static void
@@ -555,8 +547,8 @@ TAG(vbo_draw)(struct gl_context *ctx,
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)
{
/* Borrow and update the inputs list from the tnl context */
const struct tnl_vertex_array* arrays = _tnl_bind_inputs(ctx);
@@ -564,8 +556,7 @@ TAG(vbo_draw)(struct gl_context *ctx,
TAG(vbo_check_render_prims)(ctx, arrays,
prims, nr_prims, ib,
index_bounds_valid, min_index, max_index,
- num_instances, base_instance,
- tfb_vertcount, stream);
+ num_instances, base_instance);
}
void