gallium/tgsi: Remove support for f64 src modifiers.

The tgsi.rst was not very clear but didn't indicate that they were
supported, and llvmpipe only supported double abs and not negate.
glsl_to_tgsi never generated them, and neither did the new nir_to_tgsi, so
just garbage collect it.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8369>
This commit is contained in:
Eric Anholt 2021-01-07 10:53:03 -08:00 committed by Marge Bot
parent 9a2cbe02ed
commit 1fc79592b7
2 changed files with 3 additions and 7 deletions

View File

@ -377,11 +377,11 @@ lp_build_emit_fetch_src(
if (reg->Register.Absolute) {
switch (stype) {
case TGSI_TYPE_FLOAT:
case TGSI_TYPE_DOUBLE:
case TGSI_TYPE_UNTYPED:
/* modifiers on movs assume data is float */
res = lp_build_abs(&bld_base->base, res);
break;
case TGSI_TYPE_DOUBLE:
case TGSI_TYPE_UNSIGNED:
case TGSI_TYPE_SIGNED:
case TGSI_TYPE_UNSIGNED64:

View File

@ -3594,12 +3594,8 @@ fetch_double_channel(struct tgsi_exec_machine *mach,
chan->u[i][0] = src[0].u[i];
chan->u[i][1] = src[1].u[i];
}
if (reg->Register.Absolute) {
micro_dabs(chan, chan);
}
if (reg->Register.Negate) {
micro_dneg(chan, chan);
}
assert(!reg->Register.Absolute);
assert(!reg->Register.Negate);
}
static void