nir/fold_16bit_sampler_conversions: Don't fold dest upcasts.
authorGeorg Lehmann <dadschoorse@gmail.com>
Wed, 23 Mar 2022 10:44:57 +0000 (11:44 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 23 Mar 2022 20:55:39 +0000 (20:55 +0000)
commit798e47be511ade4218158ab36178ed62dd45a47c
treee7ef0e41bd640341ca754440844cdc7a5960b271
parent18111c3787c4e45fc79e5eea6ee8c7aa5ba1a419
nir/fold_16bit_sampler_conversions: Don't fold dest upcasts.

This is not a valid optimization.

Fixes: fb29cef8dda ("nir: add many passes that lower and optimize 16-bit input/outputs and samplers")
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14895>
src/compiler/nir/nir_lower_mediump.c