diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c index a9b475e7e36..f7c3d5f1b9d 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c @@ -1136,7 +1136,7 @@ nvc0_validate_suf(struct nvc0_context *nvc0, int s) for (int i = 0; i < NVC0_MAX_IMAGES; ++i) { struct pipe_image_view *view = &nvc0->images[s][i]; - int width, height, depth; + int width = 0, height = 0, depth = 0; uint64_t address = 0; if (s == 5)