generate_binop(instructions, declarations, type, ir_binop_max);
}
+
+static void
+generate_pow(exec_list *instructions,
+ ir_variable **declarations,
+ const glsl_type *type)
+{
+ generate_binop(instructions, declarations, type, ir_binop_pow);
+}
+
void
generate_function_instance(ir_function *f,
const char *name,
/* FINISHME: acos() */
/* FINISHME: atan(y,x) */
/* FINISHME: atan(y/x) */
- /* FINISHME: pow() */
+ make_gentype_function(symtab, instructions, "pow", 2, generate_pow);
make_gentype_function(symtab, instructions, "exp", 1, generate_exp);
make_gentype_function(symtab, instructions, "log", 1, generate_log);
/* FINISHME: exp2() */