tgsi_to_nir: Set use_legacy_math_rules for TGSI_PROPERTY_LEGACY_MATH_RULES.

These control the same behavior, now that we've clarified what the flags
do.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16176>
This commit is contained in:
Emma Anholt 2022-04-26 13:44:46 -07:00 committed by Marge Bot
parent 1e2e52eff7
commit b61097dd45

View file

@ -2389,6 +2389,9 @@ ttn_compile_init(const void *tgsi_tokens,
case TGSI_PROPERTY_NUM_CLIPDIST_ENABLED:
s->info.clip_distance_array_size = value;
break;
case TGSI_PROPERTY_LEGACY_MATH_RULES:
s->info.use_legacy_math_rules = value;
break;
default:
if (value) {
fprintf(stderr, "tgsi_to_nir: unhandled TGSI property %u = %u\n",