diff options
author | Paul Berry <[email protected]> | 2013-10-22 15:11:51 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-10-24 22:01:10 -0700 |
commit | 99512dc40d762d15d636ea711c496bd0350ef7f1 (patch) | |
tree | 679d5dffee517cf4816497f7a37a6e48305a576e /src/glsl/lower_named_interface_blocks.cpp | |
parent | e17d671d9f64fe135a10ec54dd5b5a6beacfd991 (diff) |
glsl: Keep track of centroid/interpolation mode for interface block members.
Fixes piglit tests:
- interface-block-interpolation-{array,named,unnamed}
- glsl-1.50-interface-block-centroid {array,named,unnamed}
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/lower_named_interface_blocks.cpp')
-rw-r--r-- | src/glsl/lower_named_interface_blocks.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/lower_named_interface_blocks.cpp b/src/glsl/lower_named_interface_blocks.cpp index 726ffdc0da8..87ed60b971e 100644 --- a/src/glsl/lower_named_interface_blocks.cpp +++ b/src/glsl/lower_named_interface_blocks.cpp @@ -152,6 +152,9 @@ flatten_named_interface_blocks_declarations::run(exec_list *instructions) } new_var->location = iface_t->fields.structure[i].location; new_var->explicit_location = (new_var->location >= 0); + new_var->interpolation = + iface_t->fields.structure[i].interpolation; + new_var->centroid = iface_t->fields.structure[i].centroid; new_var->init_interface_type(iface_t); hash_table_insert(interface_namespace, new_var, |