From 7ef205dabd4909c6768f2181fff95fe3f9b451cf Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 14 Aug 2020 15:23:51 -0400 Subject: [PATCH] panfrost: Use MALI_ATTRIBUTE_LENGTH Removes an unwanted reference to mali_attr_meta. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 376705fc844..079c41b6181 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -1953,8 +1953,8 @@ panfrost_emit_varying_descriptor(struct panfrost_batch *batch, vs = panfrost_get_shader_state(ctx, PIPE_SHADER_VERTEX); fs = panfrost_get_shader_state(ctx, PIPE_SHADER_FRAGMENT); - vs_size = sizeof(struct mali_attr_meta) * vs->varying_count; - fs_size = sizeof(struct mali_attr_meta) * fs->varying_count; + vs_size = MALI_ATTRIBUTE_LENGTH * vs->varying_count; + fs_size = MALI_ATTRIBUTE_LENGTH * fs->varying_count; struct panfrost_transfer trans = panfrost_pool_alloc(&batch->pool, vs_size + -- 2.30.2