Add bool/int conversion as IR operations.
Fixes constructor-09.glsl and CorrectParse2.frag.
This commit is contained in:
committed by
Ian Romanick
parent
dc58b3f8cc
commit
c2cb84e17b
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user