st/mesa: upload zero-stride vertex attributes here
authorMarek Olšák <marek.olsak@amd.com>
Sat, 29 Apr 2017 23:20:19 +0000 (01:20 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 10 May 2017 17:29:08 +0000 (19:29 +0200)
commit17f776c27be266f253194db9dc11764254b1fc86
tree819c1a6dc42677a00189e5f3509285cc5c9b8886
parent70dcb7377dca89a230731efc2e2d650c38bddd93
st/mesa: upload zero-stride vertex attributes here

This is the best place to do it. Now drivers without u_vbuf don't have to
do it.

v2: use correct upload size and optimal alignment

Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_atom_array.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h