vrend: Reorder shader selection
In order to properly propagate the output masks to the inputs of the next shader the shader slection has do be done in the order the shaders will be called later.
This is the reviewed part of !128 (merged), will be merged immidately.