i965/vec4: Use same type for immediate, for compaction.
authorMatt Turner <mattst88@gmail.com>
Tue, 5 May 2015 18:35:51 +0000 (11:35 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 5 May 2015 18:44:37 +0000 (11:44 -0700)
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 203ac464f1be56475e06b387585eb8846cb938e5..f64860d3365cc478411404deb6b5fcce5be90e57 100644 (file)
@@ -1860,7 +1860,7 @@ vec4_visitor::visit(ir_expression *ir)
          }
       } else {
          offset = src_reg(this, glsl_type::uint_type);
-         emit(SHR(dst_reg(offset), op[1], src_reg(4)));
+         emit(SHR(dst_reg(offset), op[1], src_reg(4u)));
       }
 
       emit_pull_constant_load_reg(dst_reg(packed_consts),