As far as I know, fire/cooking predates farming. Most estimates place the origins of farming 10,000 years ago, and according to the summary, cooking developed 200,000 years ago. So while humans may have been cooking wild plants, I imagine a major advantage of cooking was allowing you to store meat much longer.
You're right about civilization being based on high calorie domesticated agriculture, but your timing is a little off.
You knew the job was dangerous when you took it, Fred. -- Superchicken