I looked several points up because some things were done differently here when I moved and I got curious about a few points when I saw the food gift points. Etiquette is cultural and they do vary in different parts of our own country and even changes over time. Emily Post and other's known for...
I looked this up in a Manners book at Barnes and Noble one year. You did nothing wrong. In fact bringing food to a dinner is supposed to be a gift for the host/hostess and it's up to if he/she wants to serve it. An exception would be a pot-luck where everyone contributes equally. I don't know...