!UPSTREAM: Fix color clamping for VS when GS in use

TODO:
- Move to appropriate part of patch series.