glsl: make use of glsl_type::is_float()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user