[PATCH 3/4] wined3d: Move the device state to the CS object.