projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e98e8
)
i965: Mark UB/B immediates as unreachable.
author
Matt Turner
<mattst88@gmail.com>
Thu, 29 Jan 2015 19:16:43 +0000
(11:16 -0800)
committer
Matt 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_shader.cpp
b/src/mesa/drivers/dri/i965/brw_shader.cpp
index 7321665c55617c99bead430e23f1ce6d8d4abdb5..20cbf5bacdb3aedabf4a81c2434a79bd29f2e8b9 100644
(file)
--- 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: