Mesa (master): glsl: (trivial) fix type typo

Roland Scheidegger sroland at kemper.freedesktop.org
Tue Dec 6 16:45:51 UTC 2016


Module: Mesa
Branch: master
Commit: 9c95ad24ccc61bcd2792c8bffd0a74355085927f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c95ad24ccc61bcd2792c8bffd0a74355085927f

Author: Roland Scheidegger <sroland at vmware.com>
Date:   Tue Dec  6 17:44:21 2016 +0100

glsl: (trivial) fix type typo

Accidentally changed the type of a constant in
df33f11b39abf313a0db7b9fefaf739b88133161 causing assertion failures.

---

 src/compiler/glsl/lower_instructions.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/glsl/lower_instructions.cpp b/src/compiler/glsl/lower_instructions.cpp
index 3e25e2b..9fc83d1 100644
--- a/src/compiler/glsl/lower_instructions.cpp
+++ b/src/compiler/glsl/lower_instructions.cpp
@@ -459,7 +459,7 @@ lower_instructions_visitor::ldexp_to_arith(ir_expression *ir)
     * pass.
     */
    if (!lowering(INSERT_TO_SHIFTS)) {
-      ir_constant *exp_width = new(ir) ir_constant(8u, vec_elem);
+      ir_constant *exp_width = new(ir) ir_constant(8, vec_elem);
       ir->operation = ir_unop_bitcast_i2f;
       ir->operands[0] = bitfield_insert(bitcast_f2i(x), resulting_biased_exp,
                                         exp_shift_clone, exp_width);




More information about the mesa-commit mailing list