From a34370e85570b8e49e37020851509c6d8253e5bd Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 31 Jul 2019 15:06:14 -0700 Subject: panfrost: Guard vertex upload by ctx->vertex != NULL This is irrelevant for graphics but matters for compute workloads. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 63f865aaccd..5e881915c14 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -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); -- cgit v1.2.3