summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-05-22 23:24:35 -0700
committerChia-I Wu <[email protected]>2013-05-23 15:31:42 +0800
commite3eeb72f2437c95ff92e4ef29afe2e6bad250c36 (patch)
treef342e73f56a485d96f43d758a1414fcdb090a15d /src/gallium/drivers
parent36e2c7cc1ad5723abc65fbd7588eedeaaf94a4ba (diff)
ilo: Initialize need_flush in draw_vbo.
need_flush was uninitialized if hw3d->new_batch was true. Fixes "Uninitialized scalar variable" defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/ilo/ilo_3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_3d.c b/src/gallium/drivers/ilo/ilo_3d.c
index 980bdb4451e..ba3fa96d513 100644
--- a/src/gallium/drivers/ilo/ilo_3d.c
+++ b/src/gallium/drivers/ilo/ilo_3d.c
@@ -371,7 +371,7 @@ draw_vbo(struct ilo_3d *hw3d, const struct ilo_context *ilo,
const struct pipe_draw_info *info,
int *prim_generated, int *prim_emitted)
{
- bool need_flush;
+ bool need_flush = false;
int max_len;
ilo_3d_own_render_ring(hw3d);