softpipe: fix a maybe-uninitialized warning

/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]
This commit is contained in:
Marek Olšák 2017-03-30 17:11:41 +02:00
parent 9f5dbbe030
commit 65732a8ff6

View file

@ -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);