diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-31 15:06:14 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-01 16:23:03 -0700 |
commit | a34370e85570b8e49e37020851509c6d8253e5bd (patch) | |
tree | e7a3d378e7bec154c5cbc950f7916fbed93f49c1 | |
parent | 3bfdb878aa9b534960b127b69916e9fa85910dd2 (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]>
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 3 |
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); |