tnl: Silence unused parameter warnings in _tnl_split_inplace
Unused since db0eb3a437
("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>
This commit is contained in:
parent
7a004f7987
commit
ac13258a6e
|
@ -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? */
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue