glsl: (trivial) fix type typo
authorRoland Scheidegger <sroland@vmware.com>
Tue, 6 Dec 2016 16:44:21 +0000 (17:44 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 6 Dec 2016 16:44:21 +0000 (17:44 +0100)
Accidentally changed the type of a constant in
df33f11b39abf313a0db7b9fefaf739b88133161 causing assertion failures.

src/compiler/glsl/lower_instructions.cpp

index 3e25e2b91bf6f51b50f97e8673683fab18c3dec2..9fc83d1583f02e38ab842f34a9c991d42e7199f8 100644 (file)
@@ -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);