draw: clean up setting stream out information a bit
authorRoland Scheidegger <sroland@vmware.com>
Fri, 23 Aug 2013 21:08:43 +0000 (23:08 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 27 Aug 2013 14:59:39 +0000 (16:59 +0200)
commitbd3909f265908e30ef0e569fab57e9a042750b3a
treec98086d22693a9eab4900a7df27046573b831e0e
parentaff2ecf09a92eb79eef560f17d77badf69782e7c
draw: clean up setting stream out information a bit

In particular noone is interested in the vertex count, so drop that,
and also drop the duplicated num_primitives_generated /
so.primitives_storage_needed variables in drivers. I am unable for now to figure
out if primitives_storage_needed in SO stats (used for d3d10) should
increase if SO is disabled, though the equivalent num_primitives_generated
used for OpenGL definitely should increase. In any case we were only counting
when SO is active both in softpipe and llvmpipe anyway so don't pretend there's
an independent num_primitives_generated counter which would count always.
(This means the PIPE_QUERY_PRIMITIVES_GENERATED count will still be wrong just
as before, should eventually fix this by doing either separate counting for this
query or adjust the code so it always counts this even if SO is inactive depending
on what's correct for d3d10.)

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pt_so_emit.c
src/gallium/auxiliary/draw/draw_vbuf.h
src/gallium/docs/source/context.rst
src/gallium/drivers/llvmpipe/lp_context.h
src/gallium/drivers/llvmpipe/lp_query.c
src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/softpipe/sp_prim_vbuf.c
src/gallium/drivers/softpipe/sp_query.c