From 50f9519ea5fbdb48d14a570f307c1ef6d22a9e6e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 16 Jul 2021 16:27:49 -0400 Subject: [PATCH] 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 Part-of: --- 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));