r2: texture unit selection is finally based on shader data