[PATCH 1/5] wined3d: Use a separate allocation for the device state.