RSX: shaders fix and vertex texture implementation

Consolidate the patch code from [DH] and merge with current master with slight modification to match our latest changes.
Probably need to check with [DH].