Module: Mesa
Branch: master
Commit: 80da60947b65b792edc95671147b00bfe53f9101
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=80da60947b65b792edc95671147b00bfe53f9101

Author: Eric Anholt <[email protected]>
Date:   Tue Nov  7 10:13:04 2017 -0800

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 55a2e49b98..6f45b63405 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);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to