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

Author: Erik Faye-Lund <[email protected]>
Date:   Fri Jun 23 16:19:10 2023 +0200

pipebuffer: use unsigned instead of uint

Reviewed-by: Yonggang Luo <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24002>

---

 src/gallium/auxiliary/pipebuffer/pb_cache.c | 4 ++--
 src/gallium/auxiliary/pipebuffer/pb_cache.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/auxiliary/pipebuffer/pb_cache.c 
b/src/gallium/auxiliary/pipebuffer/pb_cache.c
index a15e2cd3c80..201655b8149 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_cache.c
+++ b/src/gallium/auxiliary/pipebuffer/pb_cache.c
@@ -280,8 +280,8 @@ pb_cache_init_entry(struct pb_cache *mgr, struct 
pb_cache_entry *entry,
  * @param can_reclaim     Whether a buffer can be reclaimed (e.g. is not busy)
  */
 void
-pb_cache_init(struct pb_cache *mgr, uint num_heaps,
-              uint usecs, float size_factor,
+pb_cache_init(struct pb_cache *mgr, unsigned num_heaps,
+              unsigned usecs, float size_factor,
               unsigned bypass_usage, uint64_t maximum_cache_size,
               void *winsys,
               void (*destroy_buffer)(void *winsys, struct pb_buffer *buf),
diff --git a/src/gallium/auxiliary/pipebuffer/pb_cache.h 
b/src/gallium/auxiliary/pipebuffer/pb_cache.h
index f38d7d31092..4e80669425c 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_cache.h
+++ b/src/gallium/auxiliary/pipebuffer/pb_cache.h
@@ -74,8 +74,8 @@ struct pb_buffer *pb_cache_reclaim_buffer(struct pb_cache 
*mgr, pb_size size,
 unsigned pb_cache_release_all_buffers(struct pb_cache *mgr);
 void pb_cache_init_entry(struct pb_cache *mgr, struct pb_cache_entry *entry,
                          struct pb_buffer *buf, unsigned bucket_index);
-void pb_cache_init(struct pb_cache *mgr, uint num_heaps,
-                   uint usecs, float size_factor,
+void pb_cache_init(struct pb_cache *mgr, unsigned num_heaps,
+                   unsigned usecs, float size_factor,
                    unsigned bypass_usage, uint64_t maximum_cache_size,
                    void *winsys,
                    void (*destroy_buffer)(void *winsys, struct pb_buffer *buf),

Reply via email to