draw: add support for later transform feedback extensions
authorDave Airlie <airlied@gmail.com>
Wed, 12 Dec 2012 11:14:58 +0000 (21:14 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 14 Dec 2012 01:34:15 +0000 (11:34 +1000)
commit55d37eb40edff67fa12d1729165b292b914d8e51
tree4db46e7ec785faa016fba7b1ae4e456e330ce72c
parent4330cfec8b5225283bccc03f53a440c20e8e5cb5
draw: add support for later transform feedback extensions

This adds support to draw for the new features of transform feedback.

a) fix count_from_stream_output, using max_index+1 for now but it looks
like it should be valid as its derived from the vertex elements/vbo.

b) fix striding and dst offsets in output buffers - was just wrong before.

c) fix crash if tfb is suspended (so.num_targets == 0)

This also enables the new features on softpipe. It should be possible
to enable them on llvmpipe as well after this commit, but would need
to schedule piglit runs.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/draw/draw_pt.c
src/gallium/auxiliary/draw/draw_pt_so_emit.c
src/gallium/drivers/softpipe/sp_screen.c