summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsálvez <[email protected]>2015-11-16 12:35:13 +0100
committerSamuel Iglesias Gonsálvez <[email protected]>2015-11-17 10:36:42 +0100
commitdfa60e7057ef8e5b07c49c7ba22fbddaa75e848b (patch)
treef5dce5d5dfeccaed261beb7c6621e019c8ab6375 /src
parent688b58c40c2fdf99c94706d02511293d30fe2430 (diff)
glsl: copy each field's precision information in glsl_types's structure constructor
Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/nir/glsl_types.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/glsl_types.cpp b/src/glsl/nir/glsl_types.cpp
index 975b815b0cc..9cc3715db8a 100644
--- a/src/glsl/nir/glsl_types.cpp
+++ b/src/glsl/nir/glsl_types.cpp
@@ -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);