etnaviv: Emit vertex buffers consecutively
authorWladimir J. van der Laan <laanwj@gmail.com>
Thu, 23 Nov 2017 09:08:34 +0000 (10:08 +0100)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Thu, 23 Nov 2017 21:24:51 +0000 (22:24 +0100)
commit35548cae93513875dcad9cc88589add5fac7d836
tree48d010da2ba495219dcff8d502996fd1ec91f945
parent99aea1e3ded03d7a51459efd085842ffedff590b
etnaviv: Emit vertex buffers consecutively

Vertex buffer legacy state is no longer picked up with new drawing
commands. Change to use different cases depending on the number of
vertex streams in the GPU specs.

This results in slightly more compact state emission as well, on all
vivantes.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_emit.c