glsl: Use properly typed arguments for bitfieldInsert.
authorMatt Turner <mattst88@gmail.com>
Fri, 25 Apr 2014 19:22:22 +0000 (12:22 -0700)
committerMatt Turner <mattst88@gmail.com>
Sat, 26 Apr 2014 02:24:39 +0000 (19:24 -0700)
bitfieldInsert takes scalar integers for its last two arguments. Since
bitfieldInsert is lowered on i965 to two instructions that have more
flexible arguments, I didn't notice when I wrote this.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/glsl/lower_instructions.cpp

index 01ea0f01fb6ee29b994d15a5002e5a868ffa45fa..49316d0020e6a19820d1d04a941d38909a3a9b6b 100644 (file)
@@ -359,8 +359,8 @@ lower_instructions_visitor::ldexp_to_arith(ir_expression *ir)
 
    ir_constant *sign_mask = new(ir) ir_constant(0x80000000u, vec_elem);
 
-   ir_constant *exp_shift = new(ir) ir_constant(23u, vec_elem);
-   ir_constant *exp_width = new(ir) ir_constant(8u, vec_elem);
+   ir_constant *exp_shift = new(ir) ir_constant(23);
+   ir_constant *exp_width = new(ir) ir_constant(8);
 
    /* Temporary variables */
    ir_variable *x = new(ir) ir_variable(ir->type, "x", ir_var_temporary);