[PATCH 5/6] wined3d: Store the primary stateblock in the device.