softpipe: Move selection of shadow values up and clean parameter list