The Sims 2 doesn't work with vanilla Wine.
"The infamous D3DERR_INVALIDCALL is due to the fact Wine is hardcoded to supply 256 vertex shaders instead of 1024 that The Sims 2 demands. Patching this constraint, as well as providing "dummy" code for an unimplemented shader interface allows the game to play to surprising results."
https://appdb.winehq.org/objectManager.php?sClass=version&iId=30720
The howto / notes section includes a patch which makes the game work.
Wine is patched for Gallium Nine support, could this be patched in too?