projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e82fa96
)
svga: add a const qualifier in svga_buffer_upload_piecewise()
author
Brian Paul
<brianp@vmware.com>
Wed, 22 Jun 2016 23:19:58 +0000
(17:19 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 23 Jun 2016 19:02:28 +0000
(13:02 -0600)
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_resource_buffer_upload.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_resource_buffer_upload.c
b/src/gallium/drivers/svga/svga_resource_buffer_upload.c
index a89225ded830a74443a8b09d4c4759a797da34bd..87d77c5f317957ecf5e4001447d1a3bfa7f9879e 100644
(file)
--- 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;