glsl: make use of glsl_type::is_double()

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:
Samuel Pitoiset
2017-04-21 10:53:32 +02:00
parent 100721959b
commit cacc823c39
12 changed files with 45 additions and 45 deletions
+1 -1
View File
@@ -1505,7 +1505,7 @@ emit_inline_matrix_constructor(const glsl_type *type,
*/
glsl_base_type param_base_type = first_param->type->base_type;
assert(param_base_type == GLSL_TYPE_FLOAT ||
param_base_type == GLSL_TYPE_DOUBLE);
first_param->type->is_double());
ir_variable *rhs_var =
new(ctx) ir_variable(glsl_type::get_instance(param_base_type, 4, 1),
"mat_ctor_vec",