zink: use MAX_PATCH_VERTICES directly for arrayed io var sizing
no functional changes Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24950>
This commit is contained in:
committed by
Marge Bot
parent
e81048a0e2
commit
53dab1cf40
@@ -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(vec_type));
|
||||
vec_type = glsl_array_type(vec_type, 32 /* MAX_PATCH_VERTICES */, 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 */
|
||||
|
||||
Reference in New Issue
Block a user