zink: use explicit stride from types instead of copying old_var stride

should be no functional changes

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24950>
This commit is contained in:
Mike Blumenkrantz
2023-08-29 10:54:39 -04:00
committed by Marge Bot
parent 3c422ba518
commit e81048a0e2
+1 -1
View File
@@ -5028,7 +5028,7 @@ rework_io_vars(nir_shader *nir, nir_variable_mode mode)
vec_type = glsl_array_type(vec_type, slot_count, glsl_get_explicit_stride(vec_type));
}
if (is_arrayed)
vec_type = glsl_array_type(vec_type, glsl_array_size(old_var->type), glsl_get_explicit_stride(old_var->type));
vec_type = glsl_array_type(vec_type, glsl_array_size(old_var->type), glsl_get_explicit_stride(vec_type));
if (vars[location][c]) {
if (glsl_get_vector_elements(glsl_without_array(vars[location][c]->type)) < glsl_get_vector_elements(glsl_without_array(vec_type))) {
/* enlarge existing vars if necessary */