projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa8b151
)
i965: Initialize vec4_visitor member variables.
author
Vinson Lee
<vlee@freedesktop.org>
Sat, 26 Oct 2013 07:10:25 +0000
(
00:10
-0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Sun, 3 Nov 2013 22:36:27 +0000
(14:36 -0800)
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 7a0dfa597b11f443ea51f8bfe6c2c08eebcf1d8a..ff6d69ceaea4e4b3de2dcd033f06ee81a7705008 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@
-3151,7
+3151,12
@@
vec4_visitor::vec4_visitor(struct brw_context *brw,
void *mem_ctx,
bool debug_flag,
bool no_spills)
- : debug_flag(debug_flag), no_spills(no_spills)
+ : sanity_param_count(0),
+ fail_msg(NULL),
+ first_non_payload_grf(0),
+ need_all_constants_in_pull_buffer(false),
+ debug_flag(debug_flag),
+ no_spills(no_spills)
{
this->brw = brw;
this->ctx = &brw->ctx;