nv50: fix buffer reuse issues
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 19 Jun 2012 21:38:34 +0000 (23:38 +0200)
committerMarcin Slusarz <marcin.slusarz@gmail.com>
Wed, 20 Jun 2012 19:24:53 +0000 (21:24 +0200)
commit19fd04f5eaf76f6ea5effa69d91c415bba75ba8e
tree45468a40cf531e83a5d774683cfac4c390551c8c
parent7e63b613a5a067462c450338e0bdce5b5976f6f1
nv50: fix buffer reuse issues

1) We need to insert a barrier between consecutive transform feedback calls.
2) VBO cache needs to be flushed when TFB output is used as VBO draw input.

Fixes Piglit test EXT_transform_feedback/immediate-reuse.

Thanks to Christoph Bumiller for pointing out bugs in previous versions
of this patch.
src/gallium/drivers/nv50/nv50_shader_state.c
src/gallium/drivers/nv50/nv50_vbo.c