[Mesa-dev] [PATCH 2/2] intel/compiler: fix uninit non-static variable.
Dave Airlie
airlied at gmail.com
Thu Apr 11 10:32:19 UTC 2019
From: Dave Airlie <airlied at redhat.com>
Pointed out by coverity.
---
src/intel/compiler/brw_vec4_visitor.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/intel/compiler/brw_vec4_visitor.cpp b/src/intel/compiler/brw_vec4_visitor.cpp
index 16ee31d730a..fa3d7fc13b7 100644
--- a/src/intel/compiler/brw_vec4_visitor.cpp
+++ b/src/intel/compiler/brw_vec4_visitor.cpp
@@ -1887,6 +1887,8 @@ 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_ssa_values = NULL;
}
--
2.20.1
More information about the mesa-dev
mailing list