glsl: Add i2b() and b2i() to ir_builder.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
@@ -369,6 +369,18 @@ bitcast_u2f(operand a)
|
||||
return expr(ir_unop_bitcast_u2f, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
i2b(operand a)
|
||||
{
|
||||
return expr(ir_unop_i2b, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
b2i(operand a)
|
||||
{
|
||||
return expr(ir_unop_b2i, a);
|
||||
}
|
||||
|
||||
ir_if*
|
||||
if_tree(operand condition,
|
||||
ir_instruction *then_branch)
|
||||
|
||||
@@ -162,6 +162,8 @@ ir_expression *u2f(operand a);
|
||||
ir_expression *bitcast_u2f(operand a);
|
||||
ir_expression *i2u(operand a);
|
||||
ir_expression *u2i(operand a);
|
||||
ir_expression *b2i(operand a);
|
||||
ir_expression *i2b(operand a);
|
||||
|
||||
/**
|
||||
* Swizzle away later components, but preserve the ordering.
|
||||
|
||||
Reference in New Issue
Block a user