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 <eric@igalia.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23833>
This commit is contained in:
Erik Faye-Lund 2023-06-23 14:09:27 +02:00 committed by Marge Bot
parent fda6cad85e
commit b108e47091
2 changed files with 10 additions and 10 deletions

View file

@ -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;

View file

@ -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. */