summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-02-15 13:27:55 +1100
committerTimothy Arceri <[email protected]>2016-03-31 12:51:01 +1100
commitba7a7d4c39c06c6231e3f9a05f5e32378b76db6a (patch)
tree1d15cb93555f542e248562d6d33c8d2251673fab
parent4a873ef049bce855e8b5f254d428956de8ce45f8 (diff)
glsl: add xfb qualifier lowering support for named blocks
Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r--src/compiler/glsl/lower_named_interface_blocks.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/glsl/lower_named_interface_blocks.cpp b/src/compiler/glsl/lower_named_interface_blocks.cpp
index 434cea90920..2c361997738 100644
--- a/src/compiler/glsl/lower_named_interface_blocks.cpp
+++ b/src/compiler/glsl/lower_named_interface_blocks.cpp
@@ -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;