Module Name: xsrc
Committed By: riastradh
Date: Fri Feb 26 22:35:54 UTC 2016
Modified Files:
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sb: sb_expr.cpp
Log Message:
With the other changes in previous commit, these casts are unneeded.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_expr.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_expr.cpp
diff -u xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_expr.cpp:1.2 xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_expr.cpp:1.3
--- xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_expr.cpp:1.2 Fri Feb 26 22:09:05 2016
+++ xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/sb_expr.cpp Fri Feb 26 22:35:54 2016
@@ -876,12 +876,12 @@ bool expr_handler::evaluate_condition(un
switch (cmp_type) {
case AF_FLOAT_CMP: {
switch (cc) {
- case (unsigned)AF_CC_E : return s1.f == s2.f;
- case (unsigned)AF_CC_GT: return s1.f > s2.f;
- case (unsigned)AF_CC_GE: return s1.f >= s2.f;
- case (unsigned)AF_CC_NE: return s1.f != s2.f;
- case (unsigned)AF_CC_LT: return s1.f < s2.f;
- case (unsigned)AF_CC_LE: return s1.f <= s2.f;
+ case AF_CC_E : return s1.f == s2.f;
+ case AF_CC_GT: return s1.f > s2.f;
+ case AF_CC_GE: return s1.f >= s2.f;
+ case AF_CC_NE: return s1.f != s2.f;
+ case AF_CC_LT: return s1.f < s2.f;
+ case AF_CC_LE: return s1.f <= s2.f;
default:
assert(!"invalid condition code");
return false;
@@ -889,12 +889,12 @@ bool expr_handler::evaluate_condition(un
}
case AF_INT_CMP: {
switch (cc) {
- case (unsigned)AF_CC_E : return s1.i == s2.i;
- case (unsigned)AF_CC_GT: return s1.i > s2.i;
- case (unsigned)AF_CC_GE: return s1.i >= s2.i;
- case (unsigned)AF_CC_NE: return s1.i != s2.i;
- case (unsigned)AF_CC_LT: return s1.i < s2.i;
- case (unsigned)AF_CC_LE: return s1.i <= s2.i;
+ case AF_CC_E : return s1.i == s2.i;
+ case AF_CC_GT: return s1.i > s2.i;
+ case AF_CC_GE: return s1.i >= s2.i;
+ case AF_CC_NE: return s1.i != s2.i;
+ case AF_CC_LT: return s1.i < s2.i;
+ case AF_CC_LE: return s1.i <= s2.i;
default:
assert(!"invalid condition code");
return false;
@@ -902,12 +902,12 @@ bool expr_handler::evaluate_condition(un
}
case AF_UINT_CMP: {
switch (cc) {
- case (unsigned)AF_CC_E : return s1.u == s2.u;
- case (unsigned)AF_CC_GT: return s1.u > s2.u;
- case (unsigned)AF_CC_GE: return s1.u >= s2.u;
- case (unsigned)AF_CC_NE: return s1.u != s2.u;
- case (unsigned)AF_CC_LT: return s1.u < s2.u;
- case (unsigned)AF_CC_LE: return s1.u <= s2.u;
+ case AF_CC_E : return s1.u == s2.u;
+ case AF_CC_GT: return s1.u > s2.u;
+ case AF_CC_GE: return s1.u >= s2.u;
+ case AF_CC_NE: return s1.u != s2.u;
+ case AF_CC_LT: return s1.u < s2.u;
+ case AF_CC_LE: return s1.u <= s2.u;
default:
assert(!"invalid condition code");
return false;