From b108e47091e70c199c9d0c55e52e3a2607fc6d1f Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 23 Jun 2023 14:09:27 +0200 Subject: [PATCH] cso: use unsigned instead of uint uint isn't a standard type, just something we accidentally get from some other headers. Reviewed-by: Eric Engestrom Reviewed-by: Yonggang Luo Part-of: --- src/gallium/auxiliary/cso_cache/cso_context.c | 12 ++++++------ src/gallium/auxiliary/cso_cache/cso_context.h | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index 25bb3f6..751186a 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -1545,7 +1545,7 @@ cso_set_stream_outputs(struct cso_context *ctx, const unsigned *offsets) { struct pipe_context *pipe = ctx->base.pipe; - uint i; + unsigned i; if (!ctx->has_streamout) { assert(num_targets == 0); @@ -1592,7 +1592,7 @@ static void cso_restore_stream_outputs(struct cso_context *ctx) { struct pipe_context *pipe = ctx->base.pipe; - uint i; + unsigned i; unsigned offset[PIPE_MAX_SO_BUFFERS]; if (!ctx->has_streamout) { @@ -1783,7 +1783,7 @@ cso_restore_compute_state(struct cso_context *cso) /* drawing */ void -cso_draw_arrays(struct cso_context *cso, uint mode, uint start, uint count) +cso_draw_arrays(struct cso_context *cso, unsigned mode, unsigned start, unsigned count) { struct pipe_draw_info info; struct pipe_draw_start_count_bias draw; @@ -1804,9 +1804,9 @@ cso_draw_arrays(struct cso_context *cso, uint mode, uint start, uint count) void -cso_draw_arrays_instanced(struct cso_context *cso, uint mode, - uint start, uint count, - uint start_instance, uint instance_count) +cso_draw_arrays_instanced(struct cso_context *cso, unsigned mode, + unsigned start, unsigned count, + unsigned start_instance, unsigned instance_count) { struct pipe_draw_info info; struct pipe_draw_start_count_bias draw; diff --git a/src/gallium/auxiliary/cso_cache/cso_context.h b/src/gallium/auxiliary/cso_cache/cso_context.h index 85f9864..b636474 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.h +++ b/src/gallium/auxiliary/cso_cache/cso_context.h @@ -219,12 +219,12 @@ cso_set_vertex_buffers_and_elements(struct cso_context *ctx, const struct pipe_vertex_buffer *vbuffers); void -cso_draw_arrays_instanced(struct cso_context *cso, uint mode, - uint start, uint count, - uint start_instance, uint instance_count); +cso_draw_arrays_instanced(struct cso_context *cso, unsigned mode, + unsigned start, unsigned count, + unsigned start_instance, unsigned instance_count); void -cso_draw_arrays(struct cso_context *cso, uint mode, uint start, uint count); +cso_draw_arrays(struct cso_context *cso, unsigned mode, unsigned start, unsigned count); /* Inline functions. */ -- 2.7.4