nir/lower_int64: Fix [iu]mul_high handling
authorJason Ekstrand <jason.ekstrand@collabora.com>
Fri, 8 Apr 2022 20:06:11 +0000 (15:06 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Apr 2022 23:19:38 +0000 (23:19 +0000)
commitd0ace287902b1fac4a8ddcb91fac65c99218f01b
tree6147d4c52671f52a1878f8f9d36b63cf3eaa378a
parent48ae404b425b1247a777bb5ee01c0a3e659f419a
nir/lower_int64: Fix [iu]mul_high handling

e551040c602d, which added a new mechanism for 64-bit imul which is more
efficient on BDW and later Intel hardware also introduced a bug where we
weren't properly walking both X and Y.  No idea how testing didn't find
this.

Fixes: e551040c602d ("nir/glsl: Add another way of doing lower_imul64 for gen8+"
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6306
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15829>
src/compiler/nir/nir_lower_int64.c