[PATCH 1/3] d3d9: Track the viewport and scissor rect in the primary stateblock.