mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
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:
parent
532665c73c
commit
c2168f845e
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue