nir: Fix flat new_var assignment in create_new_io_vars()
If the type is not an array, glsl_get_length() returns 0 and we don't update the new_vars[]/flat_vars[] entries. Fixes: bcd14756 ("nir/lower_io_to_vector: add flat mode") Reviewed-by:Jason Ekstrand <jason.ekstrand@collabora.com> Reviewed-by:
Jesse Natalie <jenatali@microsoft.com> Part-of: <mesa/mesa!16960>
Please register or sign in to comment