summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-04-11 20:31:59 +1000
committerDave Airlie <[email protected]>2019-04-25 06:06:57 +1000
commit3323cf08f002e63f26d83268c12c635866aa102b (patch)
tree6b1bf35617ad683b6c8e9feb6563b42f7cc94564 /src/intel
parentce17e413de6cbb66a84d71caa445f44c3ddb1a2b (diff)
intel/compiler: fix uninit non-static variable. (v2)
Pointed out by coverity. v2: init nir_locals also. Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/compiler/brw_vec4_visitor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_vec4_visitor.cpp b/src/intel/compiler/brw_vec4_visitor.cpp
index fa62abb03c8..09363c87093 100644
--- a/src/intel/compiler/brw_vec4_visitor.cpp
+++ b/src/intel/compiler/brw_vec4_visitor.cpp
@@ -1889,6 +1889,9 @@ vec4_visitor::vec4_visitor(const struct brw_compiler *compiler,
this->max_grf = devinfo->gen >= 7 ? GEN7_MRF_HACK_START : BRW_MAX_GRF;
this->uniforms = 0;
+
+ this->nir_locals = NULL;
+ this->nir_ssa_values = NULL;
}