Module: Mesa
Branch: main
Commit: b108e47091e70c199c9d0c55e52e3a2607fc6d1f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b108e47091e70c199c9d0c55e52e3a2607fc6d1f

Author: Erik Faye-Lund <[email protected]>
Date:   Fri Jun 23 14:09:27 2023 +0200

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 <[email protected]>
Reviewed-by: Yonggang Luo <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23833>

---

 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 25bb3f69b8f..751186ac442 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 85f98644d1e..b636474ae67 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. */
 

Reply via email to