broadcom/vc5: Fix pausing of transform feedback.
authorEric Anholt <eric@anholt.net>
Tue, 7 Nov 2017 18:13:04 +0000 (10:13 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 7 Nov 2017 20:58:00 +0000 (12:58 -0800)
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

index 55a2e49b98d319146ee04c2fc6da5cab2d90f5ea..6f45b6340558280668486972ec5fbcd040cd9ea1 100644 (file)
@@ -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);