summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-07-31 15:06:14 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-01 16:23:03 -0700
commita34370e85570b8e49e37020851509c6d8253e5bd (patch)
treee7a3d378e7bec154c5cbc950f7916fbed93f49c1 /src
parent3bfdb878aa9b534960b127b69916e9fa85910dd2 (diff)
panfrost: Guard vertex upload by ctx->vertex != NULL
This is irrelevant for graphics but matters for compute workloads. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/pan_context.c3
1 files changed, 2 insertions, 1 deletions
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);