8b263555ee
This fixes depth-only rendering with mesh shaders, as well as array derefs in unlinked shaders in general. Lowering array derefs of vectors is necessary for correctness. Without this, nir_lower_io will incorrectly add the array index to the IO intrinsic base instead of to the component offset. This was previously only done during shader linking, which leaves some problems with unlinked shaders and depth-only rendering. Whether these calls can be safely removed from shader linking will be investigated in a future commit. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12516 Cc: mesa-stable Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33264>