Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
unop("fsin", tfloat, "sinf(src0)")
unop("fcos", tfloat, "cosf(src0)")
-unop("fsin_reduced", tfloat, "sinf(src0)")
-unop("fcos_reduced", tfloat, "cosf(src0)")
# Partial derivatives.
unreachable("not reached: should be handled by ir_explog_to_explog2");
case nir_op_fsin:
- case nir_op_fsin_reduced:
inst = emit_math(SHADER_OPCODE_SIN, result, op[0]);
inst->saturate = instr->dest.saturate;
break;
case nir_op_fcos:
- case nir_op_fcos_reduced:
inst = emit_math(SHADER_OPCODE_COS, result, op[0]);
inst->saturate = instr->dest.saturate;
break;