nir/lower_mediump: Treat u2u16 like i2i16.

There is a comment in nir_fold_16bit_sampler_conversions saying that these
are the same, but the code only checks for i2i16.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14893>
This commit is contained in:
Georg Lehmann 2022-02-05 12:08:27 +01:00 committed by Marge Bot
parent 532665c73c
commit c2168f845e

View file

@ -393,7 +393,8 @@ is_u16_to_u32_conversion(nir_instr *instr)
static bool
is_i32_to_i16_conversion(nir_instr *instr)
{
return is_n_to_m_conversion(instr, 32, nir_op_i2i16);
return is_n_to_m_conversion(instr, 32, nir_op_i2i16) ||
is_n_to_m_conversion(instr, 32, nir_op_u2u16);
}
static void