nv50/ir: add intermediate conversion for f2{i,u}{8,16}
authorDanilo Krummrich <dakr@redhat.com>
Tue, 16 Aug 2022 00:03:02 +0000 (02:03 +0200)
committerDanilo Krummrich <dakr@redhat.com>
Fri, 9 Sep 2022 15:32:22 +0000 (17:32 +0200)
commit8ccba4ea5c46b4e408779b7d2c3d55df8dcef7de
tree8b13d5580f96102119113f9be0cf1a177459adb8
parent6a9825bc1bd55c403461111fc8b8c0cec9c97af7
nv50/ir: add intermediate conversion for f2{i,u}{8,16}

Directly converting from a float to an 8 bit integer and from a 64 bit
float to an integer smaller than 32 bit is not supported, therefore add
an intermediate conversion to an 32 bit integer.

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_lowering_helper.cpp