zink: only emit streamout targets during draw if we have them

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8503>
This commit is contained in:
Mike Blumenkrantz 2020-11-17 18:30:00 -05:00 committed by Marge Bot
parent 39c415d5fd
commit 64f939020d
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ zink_draw_vbo(struct pipe_context *pctx,
if (ctx->xfb_barrier)
zink_emit_xfb_counter_barrier(ctx);
if (ctx->dirty_so_targets)
if (ctx->dirty_so_targets && ctx->num_so_targets)
zink_emit_stream_output_targets(pctx);
if (so_target && zink_resource(so_target->base.buffer)->needs_xfb_barrier)