[Mesa-dev] [PATCH 3/3] nir/opcodes: Use a return type of tfloat for ldexp

Jason Ekstrand jason at jlekstrand.net
Wed Jan 28 12:46:39 PST 2015


---
 src/glsl/nir/nir_opcodes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/nir/nir_opcodes.py b/src/glsl/nir/nir_opcodes.py
index f54a017..77f3bb8 100644
--- a/src/glsl/nir/nir_opcodes.py
+++ b/src/glsl/nir/nir_opcodes.py
@@ -477,7 +477,7 @@ else
    dst = ((1 << bits)- 1) << offset;
 """)
 
-opcode("ldexp", 0, tunsigned, [0, 0], [tfloat, tint], "", """
+opcode("ldexp", 0, tfloat, [0, 0], [tfloat, tint], "", """
 dst = ldexp(src0, src1);
 /* flush denormals to zero. */
 if (!isnormal(dst))
-- 
2.2.2



More information about the mesa-dev mailing list