If I understand correctly the documentation, I wouldn't be surprised WARP doesn't support the WFOG flag, and thus fails the test (my understanding of the doc is that WARP will always used z, never w). However according to an old nvidia dx7 presentation, the d3d driver would advertise WFOG for real hw even if the internal vendor driver tried not to advertise it (thus forcing them to implement it), so I expect all real hw to have WFOG. Testing for the WFOG capability flag to run or not the test should be enough.