summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opcodes.py
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2016-05-13 15:26:15 -0400
committerRob Clark <robclark@freedesktop.org>2016-05-15 17:25:47 -0400
commit8b24f7b440f80cc2cba272b3b479ddd14a07602b (patch)
tree3a9a1bf0a9e580e4284d39623401ccac22f77bd3 /src/compiler/nir/nir_opcodes.py
parentbe2b13e3bf4e61aee96c9575e7781d053f0788a1 (diff)
downloadexternal_mesa3d-8b24f7b440f80cc2cba272b3b479ddd14a07602b.zip
external_mesa3d-8b24f7b440f80cc2cba272b3b479ddd14a07602b.tar.gz
external_mesa3d-8b24f7b440f80cc2cba272b3b479ddd14a07602b.tar.bz2
nir: fix comment typo about f2d/d2f
Signed-off-by: Rob Clark <robclark@freedesktop.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/nir/nir_opcodes.py')
-rw-r--r--src/compiler/nir/nir_opcodes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py
index 54ea720..8a3a80f 100644
--- a/src/compiler/nir/nir_opcodes.py
+++ b/src/compiler/nir/nir_opcodes.py
@@ -177,8 +177,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
# Unary floating-point rounding operations.