https://bugs.winehq.org/show_bug.cgi?id=40465
--- Comment #3 from Matteo Bruni matteo.mystral@gmail.com --- I don't think there are legitimate places to download those old SDKs anymore.
They might not be necessary though. d3d7 returns the D3DSTATUS_* flags while d3d3 uses the D3DVIS_* flags, like you noticed. It should be possible to modify d3d_device3_ComputeSphereVisibility to convert from the d3d7-style return flags to the d3d3-style ones. Also (unrelated bug) notice that the d3d7 version should also check visibility with the user clipplanes, which apparently were a new feature in that DirectX version.
Anyway, the first step is to cleanup and port the ComputeSphereVisibility test from d3d.c to ddraw7.c and ddraw4.c.