i965: Mark UB/B immediates as unreachable.
authorMatt Turner <mattst88@gmail.com>
Thu, 29 Jan 2015 19:16:43 +0000 (11:16 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 3 Feb 2015 20:25:14 +0000 (12:25 -0800)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_shader.cpp

index 7321665c55617c99bead430e23f1ce6d8d4abdb5..20cbf5bacdb3aedabf4a81c2434a79bd29f2e8b9 100644 (file)
@@ -602,11 +602,8 @@ brw_saturate_immediate(enum brw_reg_type type, struct brw_reg *reg)
       sat_imm.f = CLAMP(imm.f, 0.0f, 1.0f);
       break;
    case BRW_REGISTER_TYPE_UB:
-      sat_imm.ud = CLAMP(imm.ud, 0, UCHAR_MAX);
-      break;
    case BRW_REGISTER_TYPE_B:
-      sat_imm.d = CLAMP(imm.d, CHAR_MIN, CHAR_MAX);
-      break;
+      unreachable("no UB/B immediates");
    case BRW_REGISTER_TYPE_V:
    case BRW_REGISTER_TYPE_UV:
    case BRW_REGISTER_TYPE_VF: