mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
panfrost: Guard vertex upload by ctx->vertex != NULL
This is irrelevant for graphics but matters for compute workloads. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
3bfdb878aa
commit
a34370e855
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue