mesa/st: Reuse st_choose_matching_format from st_choose_format().