From e8e22cf65fc8b9b0c0355540985b073a03c69a51 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Thu, 19 Feb 2015 01:44:44 -0500 Subject: glsl: remove bogus 'd' constant qualifiers 0.0 is a double anyways. Apparently my version of gcc was happy with 0.0d as well, but this is not true of all compilers. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89218 Signed-off-by: Ilia Mirkin --- src/glsl/lower_instructions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glsl/lower_instructions.cpp b/src/glsl/lower_instructions.cpp index 8f8303241e2..e8a69e72ea3 100644 --- a/src/glsl/lower_instructions.cpp +++ b/src/glsl/lower_instructions.cpp @@ -645,7 +645,7 @@ lower_instructions_visitor::dfrexp_sig_to_arith(ir_expression *ir) new(ir) ir_variable(bvec, "is_not_zero", ir_var_temporary); ir_rvalue *results[4] = {NULL}; - ir_constant *dzero = new(ir) ir_constant(0.0d, vec_elem); + ir_constant *dzero = new(ir) ir_constant(0.0, vec_elem); i.insert_before(is_not_zero); i.insert_before( assign(is_not_zero, @@ -717,7 +717,7 @@ lower_instructions_visitor::dfrexp_exp_to_arith(ir_expression *ir) new(ir) ir_variable(bvec, "is_not_zero", ir_var_temporary); ir_variable *high_words = new(ir) ir_variable(uvec, "high_words", ir_var_temporary); - ir_constant *dzero = new(ir) ir_constant(0.0d, vec_elem); + ir_constant *dzero = new(ir) ir_constant(0.0, vec_elem); ir_constant *izero = new(ir) ir_constant(0, vec_elem); ir_rvalue *absval = abs(ir->operands[0]); -- cgit v1.2.3