anv/query: Increment an index while writing results
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Sep 2018 20:07:36 +0000 (15:07 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 17 Sep 2018 07:57:21 +0000 (02:57 -0500)
commitc0420a62c95a0091d6b59c762ceebe64d561d281
tree8b2993b52b7d8bc122412bd409087169825d637b
parentdf9dbc03d3df37c10f2d7b73124f8b3fd7a2518f
anv/query: Increment an index while writing results

Instead of computing an index at the end which we hope maps to the
number of things written, just count the number of things as we go.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/genX_query.c