VideoCommon: Handle wireframe mode in the geometry shader.

We could also do it with fixed functions, but this is generally easier to maintain.
I think this function should be a member of the uid itself.