[PATCH 4/6] d3d9: Retrieve the vertex declaration from the primary stateblock.