mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
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 <imirkin@alum.mit.edu>
This commit is contained in:
parent
0cade4ea2b
commit
e8e22cf65f
1 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue