nir/spirv: Move Exp and Log to the list of currently unhandled ALU ops
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 16 May 2015 19:33:29 +0000 (12:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 31 Aug 2015 23:58:20 +0000 (16:58 -0700)
NIR doesn't have the native opcodes for them anymore

src/glsl/nir/spirv_glsl450_to_nir.c

index 240ff012fe1ab8affdd083434e97a40f43d6bf08..3b9d0940aad0bbf35f2cebc6843c2e5772a0e2ec 100644 (file)
@@ -170,8 +170,6 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSL450Entrypoint entrypoint,
                                   nir_fcos(&b->nb, src[0]));
       return;
    case Pow:         op = nir_op_fpow;       break;
-   case Exp:         op = nir_op_fexp;       break;
-   case Log:         op = nir_op_flog;       break;
    case Exp2:        op = nir_op_fexp2;      break;
    case Log2:        op = nir_op_flog2;      break;
    case Sqrt:        op = nir_op_fsqrt;      break;
@@ -227,6 +225,8 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSL450Entrypoint entrypoint,
    case FindLSB:           op = nir_op_find_lsb;            break;
    case FindMSB:           op = nir_op_ufind_msb;           break; /* TODO */
 
+   case Exp:
+   case Log:
    case Clamp:
    case Asin:
    case Acos: