Driver with compact_arrays=false (i.e. radeonsi) is broken when tess factor is accessed indirectly, for example: gl_TessLevelOuter[gl_InvocationID] = xxx; This fix use nir_vectorize_tess_levels to lower array tess factor access into direct vector access before nir_lower_io() like clip and cull distance way. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29799>