move _mesa_format_to_type_and_comps() to texformat.c