projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce17e41
)
intel/compiler: fix uninit non-static variable. (v2)
author
Dave Airlie
<airlied@redhat.com>
Thu, 11 Apr 2019 10:31:59 +0000
(20:31 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 24 Apr 2019 20:06:57 +0000
(06:06 +1000)
Pointed out by coverity.
v2: init nir_locals also.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/compiler/brw_vec4_visitor.cpp
patch
|
blob
|
history
diff --git
a/src/intel/compiler/brw_vec4_visitor.cpp
b/src/intel/compiler/brw_vec4_visitor.cpp
index fa62abb03c827280f35706f24bce498cd8d8d0ec..09363c87093568a3b79fdd598acfb2a5f55f5b52 100644
(file)
--- 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;
}