gallium/tgsi: add helper tgsi_get_interp_mode