glsl/nir: initialize precision field in glsl_struct_field constructor
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 16 Nov 2015 10:43:20 +0000 (11:43 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 17 Nov 2015 09:36:42 +0000 (10:36 +0100)
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/nir/glsl_types.h

index 2d44059cca5be9ebcb77c73f8334685ad7825291..d8a999ad44ec561ac45da51135d93aae33ac200b 100644 (file)
@@ -851,7 +851,8 @@ struct glsl_struct_field {
 
    glsl_struct_field(const struct glsl_type *_type, const char *_name)
       : type(_type), name(_name), location(-1), interpolation(0), centroid(0),
-        sample(0), matrix_layout(GLSL_MATRIX_LAYOUT_INHERITED), patch(0)
+        sample(0), matrix_layout(GLSL_MATRIX_LAYOUT_INHERITED), patch(0),
+        precision(GLSL_PRECISION_NONE)
    {
       /* empty */
    }