cso: use unsigned instead of uint
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 23 Jun 2023 12:09:27 +0000 (14:09 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Jun 2023 09:30:22 +0000 (09:30 +0000)
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>

src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/cso_cache/cso_context.h

index 25bb3f6..751186a 100644 (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;
index 85f9864..b636474 100644 (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. */