From 54438267c3f6ba14ab99659cb2eb18e25cb1554a Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 14 Aug 2019 14:21:02 -0700 Subject: [PATCH] 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 --- src/gallium/drivers/panfrost/pan_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.30.2