[Mesa-dev] [PATCH 3/6] Bitwise conversion operator support in ir_expression.

Olivier Galibert galibert at pobox.com
Mon Apr 30 04:19:03 PDT 2012


Signed-off-by: Olivier Galibert <galibert at pobox.com>
---
 src/glsl/ir.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index edff9b6..333e85e 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -274,6 +274,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_bf2i:
       this->type = glsl_type::get_instance(GLSL_TYPE_INT,
 					   op0->type->vector_elements, 1);
       break;
@@ -281,6 +282,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_bi2f:
+   case ir_unop_bu2f:
       this->type = glsl_type::get_instance(GLSL_TYPE_FLOAT,
 					   op0->type->vector_elements, 1);
       break;
@@ -292,6 +295,7 @@ ir_expression::ir_expression(int op, ir_rvalue *op0)
       break;
 
    case ir_unop_i2u:
+   case ir_unop_bf2u:
       this->type = glsl_type::get_instance(GLSL_TYPE_UINT,
 					   op0->type->vector_elements, 1);
       break;
-- 
1.7.10.rc3.1.gb306



More information about the mesa-dev mailing list