glsl: add xfb qualifier lowering support for named blocks
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 15 Feb 2016 02:27:55 +0000 (13:27 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 31 Mar 2016 01:51:01 +0000 (12:51 +1100)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/lower_named_interface_blocks.cpp

index 434cea90920a731077af5ec56e3ae74145b62be9..2c3619977385095eb92fd5d2e28e6964da0e9bcd 100644 (file)
@@ -179,6 +179,13 @@ flatten_named_interface_blocks_declarations::run(exec_list *instructions)
             }
             new_var->data.location = iface_t->fields.structure[i].location;
             new_var->data.explicit_location = (new_var->data.location >= 0);
+            new_var->data.offset = iface_t->fields.structure[i].offset;
+            new_var->data.explicit_xfb_offset =
+               (iface_t->fields.structure[i].offset >= 0);
+            new_var->data.xfb_buffer =
+               iface_t->fields.structure[i].xfb_buffer;
+            new_var->data.explicit_xfb_buffer =
+               iface_t->fields.structure[i].explicit_xfb_buffer;
             new_var->data.interpolation =
                iface_t->fields.structure[i].interpolation;
             new_var->data.centroid = iface_t->fields.structure[i].centroid;