[Mesa-dev] [PATCH] nir: fix comment typo about f2d/d2f
Kenneth Graunke
kenneth at whitecape.org
Sat May 14 19:53:56 UTC 2016
On Saturday, May 14, 2016 3:26:41 PM PDT Rob Clark wrote:
> From: Rob Clark <robclark at freedesktop.org>
>
> Signed-off-by: Rob Clark <robclark at freedesktop.org>
> ---
> src/compiler/nir/nir_opcodes.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/
nir_opcodes.py
> index 24ffc31..9d05594 100644
> --- a/src/compiler/nir/nir_opcodes.py
> +++ b/src/compiler/nir/nir_opcodes.py
> @@ -180,8 +180,8 @@ unop_convert("b2i", tint32, tbool, "src0 ? 1 : 0") #
Boolean-to-int conversion
> unop_convert("u2f", tfloat32, tuint32, "src0") # Unsigned-to-float
conversion.
> unop_convert("u2d", tfloat64, tuint32, "src0") # Unsigned-to-double
conversion.
> # double-to-float conversion
> -unop_convert("d2f", tfloat32, tfloat64, "src0") # Single to double
precision
> -unop_convert("f2d", tfloat64, tfloat32, "src0") # Double to single
precision
> +unop_convert("d2f", tfloat32, tfloat64, "src0") # Double to single
precision
> +unop_convert("f2d", tfloat64, tfloat32, "src0") # Single to double
precision
>
> # half/full conversion:
> unop_convert("f2h", tfloat16, tfloat32, "src0")
>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160514/a7444767/attachment.sig>
More information about the mesa-dev
mailing list