mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
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:
parent
9f5dbbe030
commit
65732a8ff6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue