From: Alyssa Rosenzweig Date: Wed, 14 Aug 2019 21:21:02 +0000 (-0700) Subject: panfrost: Zero tripipe on initialize X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54438267c3f6ba14ab99659cb2eb18e25cb1554a;p=mesa.git panfrost: Zero tripipe on initialize I don't think the hardware cares, but this adds a lot of noise to traces that we would rather not need to look at. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index da0afcd8ec7..bb506c069ac 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -2120,7 +2120,7 @@ panfrost_bind_shader_state( } } - variants->variants[variant].tripipe = malloc(sizeof(struct mali_shader_meta)); + variants->variants[variant].tripipe = calloc(1, sizeof(struct mali_shader_meta)); }