panfrost: Use MALI_ATTRIBUTE_LENGTH
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 14 Aug 2020 19:23:51 +0000 (15:23 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 17 Aug 2020 11:43:52 +0000 (11:43 +0000)
Removes an unwanted reference to mali_attr_meta.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6326>

src/gallium/drivers/panfrost/pan_cmdstream.c

index 376705fc844ceec6963debf1d2bb978dce500165..079c41b6181c2497d12a51e931bb8490fd738ce9 100644 (file)
@@ -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 +