glsl, nir: Make ir_triop_bitfield_extract a vectorized operation.
[mesa.git] / src / glsl / ir_validate.cpp
index fea9b760eca803ab3818f35feb52648b05a6c312..94814799b9b9734ebbde2d626261e00d42be7fc3 100644 (file)
@@ -632,9 +632,10 @@ ir_validate::visit_leave(ir_expression *ir)
       break;
 
    case ir_triop_bitfield_extract:
+      assert(ir->type->is_integer());
       assert(ir->operands[0]->type == ir->type);
-      assert(ir->operands[1]->type == glsl_type::int_type);
-      assert(ir->operands[2]->type == glsl_type::int_type);
+      assert(ir->operands[1]->type == ir->type);
+      assert(ir->operands[2]->type == ir->type);
       break;
 
    case ir_triop_vector_insert: