[Mesa-dev] [PATCH 3/3] nir: Fix typo in ushr by 0 algebraic replacement

Jason Ekstrand jason at jlekstrand.net
Tue Apr 14 12:48:16 PDT 2015


Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>

On Tue, Apr 14, 2015 at 8:43 AM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> Cc: "10.5" <mesa-stable at lists.freedestkop.org>
> ---
>  src/glsl/nir/nir_opt_algebraic.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/glsl/nir/nir_opt_algebraic.py b/src/glsl/nir/nir_opt_algebraic.py
> index 319732d..cdb1924 100644
> --- a/src/glsl/nir/nir_opt_algebraic.py
> +++ b/src/glsl/nir/nir_opt_algebraic.py
> @@ -133,7 +133,7 @@ optimizations = [
>     (('ishr', 0, a), 0),
>     (('ishr', a, 0), a),
>     (('ushr', 0, a), 0),
> -   (('ushr', a, 0), 0),
> +   (('ushr', a, 0), a),
>     # Exponential/logarithmic identities
>     (('fexp2', ('flog2', a)), a), # 2^lg2(a) = a
>     (('fexp',  ('flog',  a)), a), # e^ln(a)  = a
> --
> 2.1.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list