glsl: initialize precision when adding per vertex record fields
authorTapani Pälli <tapani.palli@intel.com>
Mon, 16 Nov 2015 06:44:18 +0000 (08:44 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 17 Nov 2015 05:37:13 +0000 (07:37 +0200)
Fixes issues with tessellation builtin variables since precision was
introduced to IR with commit f84bc57d7dc02fceb805803131426c791eadeff9.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtin_variables.cpp

index b06c1bc5c12e147b04250f9e60db4478febf214c..b927d506faf50414bb9dee3c29278d3ce3f847a0 100644 (file)
@@ -327,6 +327,7 @@ per_vertex_accumulator::add_field(int slot, const glsl_type *type,
    this->fields[this->num_fields].centroid = 0;
    this->fields[this->num_fields].sample = 0;
    this->fields[this->num_fields].patch = 0;
+   this->fields[this->num_fields].precision = GLSL_PRECISION_NONE;
    this->num_fields++;
 }