“Is my friend racist?”

I have a friend who makes racist jokes towards me. I am half Asian/half white and one of my friends makes offensive Asian jokes and it can be quite hurtful. They don’t do it on purpose to upset me, but I’m pretty sick of it and wish they’d stop.

Should I speak to them about it or just cut them out? Are they a real friend if they say things like that to me?