nir/lower_int64: lower 64-bit amul
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 1 Jul 2020 15:14:16 +0000 (16:14 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Jul 2020 06:47:10 +0000 (06:47 +0000)
commit0868638aed05775db44e9acc625bc34c737ee4fa
treecbe86609ca1b5a53a0bf167c62ce4c3bb17a9914
parent4d44848c470c9d214c03906d8decd8056829c4ce
nir/lower_int64: lower 64-bit amul

Fixes an issue with Renderdoc's shader debugging with ACO.

If nir_opt_algebraic isn't called in-between nir_lower_explicit_io and
nir_lower_int64, we can end up with 64-bit multiplications.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Fixes: 6320e37d4be ('nir: add amul instruction')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5709>
src/compiler/nir/nir_lower_int64.c