Mesa (main): nir/lower_point_size_mov: fix check for overwriting existing pointsize
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Apr 8 02:28:11 UTC 2022
Module: Mesa
Branch: main
Commit: 310903d096d61e20a5eca59044f840fdf026b663
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=310903d096d61e20a5eca59044f840fdf026b663
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Mar 30 09:23:03 2022 -0400
nir/lower_point_size_mov: fix check for overwriting existing pointsize
this should match the comment and allow overwriting injected pointsize
variables regardless of whether xfb is flagged
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15699>
---
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;
More information about the mesa-commit
mailing list