From 80da60947b65b792edc95671147b00bfe53f9101 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 7 Nov 2017 10:13:04 -0800 Subject: [PATCH] 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" --- src/gallium/drivers/vc5/vc5_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/vc5/vc5_draw.c b/src/gallium/drivers/vc5/vc5_draw.c index 55a2e49..6f45b63 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); -- 2.7.4