diff options
author | Neil Roberts <[email protected]> | 2019-04-22 16:33:38 +0200 |
---|---|---|
committer | Neil Roberts <[email protected]> | 2019-06-14 09:29:53 +0200 |
commit | 34d4b3e36765ff89db68c15464656167a2e9d79f (patch) | |
tree | e1eadf2c7700a9c6215f817380e022a53547479e /src/mesa | |
parent | 235425771c5671b97af5f6b7d918ff606e00ac31 (diff) |
glsl: Set default precision on record members
Record types have their own slot to store the precision for each
member in glsl_struct_field. Previously if the member didn’t have an
explicit precision qualifier this was being left as
GLSL_PRECISION_NONE. This patch makes it take into account the type’s
default precision qualifier like it does for regular variables in
apply_type_qualifier_to_variable.
This has the additional benefit of correctly reporting an error when a
float type is used in a struct without declaring the default type.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa')
0 files changed, 0 insertions, 0 deletions