Mesa (master): prog_to_nir: OPCODE_EXP is not nir_op_fexp

Ian Romanick idr at kemper.freedesktop.org
Fri May 8 19:13:09 UTC 2015


Module: Mesa
Branch: master
Commit: 5e0dca62a7c8d02ab01bec4259cc67324bb2075d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e0dca62a7c8d02ab01bec4259cc67324bb2075d

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Wed May  6 16:54:06 2015 -0700

prog_to_nir: OPCODE_EXP is not nir_op_fexp

It's a weird thing that provides some values related to 2**x.  It's also
already handled by a case in the switch.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Acked-by: Jason Ekstrand <jason.ekstrand at intel.com>

---

 src/mesa/program/prog_to_nir.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
index ff3d9f3..6c5fa51 100644
--- a/src/mesa/program/prog_to_nir.c
+++ b/src/mesa/program/prog_to_nir.c
@@ -710,7 +710,7 @@ static const nir_op op_trans[MAX_OPCODE] = {
    [OPCODE_DST] = 0,
    [OPCODE_END] = 0,
    [OPCODE_EX2] = nir_op_fexp2,
-   [OPCODE_EXP] = nir_op_fexp,
+   [OPCODE_EXP] = 0,
    [OPCODE_FLR] = nir_op_ffloor,
    [OPCODE_FRC] = nir_op_ffract,
    [OPCODE_LG2] = nir_op_flog2,




More information about the mesa-commit mailing list