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:
parent
39c415d5fd
commit
64f939020d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue