[PATCH 1/3] wined3d: Move state objects from state.c to device.c.