gallivm: Eliminate tgsi_util_get_full_src_register_sign_mode call.

It complicates more than it simplifies, now that there's only one negate
bit on TGSI registers.
This commit is contained in:
José Fonseca 2011-10-16 13:48:33 +01:00
parent e9c1d87ce7
commit e1e03ce492
1 changed files with 3 additions and 11 deletions

View File

@ -783,20 +783,12 @@ emit_fetch(
return bld->base.undef;
}
switch( tgsi_util_get_full_src_register_sign_mode( reg, chan_index ) ) {
case TGSI_UTIL_SIGN_CLEAR:
if (reg->Register.Absolute) {
res = lp_build_abs( &bld->base, res );
break;
}
case TGSI_UTIL_SIGN_SET:
res = lp_build_abs( &bld->base, res );
/* fall through */
case TGSI_UTIL_SIGN_TOGGLE:
if (reg->Register.Negate) {
res = lp_build_negate( &bld->base, res );
break;
case TGSI_UTIL_SIGN_KEEP:
break;
}
return res;