projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f5dbbe
)
softpipe: fix a maybe-uninitialized warning
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 30 Mar 2017 15:11:41 +0000
(17:11 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 30 Mar 2017 15:14:47 +0000
(17:14 +0200)
/home/marek/dev/mesa-main/src/gallium/drivers/softpipe/sp_compute.c:178:
warning: 'grid_size' may be used uninitialized in this function
[-Wmaybe-uninitialized]
src/gallium/drivers/softpipe/sp_compute.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_compute.c
b/src/gallium/drivers/softpipe/sp_compute.c
index 53f7a0beb7719061ca39bb4001c5ff7aabf105cb..31252255bd429cd7d6cb2b64e30e656183c03ac1 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_compute.c
+++ b/
src/gallium/drivers/softpipe/sp_compute.c
@@
-175,7
+175,7
@@
softpipe_launch_grid(struct pipe_context *context,
int bwidth, bheight, bdepth;
int w, h, d, i;
int g_w, g_h, g_d;
- uint32_t grid_size[3];
+ uint32_t grid_size[3]
= {0}
;
void *local_mem = NULL;
softpipe_update_compute_samplers(softpipe);