diff --git a/src/compiler/glsl/gl_nir_linker.c b/src/compiler/glsl/gl_nir_linker.c index 120db7e1acd..70a671a1358 100644 --- a/src/compiler/glsl/gl_nir_linker.c +++ b/src/compiler/glsl/gl_nir_linker.c @@ -1677,6 +1677,8 @@ gl_nir_link_glsl(const struct gl_constants *consts, MESA_TRACE_FUNC(); + resize_tes_inputs(consts, prog); + /* Validate the inputs of each stage with the output of the preceding * stage. */ diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 75c30b3d5ce..32acfd01d50 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -2725,8 +2725,6 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog) if (!prog->data->LinkStatus) goto done; - resize_tes_inputs(consts, prog); - done: for (unsigned i = 0; i < MESA_SHADER_STAGES; i++) { free(shader_list[i]);