From: Ilia Mirkin Date: Thu, 19 Feb 2015 06:44:44 +0000 (-0500) Subject: glsl: remove bogus 'd' constant qualifiers X-Git-Tag: upstream/17.1.0~20677 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8e22cf65fc8b9b0c0355540985b073a03c69a51;p=platform%2Fupstream%2Fmesa.git 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 --- diff --git a/src/glsl/lower_instructions.cpp b/src/glsl/lower_instructions.cpp index 8f83032..e8a69e7 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]);