glsl: copy each field's precision information in glsl_types's structure constructor
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 16 Nov 2015 11:35:13 +0000 (12:35 +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.cpp

index 975b815b0cc1727aaef11002a49dcc7693ef3099..9cc3715db8a92b21f29c6ea4f58779c44d93c88e 100644 (file)
@@ -129,6 +129,7 @@ glsl_type::glsl_type(const glsl_struct_field *fields, unsigned num_fields,
       this->fields.structure[i].image_coherent = fields[i].image_coherent;
       this->fields.structure[i].image_volatile = fields[i].image_volatile;
       this->fields.structure[i].image_restrict = fields[i].image_restrict;
+      this->fields.structure[i].precision = fields[i].precision;
    }
 
    mtx_unlock(&glsl_type::mutex);