2 things.
First, you need to instal directX11 AND directX9.0c, directX9 isn't included in directX11
Secondly, I don't think the problem is from DirectX, try another display mode in mame, use openGL instead of D3D (you can configure it in mame.ini) or directdraw if you are realy unlucky.
check your display driver too.