summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-11-01 12:35:48 -0500
committerMarge Bot <eric+marge@anholt.net>2020-11-18 01:41:25 +0000
commit4656df5a65f2cd74a26097e4419f8bafd5beb0ab (patch)
treede436a500fd2220b0fd4a81374068f78a013b9bc /src/mesa/drivers/dri
parentd6df35b304d272cad58e666a82ec3c1fa31b85a2 (diff)
mesa: clean up Driver.Draw parameter types
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7441>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.c12
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.h12
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c8
3 files changed, 16 insertions, 16 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index 25162ca7825..3f32f00437e 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -1134,13 +1134,13 @@ retry:
void
brw_draw_prims(struct gl_context *ctx,
const struct _mesa_prim *prims,
- GLuint nr_prims,
+ unsigned nr_prims,
const struct _mesa_index_buffer *ib,
- GLboolean index_bounds_valid,
- GLuint min_index,
- GLuint max_index,
- GLuint num_instances,
- GLuint base_instance)
+ bool index_bounds_valid,
+ unsigned min_index,
+ unsigned max_index,
+ unsigned num_instances,
+ unsigned base_instance)
{
unsigned i;
struct brw_context *brw = brw_context(ctx);
diff --git a/src/mesa/drivers/dri/i965/brw_draw.h b/src/mesa/drivers/dri/i965/brw_draw.h
index 9331d5468d2..06f127b83cd 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.h
+++ b/src/mesa/drivers/dri/i965/brw_draw.h
@@ -46,13 +46,13 @@ brw_emit_vertex_buffer_state(struct brw_context *brw,
void brw_draw_prims(struct gl_context *ctx,
const struct _mesa_prim *prims,
- GLuint nr_prims,
+ unsigned nr_prims,
const struct _mesa_index_buffer *ib,
- GLboolean index_bounds_valid,
- GLuint min_index,
- GLuint max_index,
- GLuint num_instances,
- GLuint base_instance);
+ bool index_bounds_valid,
+ unsigned min_index,
+ unsigned max_index,
+ unsigned num_instances,
+ unsigned base_instance);
void brw_init_draw_functions(struct dd_function_table *functions);
void brw_draw_init( struct brw_context *brw );
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
index 9248d097119..e27862df82e 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
@@ -542,11 +542,11 @@ TAG(vbo_check_render_prims)(struct gl_context *ctx,
static void
TAG(vbo_draw)(struct gl_context *ctx,
- const struct _mesa_prim *prims, GLuint nr_prims,
+ const struct _mesa_prim *prims, unsigned nr_prims,
const struct _mesa_index_buffer *ib,
- GLboolean index_bounds_valid,
- GLuint min_index, GLuint max_index,
- GLuint num_instances, GLuint base_instance)
+ bool index_bounds_valid,
+ unsigned min_index, unsigned max_index,
+ unsigned num_instances, unsigned base_instance)
{
/* Borrow and update the inputs list from the tnl context */
const struct tnl_vertex_array* arrays = _tnl_bind_inputs(ctx);