mesa/es: Validate blend function enums in Mesa code rather than the ES wrapper