i965: Just read the existing tally 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:42 +0000 (19:55 -0700)
commit9c0d16adc16e53f8d978eb0e8857071fbd1f07cd
treee2530c9607c369fa39869cf63dadaa06ab63f21d
parent915f7c25fac2683f924fded2b47208c7fb850044
i965: Just read the existing tally on EndTransformFeedback if paused.

If the transform feedback object is paused when ending, then there are
no new snapshots to add to the tally.  In fact, we haven't written a
starting snapshot, so we'd best not try and compute (end - start).

Just load the existing tally so we can convert it to the number of
vertices written and store it to the final result location.

This is the Haswell+ equivalent of the previous commit.

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