gallium/util: use const in u_index_modify helpers
authorMarek Olšák <marek.olsak@amd.com>
Tue, 28 Mar 2017 20:20:56 +0000 (22:20 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 14:09:29 +0000 (16:09 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/auxiliary/util/u_index_modify.c
src/gallium/auxiliary/util/u_index_modify.h

index 7b072b29a0faba202623316636312069b608b9ad..d86be24bcd64a326ce373ea971413b82ed80ccef 100644 (file)
@@ -27,7 +27,7 @@
 /* Ubyte indices. */
 
 void util_shorten_ubyte_elts_to_userptr(struct pipe_context *context,
-                                       struct pipe_index_buffer *ib,
+                                       const struct pipe_index_buffer *ib,
                                         unsigned add_transfer_flags,
                                        int index_bias,
                                        unsigned start,
@@ -62,7 +62,7 @@ void util_shorten_ubyte_elts_to_userptr(struct pipe_context *context,
 /* Ushort indices. */
 
 void util_rebuild_ushort_elts_to_userptr(struct pipe_context *context,
-                                        struct pipe_index_buffer *ib,
+                                        const struct pipe_index_buffer *ib,
                                          unsigned add_transfer_flags,
                                         int index_bias,
                                         unsigned start, unsigned count,
@@ -96,7 +96,7 @@ void util_rebuild_ushort_elts_to_userptr(struct pipe_context *context,
 /* Uint indices. */
 
 void util_rebuild_uint_elts_to_userptr(struct pipe_context *context,
-                                      struct pipe_index_buffer *ib,
+                                      const struct pipe_index_buffer *ib,
                                        unsigned add_transfer_flags,
                                       int index_bias,
                                       unsigned start, unsigned count,
index 0cfc189ede177b6d28fe54a4d209e7c0d3db1c90..d009199b0123bcf417ea566e351995f5b757d60c 100644 (file)
@@ -28,7 +28,7 @@ struct pipe_resource;
 struct pipe_index_buffer;
 
 void util_shorten_ubyte_elts_to_userptr(struct pipe_context *context,
-                                       struct pipe_index_buffer *ib,
+                                       const struct pipe_index_buffer *ib,
                                         unsigned add_transfer_flags,
                                        int index_bias,
                                        unsigned start,
@@ -36,14 +36,14 @@ void util_shorten_ubyte_elts_to_userptr(struct pipe_context *context,
                                        void *out);
 
 void util_rebuild_ushort_elts_to_userptr(struct pipe_context *context,
-                                        struct pipe_index_buffer *ib,
+                                        const struct pipe_index_buffer *ib,
                                          unsigned add_transfer_flags,
                                         int index_bias,
                                         unsigned start, unsigned count,
                                         void *out);
 
 void util_rebuild_uint_elts_to_userptr(struct pipe_context *context,
-                                      struct pipe_index_buffer *ib,
+                                      const struct pipe_index_buffer *ib,
                                        unsigned add_transfer_flags,
                                       int index_bias,
                                       unsigned start, unsigned count,