diff options
author | Vinson Lee <[email protected]> | 2013-10-26 00:10:25 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-11-03 14:36:27 -0800 |
commit | 14ddc8334698d74e28288fe16fe83ffd62c80a1a (patch) | |
tree | 9b1cfe4afcf83d83b4f77d16941357dcbaf59e05 | |
parent | fa8b1514d31d1ffb3d9e2a208ac7d1bd774754b2 (diff) |
i965: Initialize vec4_visitor member variables.
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 7a0dfa597b1..ff6d69ceaea 100644 --- 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; |