This patch breaks the TWIST demo that was working fine. I think the changes in d3ddevice_create are responsible of that.
Strange, it works fine here.. A bit slow when statistics are displayed (due to the locking of the D3DEVICE surface and thus needing a slow GL call like glReadPixels / glDrawPixels) but as fast as before when disabling them.
But well, my tree has patches up to number 13 so maybe I broke something that was fixed later on (although I wonder what).
Do you have more precise debug output ?
Lionel