From: Eric Anholt Date: Tue, 7 Nov 2017 18:13:04 +0000 (-0800) Subject: broadcom/vc5: Fix pausing of transform feedback. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80da60947b65b792edc95671147b00bfe53f9101;p=mesa.git broadcom/vc5: Fix pausing of transform feedback. Gallium disables it by removing the streamout buffers, not by binding a program that doesn't have TF outputs. Fixes piglit "ext_transform_feedback2/counting with pause" --- diff --git a/src/gallium/drivers/vc5/vc5_draw.c b/src/gallium/drivers/vc5/vc5_draw.c index 55a2e49b98d..6f45b634055 100644 --- a/src/gallium/drivers/vc5/vc5_draw.c +++ b/src/gallium/drivers/vc5/vc5_draw.c @@ -379,7 +379,7 @@ vc5_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info) * flag set. */ uint32_t prim_tf_enable = 0; - if (vc5->prog.bind_vs->num_tf_outputs) + if (vc5->streamout.num_targets) prim_tf_enable = (V3D_PRIM_POINTS_TF - V3D_PRIM_POINTS); vc5_tf_statistics_record(vc5, info, prim_tf_enable);