diff options
author | Ilia Mirkin <[email protected]> | 2015-02-19 01:44:44 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-02-19 01:45:54 -0500 |
commit | e8e22cf65fc8b9b0c0355540985b073a03c69a51 (patch) | |
tree | 595c94005cbf34af1827fb9bc30d2bda223bac1f /src | |
parent | 0cade4ea2b114238206055eb256d0eb000bdfac9 (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/lower_instructions.cpp | 4 |
1 files 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]); |