From: Brian Paul Date: Wed, 22 Jun 2016 23:19:58 +0000 (-0600) Subject: svga: add a const qualifier in svga_buffer_upload_piecewise() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe762128732df1fafef862a391b4d04ee0467c55;p=mesa.git svga: add a const qualifier in svga_buffer_upload_piecewise() Reviewed-by: Charmaine Lee --- diff --git a/src/gallium/drivers/svga/svga_resource_buffer_upload.c b/src/gallium/drivers/svga/svga_resource_buffer_upload.c index a89225ded83..87d77c5f317 100644 --- a/src/gallium/drivers/svga/svga_resource_buffer_upload.c +++ b/src/gallium/drivers/svga/svga_resource_buffer_upload.c @@ -689,7 +689,7 @@ svga_buffer_upload_piecewise(struct svga_screen *ss, SVGA_DBG(DEBUG_DMA, "dma to sid %p\n", sbuf->handle); for (i = 0; i < sbuf->map.num_ranges; ++i) { - struct svga_buffer_range *range = &sbuf->map.ranges[i]; + const struct svga_buffer_range *range = &sbuf->map.ranges[i]; unsigned offset = range->start; unsigned size = range->end - range->start;