nv50/ir/nir: convert 8/16 bit src to 32 bit for {i,u}2f64
authorDanilo Krummrich <dakr@redhat.com>
Thu, 8 Sep 2022 00:25:10 +0000 (02:25 +0200)
committerDanilo Krummrich <dakr@redhat.com>
Fri, 9 Sep 2022 15:32:16 +0000 (17:32 +0200)
commit109d56f61220c153bf0f2a2b2d89f9c0ae045082
tree44f3994e2dc742910d1420e180b32a8a524ff8be
parent78fc5e37738f495048d54c1d9c6f119c3e949059
nv50/ir/nir: convert 8/16 bit src to 32 bit for {i,u}2f64

Converting signed and unsigned integers from 8/16 bit sources to a 64 bit
floating point destination (i2f64 / u2f64) isn't possible, hence convert
the source to 32 bit first.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18109>
src/nouveau/codegen/nv50_ir_from_nir.cpp