gallium/util: use const in u_index_modify helpers

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>
This commit is contained in:
Marek Olšák 2017-03-28 22:20:56 +02:00
parent 7d99f48b5e
commit abb25fb18e
2 changed files with 6 additions and 6 deletions

View 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,

View 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,