i965: Don't write a counter snapshot on EndTransformFeedback if paused.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 May 2016 05:48:02 +0000 (22:48 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 21 May 2016 02:55:40 +0000 (19:55 -0700)
commit915f7c25fac2683f924fded2b47208c7fb850044
tree60d2a3bd13e6bdcee10087089970e5b2da437fb5
parent47fbe178fa631ae855fa862d638f5313a2b13bc3
i965: Don't write a counter snapshot on EndTransformFeedback if paused.

If the transform feedback object is paused, then we've already written
an ending counter snapshot.  We don't want to write another one.

This fixes assertions in GL33-CTS.transform_feedback.api_errors_test,
which calls EndTransformfeedback after PauseTransformFeedback.  On the
next BeginTransformFeedback, we tried to tally up the results, and saw
an odd number of snapshots (due to the double-end), and tripped an
assertion.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/gen7_sol_state.c