summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-11-07 10:13:04 -0800
committerEric Anholt <[email protected]>2017-11-07 12:58:00 -0800
commit80da60947b65b792edc95671147b00bfe53f9101 (patch)
tree7f63795ca3a0c75a6e75649109c841d5b03adb76 /src/gallium/drivers
parent25d199f67dce2698aa8a9c3a4010d90a44d3a894 (diff)
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"
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/vc5/vc5_draw.c2
1 files changed, 1 insertions, 1 deletions
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);