i965: Make gl_BaseVertex available in a buffer object.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 8 Aug 2014 03:31:39 +0000 (20:31 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Sep 2014 18:05:08 +0000 (11:05 -0700)
commitfdbabf22e183d478cd076215052fa877b125629b
treeb6f1989aa1497b08453be05a16c4e52ea842cdda
parentc89306983c07e5a88c0d636267e5ccf263cb4213
i965: Make gl_BaseVertex available in a buffer object.

This will be used for GL_ARB_shader_draw_parameters, as well as fixing
gl_VertexID, which is supposed to include gl_BaseVertex's value.

For indirect draws, we simply point at the indirect buffer; for normal
draws, we upload the value via the upload buffer.

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