From 310903d096d61e20a5eca59044f840fdf026b663 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 30 Mar 2022 09:23:03 -0400 Subject: [PATCH] nir/lower_point_size_mov: fix check for overwriting existing pointsize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this should match the comment and allow overwriting injected pointsize variables regardless of whether xfb is flagged Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir_lower_point_size_mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_lower_point_size_mov.c b/src/compiler/nir/nir_lower_point_size_mov.c index 4a71d75dea5..0fd8ecafaf1 100644 --- a/src/compiler/nir/nir_lower_point_size_mov.c +++ b/src/compiler/nir/nir_lower_point_size_mov.c @@ -55,7 +55,7 @@ lower_impl(nir_function_impl *impl, * drivers must check var->data.explicit_location to find the original output * and only emit that one for xfb */ - if (!out || shader->info.has_transform_feedback_varyings) { + if (!out || out->data.explicit_location) { new_out = nir_variable_create(shader, nir_var_shader_out, glsl_float_type(), "gl_PointSizeMESA"); new_out->data.location = VARYING_SLOT_PSIZ;