projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36e2c7c
)
ilo: Initialize need_flush in draw_vbo.
author
Vinson Lee
<vlee@freedesktop.org>
Thu, 23 May 2013 06:24:35 +0000
(23:24 -0700)
committer
Chia-I Wu
<olvaffe@gmail.com>
Thu, 23 May 2013 07:31:42 +0000
(15:31 +0800)
need_flush was uninitialized if hw3d->new_batch was true.
Fixes "Uninitialized scalar variable" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/drivers/ilo/ilo_3d.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ilo/ilo_3d.c
b/src/gallium/drivers/ilo/ilo_3d.c
index 980bdb4451e5ed1747a3841a9ffcaa25bce77023..ba3fa96d513adf492f2b926c305616282174b4f3 100644
(file)
--- 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);