diff options
author | Olivier Galibert <[email protected]> | 2012-05-08 20:40:33 +0200 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-06-07 00:06:17 -0700 |
commit | 4fab1505594acf0cc02a53d01ce20c8b17e3e913 (patch) | |
tree | afa1b878300f33c1d8d681fb056d799a447c9382 /src | |
parent | 500dcbb1aa991d4c92200fcacd6eb288bb2638d7 (diff) |
glsl: Bitwise conversion operator support in ir_expression.
Signed-off-by: Olivier Galibert <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/ir.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index c489547fa52..69954998bd4 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -273,6 +273,7 @@ ir_expression::ir_expression(int op, ir_rvalue *op0) case ir_unop_f2i: case ir_unop_b2i: case ir_unop_u2i: + case ir_unop_bitcast_f2i: this->type = glsl_type::get_instance(GLSL_TYPE_INT, op0->type->vector_elements, 1); break; @@ -280,6 +281,8 @@ ir_expression::ir_expression(int op, ir_rvalue *op0) case ir_unop_b2f: case ir_unop_i2f: case ir_unop_u2f: + case ir_unop_bitcast_i2f: + case ir_unop_bitcast_u2f: this->type = glsl_type::get_instance(GLSL_TYPE_FLOAT, op0->type->vector_elements, 1); break; @@ -291,6 +294,7 @@ ir_expression::ir_expression(int op, ir_rvalue *op0) break; case ir_unop_i2u: + case ir_unop_bitcast_f2u: this->type = glsl_type::get_instance(GLSL_TYPE_UINT, op0->type->vector_elements, 1); break; |