Add bool/int conversion as IR operations.

Fixes constructor-09.glsl and CorrectParse2.frag.
This commit is contained in:
Eric Anholt
2010-04-02 02:17:08 -10:00
committed by Ian Romanick
parent dc58b3f8cc
commit c2cb84e17b
4 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ convert_component(ir_rvalue *src, const glsl_type *desired_type)
return new ir_expression(ir_unop_f2i, desired_type, src, NULL);
else {
assert(b == GLSL_TYPE_BOOL);
assert(!"FINISHME: Convert bool to int / uint.");
return new ir_expression(ir_unop_f2b, desired_type, src, NULL);
}
case GLSL_TYPE_FLOAT:
switch (b) {