Mesa (main): nir/lower_point_size_mov: zero nir_state_slot::swizzle in new variable
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 20 17:41:14 UTC 2021
Module: Mesa
Branch: main
Commit: 50f9519ea5fbdb48d14a570f307c1ef6d22a9e6e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=50f9519ea5fbdb48d14a570f307c1ef6d22a9e6e
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Fri Jul 16 16:27:49 2021 -0400
nir/lower_point_size_mov: zero nir_state_slot::swizzle in new variable
this is otherwise uninitialized during nir_serialize calls
Reviewed-by: Emma Anholt <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11932>
---
src/compiler/nir/nir_lower_point_size_mov.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/compiler/nir/nir_lower_point_size_mov.c b/src/compiler/nir/nir_lower_point_size_mov.c
index f0526ba55fb..f7496816939 100644
--- a/src/compiler/nir/nir_lower_point_size_mov.c
+++ b/src/compiler/nir/nir_lower_point_size_mov.c
@@ -47,6 +47,7 @@ lower_impl(nir_function_impl *impl,
glsl_float_type(), "gl_PointSizeClampedMESA");
in->num_state_slots = 1;
in->state_slots = ralloc_array(in, nir_state_slot, 1);
+ in->state_slots[0].swizzle = 0;
memcpy(in->state_slots[0].tokens,
pointsize_state_tokens,
sizeof(in->state_slots[0].tokens));
More information about the mesa-commit
mailing list