i965: Refactor Gen4-7 VERTEX_BUFFER_STATE emission into a helper.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 8 Aug 2014 03:49:08 +0000 (20:49 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Sep 2014 18:05:08 +0000 (11:05 -0700)
commit87b10c4a7161905e3a9dc2b2ddc77fbf6908ebd5
treeb8f857590bb865410883d727c92eed052143bdc1
parentfdbabf22e183d478cd076215052fa877b125629b
i965: Refactor Gen4-7 VERTEX_BUFFER_STATE emission into a helper.

We'll need to emit another VERTEX_BUFFER_STATE for gl_BaseVertex;
pulling this into a helper function will save us from having to deal
with cross-generation differences in that code.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_draw_upload.c