From: Eric Anholt Date: Mon, 9 Nov 2015 16:51:47 +0000 (-0800) Subject: vc4: Fix a compiler warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=855a3ca598734273f53c5e316f1d825aea3dd6da;p=mesa.git vc4: Fix a compiler warning. --- diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index 122bda0bac6..146929637ec 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -668,7 +668,7 @@ vc4_get_shadow_index_buffer(struct pipe_context *pctx, uint16_t *dst = data; struct pipe_transfer *src_transfer = NULL; - uint32_t *src; + const uint32_t *src; if (ib->user_buffer) { src = ib->user_buffer; } else {