From: Alyssa Rosenzweig Date: Fri, 14 Aug 2020 19:23:51 +0000 (-0400) Subject: panfrost: Use MALI_ATTRIBUTE_LENGTH X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ef205dabd4909c6768f2181fff95fe3f9b451cf;p=mesa.git panfrost: Use MALI_ATTRIBUTE_LENGTH Removes an unwanted reference to mali_attr_meta. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso Part-of: --- 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 +