[Mesa-dev] [PATCH v2 05/32] glsl: Zero per_vertex_accumulator::fields for valgrind & nir_serialize

Jordan Justen jordan.l.justen at intel.com
Thu Oct 19 05:31:53 UTC 2017


Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 src/compiler/glsl/builtin_variables.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/glsl/builtin_variables.cpp b/src/compiler/glsl/builtin_variables.cpp
index ea2d897cc8..d3cf12475b 100644
--- a/src/compiler/glsl/builtin_variables.cpp
+++ b/src/compiler/glsl/builtin_variables.cpp
@@ -318,6 +318,7 @@ per_vertex_accumulator::per_vertex_accumulator()
    : fields(),
      num_fields(0)
 {
+   memset(fields, 0, sizeof(fields));
 }
 
 
-- 
2.15.0.rc0



More information about the mesa-dev mailing list