i965: Assert that the 4x8 pack/unpack operations have been lowered
authorMatt Turner <mattst88@gmail.com>
Tue, 22 Jan 2013 01:50:41 +0000 (17:50 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 25 Jan 2013 22:10:23 +0000 (14:10 -0800)
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index e19da51904952eaa92f817091d02f46252eaaaf6..ea0622576fa8e806ada894d5cf491f59f96bc045 100644 (file)
@@ -343,10 +343,14 @@ ir_channel_expressions_visitor::visit_leave(ir_assignment *ir)
       break;
 
    case ir_unop_pack_snorm_2x16:
+   case ir_unop_pack_snorm_4x8:
    case ir_unop_pack_unorm_2x16:
+   case ir_unop_pack_unorm_4x8:
    case ir_unop_pack_half_2x16:
    case ir_unop_unpack_snorm_2x16:
+   case ir_unop_unpack_snorm_4x8:
    case ir_unop_unpack_unorm_2x16:
+   case ir_unop_unpack_unorm_4x8:
    case ir_unop_unpack_half_2x16:
    case ir_quadop_vector:
       assert(!"should have been lowered");
index 7646d597e0172e08f5fb83007da6a29343385285..d4f6fc9ca7eaba5e10f9f7a465938e4947f13c3d 100644 (file)
@@ -539,9 +539,13 @@ fs_visitor::visit(ir_expression *ir)
                   this->result, op[0], op[1]);
       break;
    case ir_unop_pack_snorm_2x16:
+   case ir_unop_pack_snorm_4x8:
    case ir_unop_pack_unorm_2x16:
+   case ir_unop_pack_unorm_4x8:
    case ir_unop_unpack_snorm_2x16:
+   case ir_unop_unpack_snorm_4x8:
    case ir_unop_unpack_unorm_2x16:
+   case ir_unop_unpack_unorm_4x8:
    case ir_unop_unpack_half_2x16:
    case ir_unop_pack_half_2x16:
       assert(!"not reached: should be handled by lower_packing_builtins");
index 3a2f1d317fc801846c1e8f3039e96f66fd33b865..1863fe504eb06f095f1b0193405d33f360b20b9c 100644 (file)
@@ -1596,9 +1596,13 @@ vec4_visitor::visit(ir_expression *ir)
       emit_unpack_half_2x16(result_dst, op[0]);
       break;
    case ir_unop_pack_snorm_2x16:
+   case ir_unop_pack_snorm_4x8:
    case ir_unop_pack_unorm_2x16:
+   case ir_unop_pack_unorm_4x8:
    case ir_unop_unpack_snorm_2x16:
+   case ir_unop_unpack_snorm_4x8:
    case ir_unop_unpack_unorm_2x16:
+   case ir_unop_unpack_unorm_4x8:
       assert(!"not reached: should be handled by lower_packing_builtins");
       break;
    case ir_unop_unpack_half_2x16_split_x: