i965/gen6-7/sol: Restructure primitive counter into a separate type.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 17 Nov 2017 22:06:04 +0000 (14:06 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 17 Jan 2018 00:03:42 +0000 (16:03 -0800)
commitb0c8d61281d5e09cd216e1ff3f2c441f7c550a47
treee8b4989638a1cfa19dd36577ce9ca5e47f0e90f3
parentdc520dafdcfccd20071dc560b39e3d93ffdbafe4
i965/gen6-7/sol: Restructure primitive counter into a separate type.

A primitive counter encapsulates a scalar aggregating counter for each
vertex stream along with a section within the primitive tally buffer
which hasn't been read out yet.  Defining this as a separate type will
allow us to keep multiple counter objects around for the same
transform feedback object without any code duplication.

Tested-By: Eero Tamminen <eero.t.tamminen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/gen6_sol.c
src/mesa/drivers/dri/i965/gen7_sol_state.c