summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-01-29 11:16:43 -0800
committerMatt Turner <[email protected]>2015-02-03 12:25:14 -0800
commit1f4bdad31607a238944cf7b7ec35085718e6d969 (patch)
treec90d335963f8e8125688e04d00dfe1c232109b28 /src/mesa/drivers/dri/i965
parent32e98e8ef06f0bb6ad55f9fb5858be77c03367b0 (diff)
i965: Mark UB/B immediates as unreachable.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_shader.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp
index 7321665c556..20cbf5bacdb 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.cpp
+++ b/src/mesa/drivers/dri/i965/brw_shader.cpp
@@ -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: