They were only allowed to be cooks or valets if they wanted to be in the white group of men. There were 2 groups that were intentionally racially segregated.
Wealthy businessmen and rich tenant farmers.
In general, when anything is "merit based" it means that it relies strictly on the knowledge and ability of the person in question, instead of special privilege such as family connections. <span />