glsl: copy each field's precision information from the old gl_PerVertex interface...
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 16 Nov 2015 11:02:41 +0000 (12:02 +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/ast_to_hir.cpp

index f5292435058c66425312b903082fb93d9674485e..97554cbd6887b85124a47fdcc948cc526217f9d0 100644 (file)
@@ -6603,6 +6603,8 @@ ast_interface_block::hir(exec_list *instructions,
                earlier_per_vertex->fields.structure[j].sample;
             fields[i].patch =
                earlier_per_vertex->fields.structure[j].patch;
+            fields[i].precision =
+               earlier_per_vertex->fields.structure[j].precision;
          }
       }