nir/opt_algebraic: Fix mask in shift by constant combining.
authorGeorg Lehmann <dadschoorse@gmail.com>
Sat, 16 Apr 2022 11:36:17 +0000 (13:36 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 May 2022 18:47:21 +0000 (18:47 +0000)
commit66e917fff69497143ebf6593a40891ea3d1daf93
treea91a24eda715d42f035956aa3bba75a2880c4dff
parent81ad8c4979ac7ee4782ad932d01c7299b9ad9e5b
nir/opt_algebraic: Fix mask in shift by constant combining.

The comment above is correct, but the code to calculate the mask was broken.

No Foz-db changes outside of noise.

Fixes: 0e6581b87dc ("nir/algebraic: Reassociate shift-by-constant of shift-by-constant")
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15990>
src/compiler/nir/nir_opt_algebraic.py