nouveau/mme: Fix is_int18 for negative numbers
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:12:06 +0000 (20:12 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:03 +0000 (21:32 +0000)
commit75deae59887f3bf201139192b36c2d70b75d5862
tree7e9d4207bc926ac1d8d33e6ffde53af21bf8c78a
parent67008dfe789c04e1ca26c658f0a415f11aa0579b
nouveau/mme: Fix is_int18 for negative numbers

util_mask_sign_extend returns a uint64_t which we need to cast to
uint32_t in order to get the right comparison.  Otherwise, we risk
having ~0 in the top 32 bits and the comparison failing.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/mme/mme_fermi_builder.c