[PATCH v2 3/6] d3d8: Track the primary stateblock state locally.