Add conversion of bool to float as an IR operation to match int to float.
This commit is contained in:

committed by
Ian Romanick

parent
106d122318
commit
dc58b3f8cc
@@ -120,7 +120,8 @@ apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from,
|
||||
from = new ir_expression(ir_unop_u2f, to, from, NULL);
|
||||
break;
|
||||
case GLSL_TYPE_BOOL:
|
||||
assert(!"FINISHME: Convert bool to float.");
|
||||
from = new ir_expression(ir_unop_b2f, to, from, NULL);
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user