From c2066d468510bc220256cbc8ea89d3030dfaa94e Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 19 Mar 2024 09:53:59 +1100 Subject: [PATCH] glsl: call new nir resize_tes_inputs() pass MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Acked-by: Marek Olšák Part-of: --- src/compiler/glsl/gl_nir_linker.c | 2 ++ src/compiler/glsl/linker.cpp | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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]);