diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-21 11:18:50 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-21 19:34:15 +0200 |
commit | a7bc51aef8ef7e3374e034bfbe33096e985ffb0b (patch) | |
tree | d37cd02757c0c56cf0928a871123b631be4a2017 /src/compiler/glsl/ir_function.cpp | |
parent | cacc823c39044307e6befe12c3f51317f09973e2 (diff) |
glsl: make use of glsl_type::is_float()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_function.cpp')
-rw-r--r-- | src/compiler/glsl/ir_function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/ir_function.cpp b/src/compiler/glsl/ir_function.cpp index 85caa2926b4..3ee0d170fb2 100644 --- a/src/compiler/glsl/ir_function.cpp +++ b/src/compiler/glsl/ir_function.cpp @@ -150,12 +150,12 @@ get_parameter_match_type(const ir_variable *param, return PARAMETER_EXACT_MATCH; if (to_type->is_double()) { - if (from_type->base_type == GLSL_TYPE_FLOAT) + if (from_type->is_float()) return PARAMETER_FLOAT_TO_DOUBLE; return PARAMETER_INT_TO_DOUBLE; } - if (to_type->base_type == GLSL_TYPE_FLOAT) + if (to_type->is_float()) return PARAMETER_INT_TO_FLOAT; /* int -> uint and any other oddball conversions */ |