i965/gs: Implement support for geometry shader surfaces.
authorPaul Berry <stereotype441@gmail.com>
Sun, 25 Aug 2013 13:47:34 +0000 (06:47 -0700)
committerPaul Berry <stereotype441@gmail.com>
Sun, 1 Sep 2013 00:12:21 +0000 (17:12 -0700)
commit130f0f78bebea8e0666479bfa4e4221245801aaa
tree6909243453a4e13b22d7e8ad9f0e25b007b1df23
parentf986222754f5b7f53f1ad53586b3cd42257fabc7
i965/gs: Implement support for geometry shader surfaces.

This patch implements pull constant upload, binding table upload, and
surface setup for geometry shaders, by re-using vertex shader code
that was generalized in previous patches.

Based on work by Eric Anholt <eric@anholt.net>.

v2: Update ditry bits for brw_gs_ubo_surfaces to account for commit
77d8fbc (mesa: add & use a new driver flag for UBO updates instead of
_NEW_BUFFER_OBJECT).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_gs_surface_state.c [new file with mode: 0644]
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c