aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_state_validate.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-04-17 21:21:31 -0700
committerVinson Lee <[email protected]>2010-04-17 21:21:31 -0700
commit891e9d6f3f123e9e4a89743535d18bfb543626d3 (patch)
treedb37d10da35bf05313a6a03041b3d2d3e2adc4fa /src/gallium/drivers/nv50/nv50_state_validate.c
parentb054d7912d68f2b053f5c6a80fa5bf7600d2fdd6 (diff)
nv50: Initialize variables.
Silences GCC uninitialized variable warnings.
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_state_validate.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_state_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_state_validate.c b/src/gallium/drivers/nv50/nv50_state_validate.c
index 5cac3a29e49..14c3490599d 100644
--- a/src/gallium/drivers/nv50/nv50_state_validate.c
+++ b/src/gallium/drivers/nv50/nv50_state_validate.c
@@ -32,7 +32,7 @@ validate_fb(struct nv50_context *nv50)
struct nouveau_grobj *tesla = nv50->screen->tesla;
struct nouveau_stateobj *so = so_new(32, 79, 18);
struct pipe_framebuffer_state *fb = &nv50->framebuffer;
- unsigned i, w, h, gw = 0;
+ unsigned i, w = 0, h = 0, gw = 0;
/* Set nr of active RTs and select RT for each colour output.
* FP result 0 always goes to RT[0], bits 4 - 6 are ignored.