freedreno: fix handling for stream-out offsets
authorRob Clark <robclark@freedesktop.org>
Tue, 12 Apr 2016 15:30:31 +0000 (11:30 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 13 Apr 2016 18:15:54 +0000 (14:15 -0400)
commit6ca6e80f61d4fc2e88f1abc2416b1965ecf1d114
tree056784c25e6417677b623c1476ec25d7d577ee31
parent0a4b0fc3154f4e3f926dcd5f2effe199c9fc6754
freedreno: fix handling for stream-out offsets

If changed && append, we shouldn't be resetting the internal offset back
to zero.  This fixes issues w/ sequences like:

   glBeginTransformFeedback()
   glDraw()
   glPauseTransformFeedback()
   glDraw()
   glResumeTransformFeedback()
   glDraw()
   glEndTransformFeedback()

Fixes dEQP-GLES3.functional.transform_feedback.array.separate.points.lowp_vec3
and related tests.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_state.c