panfrost: Guard vertex upload by ctx->vertex != NULL
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 31 Jul 2019 22:06:14 +0000 (15:06 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 1 Aug 2019 23:23:03 +0000 (16:23 -0700)
This is irrelevant for graphics but matters for compute workloads.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c

index 63f865aaccdd13031ef3d04030a496ab5f2957e9..5e881915c1424da7764f7062d06cc03ef126a6c2 100644 (file)
@@ -1256,7 +1256,8 @@ panfrost_emit_for_draw(struct panfrost_context *ctx, bool with_vertex_data)
         }
 
         /* We stage to transient, so always dirty.. */
-        panfrost_stage_attributes(ctx);
+        if (ctx->vertex)
+                panfrost_stage_attributes(ctx);
 
         if (ctx->dirty & PAN_DIRTY_SAMPLERS)
                 panfrost_upload_sampler_descriptors(ctx);