i965: Move some asserts to unreachable.
authorEric Anholt <eric@anholt.net>
Wed, 11 Feb 2015 22:53:08 +0000 (14:53 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 13 Feb 2015 00:32:10 +0000 (16:32 -0800)
If execution was supposed to be supported in this case, we'd run into
trouble from completely uninitialized sat_imm values.

v2: Drop the '!' before the string.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_shader.cpp

index 7fc4a84a384d83dc8d0c17d18b103e3d8ec5c232..ad2e22adbc0f88871a81cf58dff520d3760a8968 100644 (file)
@@ -607,10 +607,10 @@ brw_saturate_immediate(enum brw_reg_type type, struct brw_reg *reg)
    case BRW_REGISTER_TYPE_V:
    case BRW_REGISTER_TYPE_UV:
    case BRW_REGISTER_TYPE_VF:
-      assert(!"unimplemented: saturate vector immediate");
+      unreachable("unimplemented: saturate vector immediate");
    case BRW_REGISTER_TYPE_DF:
    case BRW_REGISTER_TYPE_HF:
-      assert(!"unimplemented: saturate DF/HF immediate");
+      unreachable("unimplemented: saturate DF/HF immediate");
    }
 
    if (imm.ud != sat_imm.ud) {