mesa/main: Extend _mesa_get_format_bits to accept new pnames