diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2022-03-30 09:23:03 -0400 |
---|---|---|
committer | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2022-04-07 21:56:09 -0400 |
commit | 310903d096d61e20a5eca59044f840fdf026b663 (patch) | |
tree | ffe122de53bbcbd863b7039310a6d199c897c482 | |
parent | 02b573e03e45b21a1018dc6766406a962af2e63e (diff) |
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@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15699>
-rw-r--r-- | src/compiler/nir/nir_lower_point_size_mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |