[PATCH 5/5] d3d9: Store primary stateblock state pointer in the device.